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

Side by Side Diff: generated/googleapis/test/analytics/v3_test.dart

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 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.analytics.v3.test; 1 library googleapis.analytics.v3.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/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test;
14 11
15 import 'package:googleapis/analytics/v3.dart' as api; 12 import 'package:googleapis/analytics/v3.dart' as api;
16 13
14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback;
16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback;
20 _expectJson = expectJson;
21 }
22
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) {
24 if (_expectJson) {
25 return request.finalize()
26 .transform(convert.UTF8.decoder)
27 .join('')
28 .then((core.String jsonString) {
29 if (jsonString.isEmpty) {
30 return _callback(request, null);
31 } else {
32 return _callback(request, convert.JSON.decode(jsonString));
33 }
34 });
35 } else {
36 var stream = request.finalize();
37 if (stream == null) {
38 return _callback(request, []);
39 } else {
40 return stream.toBytes().then((data) {
41 return _callback(request, data);
42 });
43 }
44 }
45 }
46 }
47
48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers);
52 }
18 53
19 core.int buildCounterAccountChildLink = 0; 54 core.int buildCounterAccountChildLink = 0;
20 buildAccountChildLink() { 55 buildAccountChildLink() {
21 var o = new api.AccountChildLink(); 56 var o = new api.AccountChildLink();
22 buildCounterAccountChildLink++; 57 buildCounterAccountChildLink++;
23 if (buildCounterAccountChildLink < 3) { 58 if (buildCounterAccountChildLink < 3) {
24 o.href = "foo"; 59 o.href = "foo";
25 o.type = "foo"; 60 o.type = "foo";
26 } 61 }
27 buildCounterAccountChildLink--; 62 buildCounterAccountChildLink--;
28 return o; 63 return o;
29 } 64 }
30 65
31 checkAccountChildLink(api.AccountChildLink o) { 66 checkAccountChildLink(api.AccountChildLink o) {
32 buildCounterAccountChildLink++; 67 buildCounterAccountChildLink++;
33 if (buildCounterAccountChildLink < 3) { 68 if (buildCounterAccountChildLink < 3) {
34 unittest.expect(o.href, unittest.equals('foo')); 69 unittest.expect(o.href, unittest.equals('foo'));
35 unittest.expect(o.type, unittest.equals('foo')); 70 unittest.expect(o.type, unittest.equals('foo'));
36 } 71 }
37 buildCounterAccountChildLink--; 72 buildCounterAccountChildLink--;
38 } 73 }
39 74
40 buildUnnamed893() { 75 buildUnnamed187() {
41 var o = new core.List<core.String>(); 76 var o = new core.List<core.String>();
42 o.add("foo"); 77 o.add("foo");
43 o.add("foo"); 78 o.add("foo");
44 return o; 79 return o;
45 } 80 }
46 81
47 checkUnnamed893(core.List<core.String> o) { 82 checkUnnamed187(core.List<core.String> o) {
48 unittest.expect(o, unittest.hasLength(2)); 83 unittest.expect(o, unittest.hasLength(2));
49 unittest.expect(o[0], unittest.equals('foo')); 84 unittest.expect(o[0], unittest.equals('foo'));
50 unittest.expect(o[1], unittest.equals('foo')); 85 unittest.expect(o[1], unittest.equals('foo'));
51 } 86 }
52 87
53 core.int buildCounterAccountPermissions = 0; 88 core.int buildCounterAccountPermissions = 0;
54 buildAccountPermissions() { 89 buildAccountPermissions() {
55 var o = new api.AccountPermissions(); 90 var o = new api.AccountPermissions();
56 buildCounterAccountPermissions++; 91 buildCounterAccountPermissions++;
57 if (buildCounterAccountPermissions < 3) { 92 if (buildCounterAccountPermissions < 3) {
58 o.effective = buildUnnamed893(); 93 o.effective = buildUnnamed187();
59 } 94 }
60 buildCounterAccountPermissions--; 95 buildCounterAccountPermissions--;
61 return o; 96 return o;
62 } 97 }
63 98
64 checkAccountPermissions(api.AccountPermissions o) { 99 checkAccountPermissions(api.AccountPermissions o) {
65 buildCounterAccountPermissions++; 100 buildCounterAccountPermissions++;
66 if (buildCounterAccountPermissions < 3) { 101 if (buildCounterAccountPermissions < 3) {
67 checkUnnamed893(o.effective); 102 checkUnnamed187(o.effective);
68 } 103 }
69 buildCounterAccountPermissions--; 104 buildCounterAccountPermissions--;
70 } 105 }
71 106
72 core.int buildCounterAccount = 0; 107 core.int buildCounterAccount = 0;
73 buildAccount() { 108 buildAccount() {
74 var o = new api.Account(); 109 var o = new api.Account();
75 buildCounterAccount++; 110 buildCounterAccount++;
76 if (buildCounterAccount < 3) { 111 if (buildCounterAccount < 3) {
77 o.childLink = buildAccountChildLink(); 112 o.childLink = buildAccountChildLink();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 buildCounterAccountRef++; 155 buildCounterAccountRef++;
121 if (buildCounterAccountRef < 3) { 156 if (buildCounterAccountRef < 3) {
122 unittest.expect(o.href, unittest.equals('foo')); 157 unittest.expect(o.href, unittest.equals('foo'));
123 unittest.expect(o.id, unittest.equals('foo')); 158 unittest.expect(o.id, unittest.equals('foo'));
124 unittest.expect(o.kind, unittest.equals('foo')); 159 unittest.expect(o.kind, unittest.equals('foo'));
125 unittest.expect(o.name, unittest.equals('foo')); 160 unittest.expect(o.name, unittest.equals('foo'));
126 } 161 }
127 buildCounterAccountRef--; 162 buildCounterAccountRef--;
128 } 163 }
129 164
130 buildUnnamed894() { 165 buildUnnamed188() {
131 var o = new core.List<api.AccountSummary>(); 166 var o = new core.List<api.AccountSummary>();
132 o.add(buildAccountSummary()); 167 o.add(buildAccountSummary());
133 o.add(buildAccountSummary()); 168 o.add(buildAccountSummary());
134 return o; 169 return o;
135 } 170 }
136 171
137 checkUnnamed894(core.List<api.AccountSummary> o) { 172 checkUnnamed188(core.List<api.AccountSummary> o) {
138 unittest.expect(o, unittest.hasLength(2)); 173 unittest.expect(o, unittest.hasLength(2));
139 checkAccountSummary(o[0]); 174 checkAccountSummary(o[0]);
140 checkAccountSummary(o[1]); 175 checkAccountSummary(o[1]);
141 } 176 }
142 177
143 core.int buildCounterAccountSummaries = 0; 178 core.int buildCounterAccountSummaries = 0;
144 buildAccountSummaries() { 179 buildAccountSummaries() {
145 var o = new api.AccountSummaries(); 180 var o = new api.AccountSummaries();
146 buildCounterAccountSummaries++; 181 buildCounterAccountSummaries++;
147 if (buildCounterAccountSummaries < 3) { 182 if (buildCounterAccountSummaries < 3) {
148 o.items = buildUnnamed894(); 183 o.items = buildUnnamed188();
149 o.itemsPerPage = 42; 184 o.itemsPerPage = 42;
150 o.kind = "foo"; 185 o.kind = "foo";
151 o.nextLink = "foo"; 186 o.nextLink = "foo";
152 o.previousLink = "foo"; 187 o.previousLink = "foo";
153 o.startIndex = 42; 188 o.startIndex = 42;
154 o.totalResults = 42; 189 o.totalResults = 42;
155 o.username = "foo"; 190 o.username = "foo";
156 } 191 }
157 buildCounterAccountSummaries--; 192 buildCounterAccountSummaries--;
158 return o; 193 return o;
159 } 194 }
160 195
161 checkAccountSummaries(api.AccountSummaries o) { 196 checkAccountSummaries(api.AccountSummaries o) {
162 buildCounterAccountSummaries++; 197 buildCounterAccountSummaries++;
163 if (buildCounterAccountSummaries < 3) { 198 if (buildCounterAccountSummaries < 3) {
164 checkUnnamed894(o.items); 199 checkUnnamed188(o.items);
165 unittest.expect(o.itemsPerPage, unittest.equals(42)); 200 unittest.expect(o.itemsPerPage, unittest.equals(42));
166 unittest.expect(o.kind, unittest.equals('foo')); 201 unittest.expect(o.kind, unittest.equals('foo'));
167 unittest.expect(o.nextLink, unittest.equals('foo')); 202 unittest.expect(o.nextLink, unittest.equals('foo'));
168 unittest.expect(o.previousLink, unittest.equals('foo')); 203 unittest.expect(o.previousLink, unittest.equals('foo'));
169 unittest.expect(o.startIndex, unittest.equals(42)); 204 unittest.expect(o.startIndex, unittest.equals(42));
170 unittest.expect(o.totalResults, unittest.equals(42)); 205 unittest.expect(o.totalResults, unittest.equals(42));
171 unittest.expect(o.username, unittest.equals('foo')); 206 unittest.expect(o.username, unittest.equals('foo'));
172 } 207 }
173 buildCounterAccountSummaries--; 208 buildCounterAccountSummaries--;
174 } 209 }
175 210
176 buildUnnamed895() { 211 buildUnnamed189() {
177 var o = new core.List<api.WebPropertySummary>(); 212 var o = new core.List<api.WebPropertySummary>();
178 o.add(buildWebPropertySummary()); 213 o.add(buildWebPropertySummary());
179 o.add(buildWebPropertySummary()); 214 o.add(buildWebPropertySummary());
180 return o; 215 return o;
181 } 216 }
182 217
183 checkUnnamed895(core.List<api.WebPropertySummary> o) { 218 checkUnnamed189(core.List<api.WebPropertySummary> o) {
184 unittest.expect(o, unittest.hasLength(2)); 219 unittest.expect(o, unittest.hasLength(2));
185 checkWebPropertySummary(o[0]); 220 checkWebPropertySummary(o[0]);
186 checkWebPropertySummary(o[1]); 221 checkWebPropertySummary(o[1]);
187 } 222 }
188 223
189 core.int buildCounterAccountSummary = 0; 224 core.int buildCounterAccountSummary = 0;
190 buildAccountSummary() { 225 buildAccountSummary() {
191 var o = new api.AccountSummary(); 226 var o = new api.AccountSummary();
192 buildCounterAccountSummary++; 227 buildCounterAccountSummary++;
193 if (buildCounterAccountSummary < 3) { 228 if (buildCounterAccountSummary < 3) {
194 o.id = "foo"; 229 o.id = "foo";
195 o.kind = "foo"; 230 o.kind = "foo";
196 o.name = "foo"; 231 o.name = "foo";
197 o.webProperties = buildUnnamed895(); 232 o.webProperties = buildUnnamed189();
198 } 233 }
199 buildCounterAccountSummary--; 234 buildCounterAccountSummary--;
200 return o; 235 return o;
201 } 236 }
202 237
203 checkAccountSummary(api.AccountSummary o) { 238 checkAccountSummary(api.AccountSummary o) {
204 buildCounterAccountSummary++; 239 buildCounterAccountSummary++;
205 if (buildCounterAccountSummary < 3) { 240 if (buildCounterAccountSummary < 3) {
206 unittest.expect(o.id, unittest.equals('foo')); 241 unittest.expect(o.id, unittest.equals('foo'));
207 unittest.expect(o.kind, unittest.equals('foo')); 242 unittest.expect(o.kind, unittest.equals('foo'));
208 unittest.expect(o.name, unittest.equals('foo')); 243 unittest.expect(o.name, unittest.equals('foo'));
209 checkUnnamed895(o.webProperties); 244 checkUnnamed189(o.webProperties);
210 } 245 }
211 buildCounterAccountSummary--; 246 buildCounterAccountSummary--;
212 } 247 }
213 248
214 core.int buildCounterAccountTicket = 0; 249 core.int buildCounterAccountTicket = 0;
215 buildAccountTicket() { 250 buildAccountTicket() {
216 var o = new api.AccountTicket(); 251 var o = new api.AccountTicket();
217 buildCounterAccountTicket++; 252 buildCounterAccountTicket++;
218 if (buildCounterAccountTicket < 3) { 253 if (buildCounterAccountTicket < 3) {
219 o.account = buildAccount(); 254 o.account = buildAccount();
(...skipping 13 matching lines...) Expand all
233 checkAccount(o.account); 268 checkAccount(o.account);
234 unittest.expect(o.id, unittest.equals('foo')); 269 unittest.expect(o.id, unittest.equals('foo'));
235 unittest.expect(o.kind, unittest.equals('foo')); 270 unittest.expect(o.kind, unittest.equals('foo'));
236 checkProfile(o.profile); 271 checkProfile(o.profile);
237 unittest.expect(o.redirectUri, unittest.equals('foo')); 272 unittest.expect(o.redirectUri, unittest.equals('foo'));
238 checkWebproperty(o.webproperty); 273 checkWebproperty(o.webproperty);
239 } 274 }
240 buildCounterAccountTicket--; 275 buildCounterAccountTicket--;
241 } 276 }
242 277
243 buildUnnamed896() { 278 buildUnnamed190() {
244 var o = new core.List<api.Account>(); 279 var o = new core.List<api.Account>();
245 o.add(buildAccount()); 280 o.add(buildAccount());
246 o.add(buildAccount()); 281 o.add(buildAccount());
247 return o; 282 return o;
248 } 283 }
249 284
250 checkUnnamed896(core.List<api.Account> o) { 285 checkUnnamed190(core.List<api.Account> o) {
251 unittest.expect(o, unittest.hasLength(2)); 286 unittest.expect(o, unittest.hasLength(2));
252 checkAccount(o[0]); 287 checkAccount(o[0]);
253 checkAccount(o[1]); 288 checkAccount(o[1]);
254 } 289 }
255 290
256 core.int buildCounterAccounts = 0; 291 core.int buildCounterAccounts = 0;
257 buildAccounts() { 292 buildAccounts() {
258 var o = new api.Accounts(); 293 var o = new api.Accounts();
259 buildCounterAccounts++; 294 buildCounterAccounts++;
260 if (buildCounterAccounts < 3) { 295 if (buildCounterAccounts < 3) {
261 o.items = buildUnnamed896(); 296 o.items = buildUnnamed190();
262 o.itemsPerPage = 42; 297 o.itemsPerPage = 42;
263 o.kind = "foo"; 298 o.kind = "foo";
264 o.nextLink = "foo"; 299 o.nextLink = "foo";
265 o.previousLink = "foo"; 300 o.previousLink = "foo";
266 o.startIndex = 42; 301 o.startIndex = 42;
267 o.totalResults = 42; 302 o.totalResults = 42;
268 o.username = "foo"; 303 o.username = "foo";
269 } 304 }
270 buildCounterAccounts--; 305 buildCounterAccounts--;
271 return o; 306 return o;
272 } 307 }
273 308
274 checkAccounts(api.Accounts o) { 309 checkAccounts(api.Accounts o) {
275 buildCounterAccounts++; 310 buildCounterAccounts++;
276 if (buildCounterAccounts < 3) { 311 if (buildCounterAccounts < 3) {
277 checkUnnamed896(o.items); 312 checkUnnamed190(o.items);
278 unittest.expect(o.itemsPerPage, unittest.equals(42)); 313 unittest.expect(o.itemsPerPage, unittest.equals(42));
279 unittest.expect(o.kind, unittest.equals('foo')); 314 unittest.expect(o.kind, unittest.equals('foo'));
280 unittest.expect(o.nextLink, unittest.equals('foo')); 315 unittest.expect(o.nextLink, unittest.equals('foo'));
281 unittest.expect(o.previousLink, unittest.equals('foo')); 316 unittest.expect(o.previousLink, unittest.equals('foo'));
282 unittest.expect(o.startIndex, unittest.equals(42)); 317 unittest.expect(o.startIndex, unittest.equals(42));
283 unittest.expect(o.totalResults, unittest.equals(42)); 318 unittest.expect(o.totalResults, unittest.equals(42));
284 unittest.expect(o.username, unittest.equals('foo')); 319 unittest.expect(o.username, unittest.equals('foo'));
285 } 320 }
286 buildCounterAccounts--; 321 buildCounterAccounts--;
287 } 322 }
(...skipping 14 matching lines...) Expand all
302 checkAdWordsAccount(api.AdWordsAccount o) { 337 checkAdWordsAccount(api.AdWordsAccount o) {
303 buildCounterAdWordsAccount++; 338 buildCounterAdWordsAccount++;
304 if (buildCounterAdWordsAccount < 3) { 339 if (buildCounterAdWordsAccount < 3) {
305 unittest.expect(o.autoTaggingEnabled, unittest.isTrue); 340 unittest.expect(o.autoTaggingEnabled, unittest.isTrue);
306 unittest.expect(o.customerId, unittest.equals('foo')); 341 unittest.expect(o.customerId, unittest.equals('foo'));
307 unittest.expect(o.kind, unittest.equals('foo')); 342 unittest.expect(o.kind, unittest.equals('foo'));
308 } 343 }
309 buildCounterAdWordsAccount--; 344 buildCounterAdWordsAccount--;
310 } 345 }
311 346
312 buildUnnamed897() { 347 buildUnnamed191() {
313 var o = new core.List<core.String>(); 348 var o = new core.List<core.String>();
314 o.add("foo"); 349 o.add("foo");
315 o.add("foo"); 350 o.add("foo");
316 return o; 351 return o;
317 } 352 }
318 353
319 checkUnnamed897(core.List<core.String> o) { 354 checkUnnamed191(core.List<core.String> o) {
320 unittest.expect(o, unittest.hasLength(2)); 355 unittest.expect(o, unittest.hasLength(2));
321 unittest.expect(o[0], unittest.equals('foo')); 356 unittest.expect(o[0], unittest.equals('foo'));
322 unittest.expect(o[1], unittest.equals('foo')); 357 unittest.expect(o[1], unittest.equals('foo'));
323 } 358 }
324 359
325 core.int buildCounterAnalyticsDataimportDeleteUploadDataRequest = 0; 360 core.int buildCounterAnalyticsDataimportDeleteUploadDataRequest = 0;
326 buildAnalyticsDataimportDeleteUploadDataRequest() { 361 buildAnalyticsDataimportDeleteUploadDataRequest() {
327 var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); 362 var o = new api.AnalyticsDataimportDeleteUploadDataRequest();
328 buildCounterAnalyticsDataimportDeleteUploadDataRequest++; 363 buildCounterAnalyticsDataimportDeleteUploadDataRequest++;
329 if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { 364 if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) {
330 o.customDataImportUids = buildUnnamed897(); 365 o.customDataImportUids = buildUnnamed191();
331 } 366 }
332 buildCounterAnalyticsDataimportDeleteUploadDataRequest--; 367 buildCounterAnalyticsDataimportDeleteUploadDataRequest--;
333 return o; 368 return o;
334 } 369 }
335 370
336 checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUpl oadDataRequest o) { 371 checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUpl oadDataRequest o) {
337 buildCounterAnalyticsDataimportDeleteUploadDataRequest++; 372 buildCounterAnalyticsDataimportDeleteUploadDataRequest++;
338 if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { 373 if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) {
339 checkUnnamed897(o.customDataImportUids); 374 checkUnnamed191(o.customDataImportUids);
340 } 375 }
341 buildCounterAnalyticsDataimportDeleteUploadDataRequest--; 376 buildCounterAnalyticsDataimportDeleteUploadDataRequest--;
342 } 377 }
343 378
344 buildUnnamed898() { 379 buildUnnamed192() {
345 var o = new core.Map<core.String, core.String>(); 380 var o = new core.Map<core.String, core.String>();
346 o["x"] = "foo"; 381 o["x"] = "foo";
347 o["y"] = "foo"; 382 o["y"] = "foo";
348 return o; 383 return o;
349 } 384 }
350 385
351 checkUnnamed898(core.Map<core.String, core.String> o) { 386 checkUnnamed192(core.Map<core.String, core.String> o) {
352 unittest.expect(o, unittest.hasLength(2)); 387 unittest.expect(o, unittest.hasLength(2));
353 unittest.expect(o["x"], unittest.equals('foo')); 388 unittest.expect(o["x"], unittest.equals('foo'));
354 unittest.expect(o["y"], unittest.equals('foo')); 389 unittest.expect(o["y"], unittest.equals('foo'));
355 } 390 }
356 391
357 core.int buildCounterColumn = 0; 392 core.int buildCounterColumn = 0;
358 buildColumn() { 393 buildColumn() {
359 var o = new api.Column(); 394 var o = new api.Column();
360 buildCounterColumn++; 395 buildCounterColumn++;
361 if (buildCounterColumn < 3) { 396 if (buildCounterColumn < 3) {
362 o.attributes = buildUnnamed898(); 397 o.attributes = buildUnnamed192();
363 o.id = "foo"; 398 o.id = "foo";
364 o.kind = "foo"; 399 o.kind = "foo";
365 } 400 }
366 buildCounterColumn--; 401 buildCounterColumn--;
367 return o; 402 return o;
368 } 403 }
369 404
370 checkColumn(api.Column o) { 405 checkColumn(api.Column o) {
371 buildCounterColumn++; 406 buildCounterColumn++;
372 if (buildCounterColumn < 3) { 407 if (buildCounterColumn < 3) {
373 checkUnnamed898(o.attributes); 408 checkUnnamed192(o.attributes);
374 unittest.expect(o.id, unittest.equals('foo')); 409 unittest.expect(o.id, unittest.equals('foo'));
375 unittest.expect(o.kind, unittest.equals('foo')); 410 unittest.expect(o.kind, unittest.equals('foo'));
376 } 411 }
377 buildCounterColumn--; 412 buildCounterColumn--;
378 } 413 }
379 414
380 buildUnnamed899() { 415 buildUnnamed193() {
381 var o = new core.List<core.String>(); 416 var o = new core.List<core.String>();
382 o.add("foo"); 417 o.add("foo");
383 o.add("foo"); 418 o.add("foo");
384 return o; 419 return o;
385 } 420 }
386 421
387 checkUnnamed899(core.List<core.String> o) { 422 checkUnnamed193(core.List<core.String> o) {
388 unittest.expect(o, unittest.hasLength(2)); 423 unittest.expect(o, unittest.hasLength(2));
389 unittest.expect(o[0], unittest.equals('foo')); 424 unittest.expect(o[0], unittest.equals('foo'));
390 unittest.expect(o[1], unittest.equals('foo')); 425 unittest.expect(o[1], unittest.equals('foo'));
391 } 426 }
392 427
393 buildUnnamed900() { 428 buildUnnamed194() {
394 var o = new core.List<api.Column>(); 429 var o = new core.List<api.Column>();
395 o.add(buildColumn()); 430 o.add(buildColumn());
396 o.add(buildColumn()); 431 o.add(buildColumn());
397 return o; 432 return o;
398 } 433 }
399 434
400 checkUnnamed900(core.List<api.Column> o) { 435 checkUnnamed194(core.List<api.Column> o) {
401 unittest.expect(o, unittest.hasLength(2)); 436 unittest.expect(o, unittest.hasLength(2));
402 checkColumn(o[0]); 437 checkColumn(o[0]);
403 checkColumn(o[1]); 438 checkColumn(o[1]);
404 } 439 }
405 440
406 core.int buildCounterColumns = 0; 441 core.int buildCounterColumns = 0;
407 buildColumns() { 442 buildColumns() {
408 var o = new api.Columns(); 443 var o = new api.Columns();
409 buildCounterColumns++; 444 buildCounterColumns++;
410 if (buildCounterColumns < 3) { 445 if (buildCounterColumns < 3) {
411 o.attributeNames = buildUnnamed899(); 446 o.attributeNames = buildUnnamed193();
412 o.etag = "foo"; 447 o.etag = "foo";
413 o.items = buildUnnamed900(); 448 o.items = buildUnnamed194();
414 o.kind = "foo"; 449 o.kind = "foo";
415 o.totalResults = 42; 450 o.totalResults = 42;
416 } 451 }
417 buildCounterColumns--; 452 buildCounterColumns--;
418 return o; 453 return o;
419 } 454 }
420 455
421 checkColumns(api.Columns o) { 456 checkColumns(api.Columns o) {
422 buildCounterColumns++; 457 buildCounterColumns++;
423 if (buildCounterColumns < 3) { 458 if (buildCounterColumns < 3) {
424 checkUnnamed899(o.attributeNames); 459 checkUnnamed193(o.attributeNames);
425 unittest.expect(o.etag, unittest.equals('foo')); 460 unittest.expect(o.etag, unittest.equals('foo'));
426 checkUnnamed900(o.items); 461 checkUnnamed194(o.items);
427 unittest.expect(o.kind, unittest.equals('foo')); 462 unittest.expect(o.kind, unittest.equals('foo'));
428 unittest.expect(o.totalResults, unittest.equals(42)); 463 unittest.expect(o.totalResults, unittest.equals(42));
429 } 464 }
430 buildCounterColumns--; 465 buildCounterColumns--;
431 } 466 }
432 467
433 core.int buildCounterCustomDataSourceChildLink = 0; 468 core.int buildCounterCustomDataSourceChildLink = 0;
434 buildCustomDataSourceChildLink() { 469 buildCustomDataSourceChildLink() {
435 var o = new api.CustomDataSourceChildLink(); 470 var o = new api.CustomDataSourceChildLink();
436 buildCounterCustomDataSourceChildLink++; 471 buildCounterCustomDataSourceChildLink++;
(...skipping 28 matching lines...) Expand all
465 500
466 checkCustomDataSourceParentLink(api.CustomDataSourceParentLink o) { 501 checkCustomDataSourceParentLink(api.CustomDataSourceParentLink o) {
467 buildCounterCustomDataSourceParentLink++; 502 buildCounterCustomDataSourceParentLink++;
468 if (buildCounterCustomDataSourceParentLink < 3) { 503 if (buildCounterCustomDataSourceParentLink < 3) {
469 unittest.expect(o.href, unittest.equals('foo')); 504 unittest.expect(o.href, unittest.equals('foo'));
470 unittest.expect(o.type, unittest.equals('foo')); 505 unittest.expect(o.type, unittest.equals('foo'));
471 } 506 }
472 buildCounterCustomDataSourceParentLink--; 507 buildCounterCustomDataSourceParentLink--;
473 } 508 }
474 509
475 buildUnnamed901() { 510 buildUnnamed195() {
476 var o = new core.List<core.String>(); 511 var o = new core.List<core.String>();
477 o.add("foo"); 512 o.add("foo");
478 o.add("foo"); 513 o.add("foo");
479 return o; 514 return o;
480 } 515 }
481 516
482 checkUnnamed901(core.List<core.String> o) { 517 checkUnnamed195(core.List<core.String> o) {
483 unittest.expect(o, unittest.hasLength(2)); 518 unittest.expect(o, unittest.hasLength(2));
484 unittest.expect(o[0], unittest.equals('foo')); 519 unittest.expect(o[0], unittest.equals('foo'));
485 unittest.expect(o[1], unittest.equals('foo')); 520 unittest.expect(o[1], unittest.equals('foo'));
486 } 521 }
487 522
488 core.int buildCounterCustomDataSource = 0; 523 core.int buildCounterCustomDataSource = 0;
489 buildCustomDataSource() { 524 buildCustomDataSource() {
490 var o = new api.CustomDataSource(); 525 var o = new api.CustomDataSource();
491 buildCounterCustomDataSource++; 526 buildCounterCustomDataSource++;
492 if (buildCounterCustomDataSource < 3) { 527 if (buildCounterCustomDataSource < 3) {
493 o.accountId = "foo"; 528 o.accountId = "foo";
494 o.childLink = buildCustomDataSourceChildLink(); 529 o.childLink = buildCustomDataSourceChildLink();
495 o.created = core.DateTime.parse("2002-02-27T14:01:02"); 530 o.created = core.DateTime.parse("2002-02-27T14:01:02");
496 o.description = "foo"; 531 o.description = "foo";
497 o.id = "foo"; 532 o.id = "foo";
498 o.importBehavior = "foo"; 533 o.importBehavior = "foo";
499 o.kind = "foo"; 534 o.kind = "foo";
500 o.name = "foo"; 535 o.name = "foo";
501 o.parentLink = buildCustomDataSourceParentLink(); 536 o.parentLink = buildCustomDataSourceParentLink();
502 o.profilesLinked = buildUnnamed901(); 537 o.profilesLinked = buildUnnamed195();
503 o.selfLink = "foo"; 538 o.selfLink = "foo";
504 o.type = "foo"; 539 o.type = "foo";
505 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 540 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
506 o.uploadType = "foo"; 541 o.uploadType = "foo";
507 o.webPropertyId = "foo"; 542 o.webPropertyId = "foo";
508 } 543 }
509 buildCounterCustomDataSource--; 544 buildCounterCustomDataSource--;
510 return o; 545 return o;
511 } 546 }
512 547
513 checkCustomDataSource(api.CustomDataSource o) { 548 checkCustomDataSource(api.CustomDataSource o) {
514 buildCounterCustomDataSource++; 549 buildCounterCustomDataSource++;
515 if (buildCounterCustomDataSource < 3) { 550 if (buildCounterCustomDataSource < 3) {
516 unittest.expect(o.accountId, unittest.equals('foo')); 551 unittest.expect(o.accountId, unittest.equals('foo'));
517 checkCustomDataSourceChildLink(o.childLink); 552 checkCustomDataSourceChildLink(o.childLink);
518 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 553 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
519 unittest.expect(o.description, unittest.equals('foo')); 554 unittest.expect(o.description, unittest.equals('foo'));
520 unittest.expect(o.id, unittest.equals('foo')); 555 unittest.expect(o.id, unittest.equals('foo'));
521 unittest.expect(o.importBehavior, unittest.equals('foo')); 556 unittest.expect(o.importBehavior, unittest.equals('foo'));
522 unittest.expect(o.kind, unittest.equals('foo')); 557 unittest.expect(o.kind, unittest.equals('foo'));
523 unittest.expect(o.name, unittest.equals('foo')); 558 unittest.expect(o.name, unittest.equals('foo'));
524 checkCustomDataSourceParentLink(o.parentLink); 559 checkCustomDataSourceParentLink(o.parentLink);
525 checkUnnamed901(o.profilesLinked); 560 checkUnnamed195(o.profilesLinked);
526 unittest.expect(o.selfLink, unittest.equals('foo')); 561 unittest.expect(o.selfLink, unittest.equals('foo'));
527 unittest.expect(o.type, unittest.equals('foo')); 562 unittest.expect(o.type, unittest.equals('foo'));
528 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 563 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
529 unittest.expect(o.uploadType, unittest.equals('foo')); 564 unittest.expect(o.uploadType, unittest.equals('foo'));
530 unittest.expect(o.webPropertyId, unittest.equals('foo')); 565 unittest.expect(o.webPropertyId, unittest.equals('foo'));
531 } 566 }
532 buildCounterCustomDataSource--; 567 buildCounterCustomDataSource--;
533 } 568 }
534 569
535 buildUnnamed902() { 570 buildUnnamed196() {
536 var o = new core.List<api.CustomDataSource>(); 571 var o = new core.List<api.CustomDataSource>();
537 o.add(buildCustomDataSource()); 572 o.add(buildCustomDataSource());
538 o.add(buildCustomDataSource()); 573 o.add(buildCustomDataSource());
539 return o; 574 return o;
540 } 575 }
541 576
542 checkUnnamed902(core.List<api.CustomDataSource> o) { 577 checkUnnamed196(core.List<api.CustomDataSource> o) {
543 unittest.expect(o, unittest.hasLength(2)); 578 unittest.expect(o, unittest.hasLength(2));
544 checkCustomDataSource(o[0]); 579 checkCustomDataSource(o[0]);
545 checkCustomDataSource(o[1]); 580 checkCustomDataSource(o[1]);
546 } 581 }
547 582
548 core.int buildCounterCustomDataSources = 0; 583 core.int buildCounterCustomDataSources = 0;
549 buildCustomDataSources() { 584 buildCustomDataSources() {
550 var o = new api.CustomDataSources(); 585 var o = new api.CustomDataSources();
551 buildCounterCustomDataSources++; 586 buildCounterCustomDataSources++;
552 if (buildCounterCustomDataSources < 3) { 587 if (buildCounterCustomDataSources < 3) {
553 o.items = buildUnnamed902(); 588 o.items = buildUnnamed196();
554 o.itemsPerPage = 42; 589 o.itemsPerPage = 42;
555 o.kind = "foo"; 590 o.kind = "foo";
556 o.nextLink = "foo"; 591 o.nextLink = "foo";
557 o.previousLink = "foo"; 592 o.previousLink = "foo";
558 o.startIndex = 42; 593 o.startIndex = 42;
559 o.totalResults = 42; 594 o.totalResults = 42;
560 o.username = "foo"; 595 o.username = "foo";
561 } 596 }
562 buildCounterCustomDataSources--; 597 buildCounterCustomDataSources--;
563 return o; 598 return o;
564 } 599 }
565 600
566 checkCustomDataSources(api.CustomDataSources o) { 601 checkCustomDataSources(api.CustomDataSources o) {
567 buildCounterCustomDataSources++; 602 buildCounterCustomDataSources++;
568 if (buildCounterCustomDataSources < 3) { 603 if (buildCounterCustomDataSources < 3) {
569 checkUnnamed902(o.items); 604 checkUnnamed196(o.items);
570 unittest.expect(o.itemsPerPage, unittest.equals(42)); 605 unittest.expect(o.itemsPerPage, unittest.equals(42));
571 unittest.expect(o.kind, unittest.equals('foo')); 606 unittest.expect(o.kind, unittest.equals('foo'));
572 unittest.expect(o.nextLink, unittest.equals('foo')); 607 unittest.expect(o.nextLink, unittest.equals('foo'));
573 unittest.expect(o.previousLink, unittest.equals('foo')); 608 unittest.expect(o.previousLink, unittest.equals('foo'));
574 unittest.expect(o.startIndex, unittest.equals(42)); 609 unittest.expect(o.startIndex, unittest.equals(42));
575 unittest.expect(o.totalResults, unittest.equals(42)); 610 unittest.expect(o.totalResults, unittest.equals(42));
576 unittest.expect(o.username, unittest.equals('foo')); 611 unittest.expect(o.username, unittest.equals('foo'));
577 } 612 }
578 buildCounterCustomDataSources--; 613 buildCounterCustomDataSources--;
579 } 614 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 unittest.expect(o.name, unittest.equals('foo')); 668 unittest.expect(o.name, unittest.equals('foo'));
634 checkCustomDimensionParentLink(o.parentLink); 669 checkCustomDimensionParentLink(o.parentLink);
635 unittest.expect(o.scope, unittest.equals('foo')); 670 unittest.expect(o.scope, unittest.equals('foo'));
636 unittest.expect(o.selfLink, unittest.equals('foo')); 671 unittest.expect(o.selfLink, unittest.equals('foo'));
637 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 672 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
638 unittest.expect(o.webPropertyId, unittest.equals('foo')); 673 unittest.expect(o.webPropertyId, unittest.equals('foo'));
639 } 674 }
640 buildCounterCustomDimension--; 675 buildCounterCustomDimension--;
641 } 676 }
642 677
643 buildUnnamed903() { 678 buildUnnamed197() {
644 var o = new core.List<api.CustomDimension>(); 679 var o = new core.List<api.CustomDimension>();
645 o.add(buildCustomDimension()); 680 o.add(buildCustomDimension());
646 o.add(buildCustomDimension()); 681 o.add(buildCustomDimension());
647 return o; 682 return o;
648 } 683 }
649 684
650 checkUnnamed903(core.List<api.CustomDimension> o) { 685 checkUnnamed197(core.List<api.CustomDimension> o) {
651 unittest.expect(o, unittest.hasLength(2)); 686 unittest.expect(o, unittest.hasLength(2));
652 checkCustomDimension(o[0]); 687 checkCustomDimension(o[0]);
653 checkCustomDimension(o[1]); 688 checkCustomDimension(o[1]);
654 } 689 }
655 690
656 core.int buildCounterCustomDimensions = 0; 691 core.int buildCounterCustomDimensions = 0;
657 buildCustomDimensions() { 692 buildCustomDimensions() {
658 var o = new api.CustomDimensions(); 693 var o = new api.CustomDimensions();
659 buildCounterCustomDimensions++; 694 buildCounterCustomDimensions++;
660 if (buildCounterCustomDimensions < 3) { 695 if (buildCounterCustomDimensions < 3) {
661 o.items = buildUnnamed903(); 696 o.items = buildUnnamed197();
662 o.itemsPerPage = 42; 697 o.itemsPerPage = 42;
663 o.kind = "foo"; 698 o.kind = "foo";
664 o.nextLink = "foo"; 699 o.nextLink = "foo";
665 o.previousLink = "foo"; 700 o.previousLink = "foo";
666 o.startIndex = 42; 701 o.startIndex = 42;
667 o.totalResults = 42; 702 o.totalResults = 42;
668 o.username = "foo"; 703 o.username = "foo";
669 } 704 }
670 buildCounterCustomDimensions--; 705 buildCounterCustomDimensions--;
671 return o; 706 return o;
672 } 707 }
673 708
674 checkCustomDimensions(api.CustomDimensions o) { 709 checkCustomDimensions(api.CustomDimensions o) {
675 buildCounterCustomDimensions++; 710 buildCounterCustomDimensions++;
676 if (buildCounterCustomDimensions < 3) { 711 if (buildCounterCustomDimensions < 3) {
677 checkUnnamed903(o.items); 712 checkUnnamed197(o.items);
678 unittest.expect(o.itemsPerPage, unittest.equals(42)); 713 unittest.expect(o.itemsPerPage, unittest.equals(42));
679 unittest.expect(o.kind, unittest.equals('foo')); 714 unittest.expect(o.kind, unittest.equals('foo'));
680 unittest.expect(o.nextLink, unittest.equals('foo')); 715 unittest.expect(o.nextLink, unittest.equals('foo'));
681 unittest.expect(o.previousLink, unittest.equals('foo')); 716 unittest.expect(o.previousLink, unittest.equals('foo'));
682 unittest.expect(o.startIndex, unittest.equals(42)); 717 unittest.expect(o.startIndex, unittest.equals(42));
683 unittest.expect(o.totalResults, unittest.equals(42)); 718 unittest.expect(o.totalResults, unittest.equals(42));
684 unittest.expect(o.username, unittest.equals('foo')); 719 unittest.expect(o.username, unittest.equals('foo'));
685 } 720 }
686 buildCounterCustomDimensions--; 721 buildCounterCustomDimensions--;
687 } 722 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 checkCustomMetricParentLink(o.parentLink); 782 checkCustomMetricParentLink(o.parentLink);
748 unittest.expect(o.scope, unittest.equals('foo')); 783 unittest.expect(o.scope, unittest.equals('foo'));
749 unittest.expect(o.selfLink, unittest.equals('foo')); 784 unittest.expect(o.selfLink, unittest.equals('foo'));
750 unittest.expect(o.type, unittest.equals('foo')); 785 unittest.expect(o.type, unittest.equals('foo'));
751 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 786 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
752 unittest.expect(o.webPropertyId, unittest.equals('foo')); 787 unittest.expect(o.webPropertyId, unittest.equals('foo'));
753 } 788 }
754 buildCounterCustomMetric--; 789 buildCounterCustomMetric--;
755 } 790 }
756 791
757 buildUnnamed904() { 792 buildUnnamed198() {
758 var o = new core.List<api.CustomMetric>(); 793 var o = new core.List<api.CustomMetric>();
759 o.add(buildCustomMetric()); 794 o.add(buildCustomMetric());
760 o.add(buildCustomMetric()); 795 o.add(buildCustomMetric());
761 return o; 796 return o;
762 } 797 }
763 798
764 checkUnnamed904(core.List<api.CustomMetric> o) { 799 checkUnnamed198(core.List<api.CustomMetric> o) {
765 unittest.expect(o, unittest.hasLength(2)); 800 unittest.expect(o, unittest.hasLength(2));
766 checkCustomMetric(o[0]); 801 checkCustomMetric(o[0]);
767 checkCustomMetric(o[1]); 802 checkCustomMetric(o[1]);
768 } 803 }
769 804
770 core.int buildCounterCustomMetrics = 0; 805 core.int buildCounterCustomMetrics = 0;
771 buildCustomMetrics() { 806 buildCustomMetrics() {
772 var o = new api.CustomMetrics(); 807 var o = new api.CustomMetrics();
773 buildCounterCustomMetrics++; 808 buildCounterCustomMetrics++;
774 if (buildCounterCustomMetrics < 3) { 809 if (buildCounterCustomMetrics < 3) {
775 o.items = buildUnnamed904(); 810 o.items = buildUnnamed198();
776 o.itemsPerPage = 42; 811 o.itemsPerPage = 42;
777 o.kind = "foo"; 812 o.kind = "foo";
778 o.nextLink = "foo"; 813 o.nextLink = "foo";
779 o.previousLink = "foo"; 814 o.previousLink = "foo";
780 o.startIndex = 42; 815 o.startIndex = 42;
781 o.totalResults = 42; 816 o.totalResults = 42;
782 o.username = "foo"; 817 o.username = "foo";
783 } 818 }
784 buildCounterCustomMetrics--; 819 buildCounterCustomMetrics--;
785 return o; 820 return o;
786 } 821 }
787 822
788 checkCustomMetrics(api.CustomMetrics o) { 823 checkCustomMetrics(api.CustomMetrics o) {
789 buildCounterCustomMetrics++; 824 buildCounterCustomMetrics++;
790 if (buildCounterCustomMetrics < 3) { 825 if (buildCounterCustomMetrics < 3) {
791 checkUnnamed904(o.items); 826 checkUnnamed198(o.items);
792 unittest.expect(o.itemsPerPage, unittest.equals(42)); 827 unittest.expect(o.itemsPerPage, unittest.equals(42));
793 unittest.expect(o.kind, unittest.equals('foo')); 828 unittest.expect(o.kind, unittest.equals('foo'));
794 unittest.expect(o.nextLink, unittest.equals('foo')); 829 unittest.expect(o.nextLink, unittest.equals('foo'));
795 unittest.expect(o.previousLink, unittest.equals('foo')); 830 unittest.expect(o.previousLink, unittest.equals('foo'));
796 unittest.expect(o.startIndex, unittest.equals(42)); 831 unittest.expect(o.startIndex, unittest.equals(42));
797 unittest.expect(o.totalResults, unittest.equals(42)); 832 unittest.expect(o.totalResults, unittest.equals(42));
798 unittest.expect(o.username, unittest.equals('foo')); 833 unittest.expect(o.username, unittest.equals('foo'));
799 } 834 }
800 buildCounterCustomMetrics--; 835 buildCounterCustomMetrics--;
801 } 836 }
802 837
803 core.int buildCounterDailyUploadParentLink = 0; 838 buildUnnamed199() {
804 buildDailyUploadParentLink() {
805 var o = new api.DailyUploadParentLink();
806 buildCounterDailyUploadParentLink++;
807 if (buildCounterDailyUploadParentLink < 3) {
808 o.href = "foo";
809 o.type = "foo";
810 }
811 buildCounterDailyUploadParentLink--;
812 return o;
813 }
814
815 checkDailyUploadParentLink(api.DailyUploadParentLink o) {
816 buildCounterDailyUploadParentLink++;
817 if (buildCounterDailyUploadParentLink < 3) {
818 unittest.expect(o.href, unittest.equals('foo'));
819 unittest.expect(o.type, unittest.equals('foo'));
820 }
821 buildCounterDailyUploadParentLink--;
822 }
823
824 core.int buildCounterDailyUploadRecentChanges = 0;
825 buildDailyUploadRecentChanges() {
826 var o = new api.DailyUploadRecentChanges();
827 buildCounterDailyUploadRecentChanges++;
828 if (buildCounterDailyUploadRecentChanges < 3) {
829 o.change = "foo";
830 o.time = core.DateTime.parse("2002-02-27T14:01:02");
831 }
832 buildCounterDailyUploadRecentChanges--;
833 return o;
834 }
835
836 checkDailyUploadRecentChanges(api.DailyUploadRecentChanges o) {
837 buildCounterDailyUploadRecentChanges++;
838 if (buildCounterDailyUploadRecentChanges < 3) {
839 unittest.expect(o.change, unittest.equals('foo'));
840 unittest.expect(o.time, unittest.equals(core.DateTime.parse("2002-02-27T14:0 1:02")));
841 }
842 buildCounterDailyUploadRecentChanges--;
843 }
844
845 buildUnnamed905() {
846 var o = new core.List<api.DailyUploadRecentChanges>();
847 o.add(buildDailyUploadRecentChanges());
848 o.add(buildDailyUploadRecentChanges());
849 return o;
850 }
851
852 checkUnnamed905(core.List<api.DailyUploadRecentChanges> o) {
853 unittest.expect(o, unittest.hasLength(2));
854 checkDailyUploadRecentChanges(o[0]);
855 checkDailyUploadRecentChanges(o[1]);
856 }
857
858 core.int buildCounterDailyUpload = 0;
859 buildDailyUpload() {
860 var o = new api.DailyUpload();
861 buildCounterDailyUpload++;
862 if (buildCounterDailyUpload < 3) {
863 o.accountId = "foo";
864 o.appendCount = 42;
865 o.createdTime = core.DateTime.parse("2002-02-27T14:01:02");
866 o.customDataSourceId = "foo";
867 o.date = "foo";
868 o.kind = "foo";
869 o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02");
870 o.parentLink = buildDailyUploadParentLink();
871 o.recentChanges = buildUnnamed905();
872 o.selfLink = "foo";
873 o.webPropertyId = "foo";
874 }
875 buildCounterDailyUpload--;
876 return o;
877 }
878
879 checkDailyUpload(api.DailyUpload o) {
880 buildCounterDailyUpload++;
881 if (buildCounterDailyUpload < 3) {
882 unittest.expect(o.accountId, unittest.equals('foo'));
883 unittest.expect(o.appendCount, unittest.equals(42));
884 unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
885 unittest.expect(o.customDataSourceId, unittest.equals('foo'));
886 unittest.expect(o.date, unittest.equals('foo'));
887 unittest.expect(o.kind, unittest.equals('foo'));
888 unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02 -27T14:01:02")));
889 checkDailyUploadParentLink(o.parentLink);
890 checkUnnamed905(o.recentChanges);
891 unittest.expect(o.selfLink, unittest.equals('foo'));
892 unittest.expect(o.webPropertyId, unittest.equals('foo'));
893 }
894 buildCounterDailyUpload--;
895 }
896
897 core.int buildCounterDailyUploadAppend = 0;
898 buildDailyUploadAppend() {
899 var o = new api.DailyUploadAppend();
900 buildCounterDailyUploadAppend++;
901 if (buildCounterDailyUploadAppend < 3) {
902 o.accountId = "foo";
903 o.appendNumber = 42;
904 o.customDataSourceId = "foo";
905 o.date = "foo";
906 o.kind = "foo";
907 o.nextAppendLink = "foo";
908 o.webPropertyId = "foo";
909 }
910 buildCounterDailyUploadAppend--;
911 return o;
912 }
913
914 checkDailyUploadAppend(api.DailyUploadAppend o) {
915 buildCounterDailyUploadAppend++;
916 if (buildCounterDailyUploadAppend < 3) {
917 unittest.expect(o.accountId, unittest.equals('foo'));
918 unittest.expect(o.appendNumber, unittest.equals(42));
919 unittest.expect(o.customDataSourceId, unittest.equals('foo'));
920 unittest.expect(o.date, unittest.equals('foo'));
921 unittest.expect(o.kind, unittest.equals('foo'));
922 unittest.expect(o.nextAppendLink, unittest.equals('foo'));
923 unittest.expect(o.webPropertyId, unittest.equals('foo'));
924 }
925 buildCounterDailyUploadAppend--;
926 }
927
928 buildUnnamed906() {
929 var o = new core.List<api.DailyUpload>();
930 o.add(buildDailyUpload());
931 o.add(buildDailyUpload());
932 return o;
933 }
934
935 checkUnnamed906(core.List<api.DailyUpload> o) {
936 unittest.expect(o, unittest.hasLength(2));
937 checkDailyUpload(o[0]);
938 checkDailyUpload(o[1]);
939 }
940
941 core.int buildCounterDailyUploads = 0;
942 buildDailyUploads() {
943 var o = new api.DailyUploads();
944 buildCounterDailyUploads++;
945 if (buildCounterDailyUploads < 3) {
946 o.items = buildUnnamed906();
947 o.itemsPerPage = 42;
948 o.kind = "foo";
949 o.nextLink = "foo";
950 o.previousLink = "foo";
951 o.startIndex = 42;
952 o.totalResults = 42;
953 o.username = "foo";
954 }
955 buildCounterDailyUploads--;
956 return o;
957 }
958
959 checkDailyUploads(api.DailyUploads o) {
960 buildCounterDailyUploads++;
961 if (buildCounterDailyUploads < 3) {
962 checkUnnamed906(o.items);
963 unittest.expect(o.itemsPerPage, unittest.equals(42));
964 unittest.expect(o.kind, unittest.equals('foo'));
965 unittest.expect(o.nextLink, unittest.equals('foo'));
966 unittest.expect(o.previousLink, unittest.equals('foo'));
967 unittest.expect(o.startIndex, unittest.equals(42));
968 unittest.expect(o.totalResults, unittest.equals(42));
969 unittest.expect(o.username, unittest.equals('foo'));
970 }
971 buildCounterDailyUploads--;
972 }
973
974 buildUnnamed907() {
975 var o = new core.List<api.AdWordsAccount>(); 839 var o = new core.List<api.AdWordsAccount>();
976 o.add(buildAdWordsAccount()); 840 o.add(buildAdWordsAccount());
977 o.add(buildAdWordsAccount()); 841 o.add(buildAdWordsAccount());
978 return o; 842 return o;
979 } 843 }
980 844
981 checkUnnamed907(core.List<api.AdWordsAccount> o) { 845 checkUnnamed199(core.List<api.AdWordsAccount> o) {
982 unittest.expect(o, unittest.hasLength(2)); 846 unittest.expect(o, unittest.hasLength(2));
983 checkAdWordsAccount(o[0]); 847 checkAdWordsAccount(o[0]);
984 checkAdWordsAccount(o[1]); 848 checkAdWordsAccount(o[1]);
985 } 849 }
986 850
987 core.int buildCounterEntityAdWordsLinkEntity = 0; 851 core.int buildCounterEntityAdWordsLinkEntity = 0;
988 buildEntityAdWordsLinkEntity() { 852 buildEntityAdWordsLinkEntity() {
989 var o = new api.EntityAdWordsLinkEntity(); 853 var o = new api.EntityAdWordsLinkEntity();
990 buildCounterEntityAdWordsLinkEntity++; 854 buildCounterEntityAdWordsLinkEntity++;
991 if (buildCounterEntityAdWordsLinkEntity < 3) { 855 if (buildCounterEntityAdWordsLinkEntity < 3) {
992 o.webPropertyRef = buildWebPropertyRef(); 856 o.webPropertyRef = buildWebPropertyRef();
993 } 857 }
994 buildCounterEntityAdWordsLinkEntity--; 858 buildCounterEntityAdWordsLinkEntity--;
995 return o; 859 return o;
996 } 860 }
997 861
998 checkEntityAdWordsLinkEntity(api.EntityAdWordsLinkEntity o) { 862 checkEntityAdWordsLinkEntity(api.EntityAdWordsLinkEntity o) {
999 buildCounterEntityAdWordsLinkEntity++; 863 buildCounterEntityAdWordsLinkEntity++;
1000 if (buildCounterEntityAdWordsLinkEntity < 3) { 864 if (buildCounterEntityAdWordsLinkEntity < 3) {
1001 checkWebPropertyRef(o.webPropertyRef); 865 checkWebPropertyRef(o.webPropertyRef);
1002 } 866 }
1003 buildCounterEntityAdWordsLinkEntity--; 867 buildCounterEntityAdWordsLinkEntity--;
1004 } 868 }
1005 869
1006 buildUnnamed908() { 870 buildUnnamed200() {
1007 var o = new core.List<core.String>(); 871 var o = new core.List<core.String>();
1008 o.add("foo"); 872 o.add("foo");
1009 o.add("foo"); 873 o.add("foo");
1010 return o; 874 return o;
1011 } 875 }
1012 876
1013 checkUnnamed908(core.List<core.String> o) { 877 checkUnnamed200(core.List<core.String> o) {
1014 unittest.expect(o, unittest.hasLength(2)); 878 unittest.expect(o, unittest.hasLength(2));
1015 unittest.expect(o[0], unittest.equals('foo')); 879 unittest.expect(o[0], unittest.equals('foo'));
1016 unittest.expect(o[1], unittest.equals('foo')); 880 unittest.expect(o[1], unittest.equals('foo'));
1017 } 881 }
1018 882
1019 core.int buildCounterEntityAdWordsLink = 0; 883 core.int buildCounterEntityAdWordsLink = 0;
1020 buildEntityAdWordsLink() { 884 buildEntityAdWordsLink() {
1021 var o = new api.EntityAdWordsLink(); 885 var o = new api.EntityAdWordsLink();
1022 buildCounterEntityAdWordsLink++; 886 buildCounterEntityAdWordsLink++;
1023 if (buildCounterEntityAdWordsLink < 3) { 887 if (buildCounterEntityAdWordsLink < 3) {
1024 o.adWordsAccounts = buildUnnamed907(); 888 o.adWordsAccounts = buildUnnamed199();
1025 o.entity = buildEntityAdWordsLinkEntity(); 889 o.entity = buildEntityAdWordsLinkEntity();
1026 o.id = "foo"; 890 o.id = "foo";
1027 o.kind = "foo"; 891 o.kind = "foo";
1028 o.name = "foo"; 892 o.name = "foo";
1029 o.profileIds = buildUnnamed908(); 893 o.profileIds = buildUnnamed200();
1030 o.selfLink = "foo"; 894 o.selfLink = "foo";
1031 } 895 }
1032 buildCounterEntityAdWordsLink--; 896 buildCounterEntityAdWordsLink--;
1033 return o; 897 return o;
1034 } 898 }
1035 899
1036 checkEntityAdWordsLink(api.EntityAdWordsLink o) { 900 checkEntityAdWordsLink(api.EntityAdWordsLink o) {
1037 buildCounterEntityAdWordsLink++; 901 buildCounterEntityAdWordsLink++;
1038 if (buildCounterEntityAdWordsLink < 3) { 902 if (buildCounterEntityAdWordsLink < 3) {
1039 checkUnnamed907(o.adWordsAccounts); 903 checkUnnamed199(o.adWordsAccounts);
1040 checkEntityAdWordsLinkEntity(o.entity); 904 checkEntityAdWordsLinkEntity(o.entity);
1041 unittest.expect(o.id, unittest.equals('foo')); 905 unittest.expect(o.id, unittest.equals('foo'));
1042 unittest.expect(o.kind, unittest.equals('foo')); 906 unittest.expect(o.kind, unittest.equals('foo'));
1043 unittest.expect(o.name, unittest.equals('foo')); 907 unittest.expect(o.name, unittest.equals('foo'));
1044 checkUnnamed908(o.profileIds); 908 checkUnnamed200(o.profileIds);
1045 unittest.expect(o.selfLink, unittest.equals('foo')); 909 unittest.expect(o.selfLink, unittest.equals('foo'));
1046 } 910 }
1047 buildCounterEntityAdWordsLink--; 911 buildCounterEntityAdWordsLink--;
1048 } 912 }
1049 913
1050 buildUnnamed909() { 914 buildUnnamed201() {
1051 var o = new core.List<api.EntityAdWordsLink>(); 915 var o = new core.List<api.EntityAdWordsLink>();
1052 o.add(buildEntityAdWordsLink()); 916 o.add(buildEntityAdWordsLink());
1053 o.add(buildEntityAdWordsLink()); 917 o.add(buildEntityAdWordsLink());
1054 return o; 918 return o;
1055 } 919 }
1056 920
1057 checkUnnamed909(core.List<api.EntityAdWordsLink> o) { 921 checkUnnamed201(core.List<api.EntityAdWordsLink> o) {
1058 unittest.expect(o, unittest.hasLength(2)); 922 unittest.expect(o, unittest.hasLength(2));
1059 checkEntityAdWordsLink(o[0]); 923 checkEntityAdWordsLink(o[0]);
1060 checkEntityAdWordsLink(o[1]); 924 checkEntityAdWordsLink(o[1]);
1061 } 925 }
1062 926
1063 core.int buildCounterEntityAdWordsLinks = 0; 927 core.int buildCounterEntityAdWordsLinks = 0;
1064 buildEntityAdWordsLinks() { 928 buildEntityAdWordsLinks() {
1065 var o = new api.EntityAdWordsLinks(); 929 var o = new api.EntityAdWordsLinks();
1066 buildCounterEntityAdWordsLinks++; 930 buildCounterEntityAdWordsLinks++;
1067 if (buildCounterEntityAdWordsLinks < 3) { 931 if (buildCounterEntityAdWordsLinks < 3) {
1068 o.items = buildUnnamed909(); 932 o.items = buildUnnamed201();
1069 o.itemsPerPage = 42; 933 o.itemsPerPage = 42;
1070 o.kind = "foo"; 934 o.kind = "foo";
1071 o.nextLink = "foo"; 935 o.nextLink = "foo";
1072 o.previousLink = "foo"; 936 o.previousLink = "foo";
1073 o.startIndex = 42; 937 o.startIndex = 42;
1074 o.totalResults = 42; 938 o.totalResults = 42;
1075 } 939 }
1076 buildCounterEntityAdWordsLinks--; 940 buildCounterEntityAdWordsLinks--;
1077 return o; 941 return o;
1078 } 942 }
1079 943
1080 checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { 944 checkEntityAdWordsLinks(api.EntityAdWordsLinks o) {
1081 buildCounterEntityAdWordsLinks++; 945 buildCounterEntityAdWordsLinks++;
1082 if (buildCounterEntityAdWordsLinks < 3) { 946 if (buildCounterEntityAdWordsLinks < 3) {
1083 checkUnnamed909(o.items); 947 checkUnnamed201(o.items);
1084 unittest.expect(o.itemsPerPage, unittest.equals(42)); 948 unittest.expect(o.itemsPerPage, unittest.equals(42));
1085 unittest.expect(o.kind, unittest.equals('foo')); 949 unittest.expect(o.kind, unittest.equals('foo'));
1086 unittest.expect(o.nextLink, unittest.equals('foo')); 950 unittest.expect(o.nextLink, unittest.equals('foo'));
1087 unittest.expect(o.previousLink, unittest.equals('foo')); 951 unittest.expect(o.previousLink, unittest.equals('foo'));
1088 unittest.expect(o.startIndex, unittest.equals(42)); 952 unittest.expect(o.startIndex, unittest.equals(42));
1089 unittest.expect(o.totalResults, unittest.equals(42)); 953 unittest.expect(o.totalResults, unittest.equals(42));
1090 } 954 }
1091 buildCounterEntityAdWordsLinks--; 955 buildCounterEntityAdWordsLinks--;
1092 } 956 }
1093 957
(...skipping 13 matching lines...) Expand all
1107 checkEntityUserLinkEntity(api.EntityUserLinkEntity o) { 971 checkEntityUserLinkEntity(api.EntityUserLinkEntity o) {
1108 buildCounterEntityUserLinkEntity++; 972 buildCounterEntityUserLinkEntity++;
1109 if (buildCounterEntityUserLinkEntity < 3) { 973 if (buildCounterEntityUserLinkEntity < 3) {
1110 checkAccountRef(o.accountRef); 974 checkAccountRef(o.accountRef);
1111 checkProfileRef(o.profileRef); 975 checkProfileRef(o.profileRef);
1112 checkWebPropertyRef(o.webPropertyRef); 976 checkWebPropertyRef(o.webPropertyRef);
1113 } 977 }
1114 buildCounterEntityUserLinkEntity--; 978 buildCounterEntityUserLinkEntity--;
1115 } 979 }
1116 980
1117 buildUnnamed910() { 981 buildUnnamed202() {
1118 var o = new core.List<core.String>(); 982 var o = new core.List<core.String>();
1119 o.add("foo"); 983 o.add("foo");
1120 o.add("foo"); 984 o.add("foo");
1121 return o; 985 return o;
1122 } 986 }
1123 987
1124 checkUnnamed910(core.List<core.String> o) { 988 checkUnnamed202(core.List<core.String> o) {
1125 unittest.expect(o, unittest.hasLength(2)); 989 unittest.expect(o, unittest.hasLength(2));
1126 unittest.expect(o[0], unittest.equals('foo')); 990 unittest.expect(o[0], unittest.equals('foo'));
1127 unittest.expect(o[1], unittest.equals('foo')); 991 unittest.expect(o[1], unittest.equals('foo'));
1128 } 992 }
1129 993
1130 buildUnnamed911() { 994 buildUnnamed203() {
1131 var o = new core.List<core.String>(); 995 var o = new core.List<core.String>();
1132 o.add("foo"); 996 o.add("foo");
1133 o.add("foo"); 997 o.add("foo");
1134 return o; 998 return o;
1135 } 999 }
1136 1000
1137 checkUnnamed911(core.List<core.String> o) { 1001 checkUnnamed203(core.List<core.String> o) {
1138 unittest.expect(o, unittest.hasLength(2)); 1002 unittest.expect(o, unittest.hasLength(2));
1139 unittest.expect(o[0], unittest.equals('foo')); 1003 unittest.expect(o[0], unittest.equals('foo'));
1140 unittest.expect(o[1], unittest.equals('foo')); 1004 unittest.expect(o[1], unittest.equals('foo'));
1141 } 1005 }
1142 1006
1143 core.int buildCounterEntityUserLinkPermissions = 0; 1007 core.int buildCounterEntityUserLinkPermissions = 0;
1144 buildEntityUserLinkPermissions() { 1008 buildEntityUserLinkPermissions() {
1145 var o = new api.EntityUserLinkPermissions(); 1009 var o = new api.EntityUserLinkPermissions();
1146 buildCounterEntityUserLinkPermissions++; 1010 buildCounterEntityUserLinkPermissions++;
1147 if (buildCounterEntityUserLinkPermissions < 3) { 1011 if (buildCounterEntityUserLinkPermissions < 3) {
1148 o.effective = buildUnnamed910(); 1012 o.effective = buildUnnamed202();
1149 o.local = buildUnnamed911(); 1013 o.local = buildUnnamed203();
1150 } 1014 }
1151 buildCounterEntityUserLinkPermissions--; 1015 buildCounterEntityUserLinkPermissions--;
1152 return o; 1016 return o;
1153 } 1017 }
1154 1018
1155 checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { 1019 checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) {
1156 buildCounterEntityUserLinkPermissions++; 1020 buildCounterEntityUserLinkPermissions++;
1157 if (buildCounterEntityUserLinkPermissions < 3) { 1021 if (buildCounterEntityUserLinkPermissions < 3) {
1158 checkUnnamed910(o.effective); 1022 checkUnnamed202(o.effective);
1159 checkUnnamed911(o.local); 1023 checkUnnamed203(o.local);
1160 } 1024 }
1161 buildCounterEntityUserLinkPermissions--; 1025 buildCounterEntityUserLinkPermissions--;
1162 } 1026 }
1163 1027
1164 core.int buildCounterEntityUserLink = 0; 1028 core.int buildCounterEntityUserLink = 0;
1165 buildEntityUserLink() { 1029 buildEntityUserLink() {
1166 var o = new api.EntityUserLink(); 1030 var o = new api.EntityUserLink();
1167 buildCounterEntityUserLink++; 1031 buildCounterEntityUserLink++;
1168 if (buildCounterEntityUserLink < 3) { 1032 if (buildCounterEntityUserLink < 3) {
1169 o.entity = buildEntityUserLinkEntity(); 1033 o.entity = buildEntityUserLinkEntity();
(...skipping 13 matching lines...) Expand all
1183 checkEntityUserLinkEntity(o.entity); 1047 checkEntityUserLinkEntity(o.entity);
1184 unittest.expect(o.id, unittest.equals('foo')); 1048 unittest.expect(o.id, unittest.equals('foo'));
1185 unittest.expect(o.kind, unittest.equals('foo')); 1049 unittest.expect(o.kind, unittest.equals('foo'));
1186 checkEntityUserLinkPermissions(o.permissions); 1050 checkEntityUserLinkPermissions(o.permissions);
1187 unittest.expect(o.selfLink, unittest.equals('foo')); 1051 unittest.expect(o.selfLink, unittest.equals('foo'));
1188 checkUserRef(o.userRef); 1052 checkUserRef(o.userRef);
1189 } 1053 }
1190 buildCounterEntityUserLink--; 1054 buildCounterEntityUserLink--;
1191 } 1055 }
1192 1056
1193 buildUnnamed912() { 1057 buildUnnamed204() {
1194 var o = new core.List<api.EntityUserLink>(); 1058 var o = new core.List<api.EntityUserLink>();
1195 o.add(buildEntityUserLink()); 1059 o.add(buildEntityUserLink());
1196 o.add(buildEntityUserLink()); 1060 o.add(buildEntityUserLink());
1197 return o; 1061 return o;
1198 } 1062 }
1199 1063
1200 checkUnnamed912(core.List<api.EntityUserLink> o) { 1064 checkUnnamed204(core.List<api.EntityUserLink> o) {
1201 unittest.expect(o, unittest.hasLength(2)); 1065 unittest.expect(o, unittest.hasLength(2));
1202 checkEntityUserLink(o[0]); 1066 checkEntityUserLink(o[0]);
1203 checkEntityUserLink(o[1]); 1067 checkEntityUserLink(o[1]);
1204 } 1068 }
1205 1069
1206 core.int buildCounterEntityUserLinks = 0; 1070 core.int buildCounterEntityUserLinks = 0;
1207 buildEntityUserLinks() { 1071 buildEntityUserLinks() {
1208 var o = new api.EntityUserLinks(); 1072 var o = new api.EntityUserLinks();
1209 buildCounterEntityUserLinks++; 1073 buildCounterEntityUserLinks++;
1210 if (buildCounterEntityUserLinks < 3) { 1074 if (buildCounterEntityUserLinks < 3) {
1211 o.items = buildUnnamed912(); 1075 o.items = buildUnnamed204();
1212 o.itemsPerPage = 42; 1076 o.itemsPerPage = 42;
1213 o.kind = "foo"; 1077 o.kind = "foo";
1214 o.nextLink = "foo"; 1078 o.nextLink = "foo";
1215 o.previousLink = "foo"; 1079 o.previousLink = "foo";
1216 o.startIndex = 42; 1080 o.startIndex = 42;
1217 o.totalResults = 42; 1081 o.totalResults = 42;
1218 } 1082 }
1219 buildCounterEntityUserLinks--; 1083 buildCounterEntityUserLinks--;
1220 return o; 1084 return o;
1221 } 1085 }
1222 1086
1223 checkEntityUserLinks(api.EntityUserLinks o) { 1087 checkEntityUserLinks(api.EntityUserLinks o) {
1224 buildCounterEntityUserLinks++; 1088 buildCounterEntityUserLinks++;
1225 if (buildCounterEntityUserLinks < 3) { 1089 if (buildCounterEntityUserLinks < 3) {
1226 checkUnnamed912(o.items); 1090 checkUnnamed204(o.items);
1227 unittest.expect(o.itemsPerPage, unittest.equals(42)); 1091 unittest.expect(o.itemsPerPage, unittest.equals(42));
1228 unittest.expect(o.kind, unittest.equals('foo')); 1092 unittest.expect(o.kind, unittest.equals('foo'));
1229 unittest.expect(o.nextLink, unittest.equals('foo')); 1093 unittest.expect(o.nextLink, unittest.equals('foo'));
1230 unittest.expect(o.previousLink, unittest.equals('foo')); 1094 unittest.expect(o.previousLink, unittest.equals('foo'));
1231 unittest.expect(o.startIndex, unittest.equals(42)); 1095 unittest.expect(o.startIndex, unittest.equals(42));
1232 unittest.expect(o.totalResults, unittest.equals(42)); 1096 unittest.expect(o.totalResults, unittest.equals(42));
1233 } 1097 }
1234 buildCounterEntityUserLinks--; 1098 buildCounterEntityUserLinks--;
1235 } 1099 }
1236 1100
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 if (buildCounterExperimentVariations < 3) { 1139 if (buildCounterExperimentVariations < 3) {
1276 unittest.expect(o.name, unittest.equals('foo')); 1140 unittest.expect(o.name, unittest.equals('foo'));
1277 unittest.expect(o.status, unittest.equals('foo')); 1141 unittest.expect(o.status, unittest.equals('foo'));
1278 unittest.expect(o.url, unittest.equals('foo')); 1142 unittest.expect(o.url, unittest.equals('foo'));
1279 unittest.expect(o.weight, unittest.equals(42.0)); 1143 unittest.expect(o.weight, unittest.equals(42.0));
1280 unittest.expect(o.won, unittest.isTrue); 1144 unittest.expect(o.won, unittest.isTrue);
1281 } 1145 }
1282 buildCounterExperimentVariations--; 1146 buildCounterExperimentVariations--;
1283 } 1147 }
1284 1148
1285 buildUnnamed913() { 1149 buildUnnamed205() {
1286 var o = new core.List<api.ExperimentVariations>(); 1150 var o = new core.List<api.ExperimentVariations>();
1287 o.add(buildExperimentVariations()); 1151 o.add(buildExperimentVariations());
1288 o.add(buildExperimentVariations()); 1152 o.add(buildExperimentVariations());
1289 return o; 1153 return o;
1290 } 1154 }
1291 1155
1292 checkUnnamed913(core.List<api.ExperimentVariations> o) { 1156 checkUnnamed205(core.List<api.ExperimentVariations> o) {
1293 unittest.expect(o, unittest.hasLength(2)); 1157 unittest.expect(o, unittest.hasLength(2));
1294 checkExperimentVariations(o[0]); 1158 checkExperimentVariations(o[0]);
1295 checkExperimentVariations(o[1]); 1159 checkExperimentVariations(o[1]);
1296 } 1160 }
1297 1161
1298 core.int buildCounterExperiment = 0; 1162 core.int buildCounterExperiment = 0;
1299 buildExperiment() { 1163 buildExperiment() {
1300 var o = new api.Experiment(); 1164 var o = new api.Experiment();
1301 buildCounterExperiment++; 1165 buildCounterExperiment++;
1302 if (buildCounterExperiment < 3) { 1166 if (buildCounterExperiment < 3) {
(...skipping 14 matching lines...) Expand all
1317 o.profileId = "foo"; 1181 o.profileId = "foo";
1318 o.reasonExperimentEnded = "foo"; 1182 o.reasonExperimentEnded = "foo";
1319 o.rewriteVariationUrlsAsOriginal = true; 1183 o.rewriteVariationUrlsAsOriginal = true;
1320 o.selfLink = "foo"; 1184 o.selfLink = "foo";
1321 o.servingFramework = "foo"; 1185 o.servingFramework = "foo";
1322 o.snippet = "foo"; 1186 o.snippet = "foo";
1323 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); 1187 o.startTime = core.DateTime.parse("2002-02-27T14:01:02");
1324 o.status = "foo"; 1188 o.status = "foo";
1325 o.trafficCoverage = 42.0; 1189 o.trafficCoverage = 42.0;
1326 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); 1190 o.updated = core.DateTime.parse("2002-02-27T14:01:02");
1327 o.variations = buildUnnamed913(); 1191 o.variations = buildUnnamed205();
1328 o.webPropertyId = "foo"; 1192 o.webPropertyId = "foo";
1329 o.winnerConfidenceLevel = 42.0; 1193 o.winnerConfidenceLevel = 42.0;
1330 o.winnerFound = true; 1194 o.winnerFound = true;
1331 } 1195 }
1332 buildCounterExperiment--; 1196 buildCounterExperiment--;
1333 return o; 1197 return o;
1334 } 1198 }
1335 1199
1336 checkExperiment(api.Experiment o) { 1200 checkExperiment(api.Experiment o) {
1337 buildCounterExperiment++; 1201 buildCounterExperiment++;
(...skipping 15 matching lines...) Expand all
1353 unittest.expect(o.profileId, unittest.equals('foo')); 1217 unittest.expect(o.profileId, unittest.equals('foo'));
1354 unittest.expect(o.reasonExperimentEnded, unittest.equals('foo')); 1218 unittest.expect(o.reasonExperimentEnded, unittest.equals('foo'));
1355 unittest.expect(o.rewriteVariationUrlsAsOriginal, unittest.isTrue); 1219 unittest.expect(o.rewriteVariationUrlsAsOriginal, unittest.isTrue);
1356 unittest.expect(o.selfLink, unittest.equals('foo')); 1220 unittest.expect(o.selfLink, unittest.equals('foo'));
1357 unittest.expect(o.servingFramework, unittest.equals('foo')); 1221 unittest.expect(o.servingFramework, unittest.equals('foo'));
1358 unittest.expect(o.snippet, unittest.equals('foo')); 1222 unittest.expect(o.snippet, unittest.equals('foo'));
1359 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 1223 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
1360 unittest.expect(o.status, unittest.equals('foo')); 1224 unittest.expect(o.status, unittest.equals('foo'));
1361 unittest.expect(o.trafficCoverage, unittest.equals(42.0)); 1225 unittest.expect(o.trafficCoverage, unittest.equals(42.0));
1362 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 1226 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
1363 checkUnnamed913(o.variations); 1227 checkUnnamed205(o.variations);
1364 unittest.expect(o.webPropertyId, unittest.equals('foo')); 1228 unittest.expect(o.webPropertyId, unittest.equals('foo'));
1365 unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); 1229 unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0));
1366 unittest.expect(o.winnerFound, unittest.isTrue); 1230 unittest.expect(o.winnerFound, unittest.isTrue);
1367 } 1231 }
1368 buildCounterExperiment--; 1232 buildCounterExperiment--;
1369 } 1233 }
1370 1234
1371 buildUnnamed914() { 1235 buildUnnamed206() {
1372 var o = new core.List<api.Experiment>(); 1236 var o = new core.List<api.Experiment>();
1373 o.add(buildExperiment()); 1237 o.add(buildExperiment());
1374 o.add(buildExperiment()); 1238 o.add(buildExperiment());
1375 return o; 1239 return o;
1376 } 1240 }
1377 1241
1378 checkUnnamed914(core.List<api.Experiment> o) { 1242 checkUnnamed206(core.List<api.Experiment> o) {
1379 unittest.expect(o, unittest.hasLength(2)); 1243 unittest.expect(o, unittest.hasLength(2));
1380 checkExperiment(o[0]); 1244 checkExperiment(o[0]);
1381 checkExperiment(o[1]); 1245 checkExperiment(o[1]);
1382 } 1246 }
1383 1247
1384 core.int buildCounterExperiments = 0; 1248 core.int buildCounterExperiments = 0;
1385 buildExperiments() { 1249 buildExperiments() {
1386 var o = new api.Experiments(); 1250 var o = new api.Experiments();
1387 buildCounterExperiments++; 1251 buildCounterExperiments++;
1388 if (buildCounterExperiments < 3) { 1252 if (buildCounterExperiments < 3) {
1389 o.items = buildUnnamed914(); 1253 o.items = buildUnnamed206();
1390 o.itemsPerPage = 42; 1254 o.itemsPerPage = 42;
1391 o.kind = "foo"; 1255 o.kind = "foo";
1392 o.nextLink = "foo"; 1256 o.nextLink = "foo";
1393 o.previousLink = "foo"; 1257 o.previousLink = "foo";
1394 o.startIndex = 42; 1258 o.startIndex = 42;
1395 o.totalResults = 42; 1259 o.totalResults = 42;
1396 o.username = "foo"; 1260 o.username = "foo";
1397 } 1261 }
1398 buildCounterExperiments--; 1262 buildCounterExperiments--;
1399 return o; 1263 return o;
1400 } 1264 }
1401 1265
1402 checkExperiments(api.Experiments o) { 1266 checkExperiments(api.Experiments o) {
1403 buildCounterExperiments++; 1267 buildCounterExperiments++;
1404 if (buildCounterExperiments < 3) { 1268 if (buildCounterExperiments < 3) {
1405 checkUnnamed914(o.items); 1269 checkUnnamed206(o.items);
1406 unittest.expect(o.itemsPerPage, unittest.equals(42)); 1270 unittest.expect(o.itemsPerPage, unittest.equals(42));
1407 unittest.expect(o.kind, unittest.equals('foo')); 1271 unittest.expect(o.kind, unittest.equals('foo'));
1408 unittest.expect(o.nextLink, unittest.equals('foo')); 1272 unittest.expect(o.nextLink, unittest.equals('foo'));
1409 unittest.expect(o.previousLink, unittest.equals('foo')); 1273 unittest.expect(o.previousLink, unittest.equals('foo'));
1410 unittest.expect(o.startIndex, unittest.equals(42)); 1274 unittest.expect(o.startIndex, unittest.equals(42));
1411 unittest.expect(o.totalResults, unittest.equals(42)); 1275 unittest.expect(o.totalResults, unittest.equals(42));
1412 unittest.expect(o.username, unittest.equals('foo')); 1276 unittest.expect(o.username, unittest.equals('foo'));
1413 } 1277 }
1414 buildCounterExperiments--; 1278 buildCounterExperiments--;
1415 } 1279 }
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 if (buildCounterFilterRef < 3) { 1493 if (buildCounterFilterRef < 3) {
1630 unittest.expect(o.accountId, unittest.equals('foo')); 1494 unittest.expect(o.accountId, unittest.equals('foo'));
1631 unittest.expect(o.href, unittest.equals('foo')); 1495 unittest.expect(o.href, unittest.equals('foo'));
1632 unittest.expect(o.id, unittest.equals('foo')); 1496 unittest.expect(o.id, unittest.equals('foo'));
1633 unittest.expect(o.kind, unittest.equals('foo')); 1497 unittest.expect(o.kind, unittest.equals('foo'));
1634 unittest.expect(o.name, unittest.equals('foo')); 1498 unittest.expect(o.name, unittest.equals('foo'));
1635 } 1499 }
1636 buildCounterFilterRef--; 1500 buildCounterFilterRef--;
1637 } 1501 }
1638 1502
1639 buildUnnamed915() { 1503 buildUnnamed207() {
1640 var o = new core.List<api.Filter>(); 1504 var o = new core.List<api.Filter>();
1641 o.add(buildFilter()); 1505 o.add(buildFilter());
1642 o.add(buildFilter()); 1506 o.add(buildFilter());
1643 return o; 1507 return o;
1644 } 1508 }
1645 1509
1646 checkUnnamed915(core.List<api.Filter> o) { 1510 checkUnnamed207(core.List<api.Filter> o) {
1647 unittest.expect(o, unittest.hasLength(2)); 1511 unittest.expect(o, unittest.hasLength(2));
1648 checkFilter(o[0]); 1512 checkFilter(o[0]);
1649 checkFilter(o[1]); 1513 checkFilter(o[1]);
1650 } 1514 }
1651 1515
1652 core.int buildCounterFilters = 0; 1516 core.int buildCounterFilters = 0;
1653 buildFilters() { 1517 buildFilters() {
1654 var o = new api.Filters(); 1518 var o = new api.Filters();
1655 buildCounterFilters++; 1519 buildCounterFilters++;
1656 if (buildCounterFilters < 3) { 1520 if (buildCounterFilters < 3) {
1657 o.items = buildUnnamed915(); 1521 o.items = buildUnnamed207();
1658 o.itemsPerPage = 42; 1522 o.itemsPerPage = 42;
1659 o.kind = "foo"; 1523 o.kind = "foo";
1660 o.nextLink = "foo"; 1524 o.nextLink = "foo";
1661 o.previousLink = "foo"; 1525 o.previousLink = "foo";
1662 o.startIndex = 42; 1526 o.startIndex = 42;
1663 o.totalResults = 42; 1527 o.totalResults = 42;
1664 o.username = "foo"; 1528 o.username = "foo";
1665 } 1529 }
1666 buildCounterFilters--; 1530 buildCounterFilters--;
1667 return o; 1531 return o;
1668 } 1532 }
1669 1533
1670 checkFilters(api.Filters o) { 1534 checkFilters(api.Filters o) {
1671 buildCounterFilters++; 1535 buildCounterFilters++;
1672 if (buildCounterFilters < 3) { 1536 if (buildCounterFilters < 3) {
1673 checkUnnamed915(o.items); 1537 checkUnnamed207(o.items);
1674 unittest.expect(o.itemsPerPage, unittest.equals(42)); 1538 unittest.expect(o.itemsPerPage, unittest.equals(42));
1675 unittest.expect(o.kind, unittest.equals('foo')); 1539 unittest.expect(o.kind, unittest.equals('foo'));
1676 unittest.expect(o.nextLink, unittest.equals('foo')); 1540 unittest.expect(o.nextLink, unittest.equals('foo'));
1677 unittest.expect(o.previousLink, unittest.equals('foo')); 1541 unittest.expect(o.previousLink, unittest.equals('foo'));
1678 unittest.expect(o.startIndex, unittest.equals(42)); 1542 unittest.expect(o.startIndex, unittest.equals(42));
1679 unittest.expect(o.totalResults, unittest.equals(42)); 1543 unittest.expect(o.totalResults, unittest.equals(42));
1680 unittest.expect(o.username, unittest.equals('foo')); 1544 unittest.expect(o.username, unittest.equals('foo'));
1681 } 1545 }
1682 buildCounterFilters--; 1546 buildCounterFilters--;
1683 } 1547 }
(...skipping 14 matching lines...) Expand all
1698 checkGaDataColumnHeaders(api.GaDataColumnHeaders o) { 1562 checkGaDataColumnHeaders(api.GaDataColumnHeaders o) {
1699 buildCounterGaDataColumnHeaders++; 1563 buildCounterGaDataColumnHeaders++;
1700 if (buildCounterGaDataColumnHeaders < 3) { 1564 if (buildCounterGaDataColumnHeaders < 3) {
1701 unittest.expect(o.columnType, unittest.equals('foo')); 1565 unittest.expect(o.columnType, unittest.equals('foo'));
1702 unittest.expect(o.dataType, unittest.equals('foo')); 1566 unittest.expect(o.dataType, unittest.equals('foo'));
1703 unittest.expect(o.name, unittest.equals('foo')); 1567 unittest.expect(o.name, unittest.equals('foo'));
1704 } 1568 }
1705 buildCounterGaDataColumnHeaders--; 1569 buildCounterGaDataColumnHeaders--;
1706 } 1570 }
1707 1571
1708 buildUnnamed916() { 1572 buildUnnamed208() {
1709 var o = new core.List<api.GaDataColumnHeaders>(); 1573 var o = new core.List<api.GaDataColumnHeaders>();
1710 o.add(buildGaDataColumnHeaders()); 1574 o.add(buildGaDataColumnHeaders());
1711 o.add(buildGaDataColumnHeaders()); 1575 o.add(buildGaDataColumnHeaders());
1712 return o; 1576 return o;
1713 } 1577 }
1714 1578
1715 checkUnnamed916(core.List<api.GaDataColumnHeaders> o) { 1579 checkUnnamed208(core.List<api.GaDataColumnHeaders> o) {
1716 unittest.expect(o, unittest.hasLength(2)); 1580 unittest.expect(o, unittest.hasLength(2));
1717 checkGaDataColumnHeaders(o[0]); 1581 checkGaDataColumnHeaders(o[0]);
1718 checkGaDataColumnHeaders(o[1]); 1582 checkGaDataColumnHeaders(o[1]);
1719 } 1583 }
1720 1584
1721 core.int buildCounterGaDataDataTableCols = 0; 1585 core.int buildCounterGaDataDataTableCols = 0;
1722 buildGaDataDataTableCols() { 1586 buildGaDataDataTableCols() {
1723 var o = new api.GaDataDataTableCols(); 1587 var o = new api.GaDataDataTableCols();
1724 buildCounterGaDataDataTableCols++; 1588 buildCounterGaDataDataTableCols++;
1725 if (buildCounterGaDataDataTableCols < 3) { 1589 if (buildCounterGaDataDataTableCols < 3) {
1726 o.id = "foo"; 1590 o.id = "foo";
1727 o.label = "foo"; 1591 o.label = "foo";
1728 o.type = "foo"; 1592 o.type = "foo";
1729 } 1593 }
1730 buildCounterGaDataDataTableCols--; 1594 buildCounterGaDataDataTableCols--;
1731 return o; 1595 return o;
1732 } 1596 }
1733 1597
1734 checkGaDataDataTableCols(api.GaDataDataTableCols o) { 1598 checkGaDataDataTableCols(api.GaDataDataTableCols o) {
1735 buildCounterGaDataDataTableCols++; 1599 buildCounterGaDataDataTableCols++;
1736 if (buildCounterGaDataDataTableCols < 3) { 1600 if (buildCounterGaDataDataTableCols < 3) {
1737 unittest.expect(o.id, unittest.equals('foo')); 1601 unittest.expect(o.id, unittest.equals('foo'));
1738 unittest.expect(o.label, unittest.equals('foo')); 1602 unittest.expect(o.label, unittest.equals('foo'));
1739 unittest.expect(o.type, unittest.equals('foo')); 1603 unittest.expect(o.type, unittest.equals('foo'));
1740 } 1604 }
1741 buildCounterGaDataDataTableCols--; 1605 buildCounterGaDataDataTableCols--;
1742 } 1606 }
1743 1607
1744 buildUnnamed917() { 1608 buildUnnamed209() {
1745 var o = new core.List<api.GaDataDataTableCols>(); 1609 var o = new core.List<api.GaDataDataTableCols>();
1746 o.add(buildGaDataDataTableCols()); 1610 o.add(buildGaDataDataTableCols());
1747 o.add(buildGaDataDataTableCols()); 1611 o.add(buildGaDataDataTableCols());
1748 return o; 1612 return o;
1749 } 1613 }
1750 1614
1751 checkUnnamed917(core.List<api.GaDataDataTableCols> o) { 1615 checkUnnamed209(core.List<api.GaDataDataTableCols> o) {
1752 unittest.expect(o, unittest.hasLength(2)); 1616 unittest.expect(o, unittest.hasLength(2));
1753 checkGaDataDataTableCols(o[0]); 1617 checkGaDataDataTableCols(o[0]);
1754 checkGaDataDataTableCols(o[1]); 1618 checkGaDataDataTableCols(o[1]);
1755 } 1619 }
1756 1620
1757 core.int buildCounterGaDataDataTableRowsC = 0; 1621 core.int buildCounterGaDataDataTableRowsC = 0;
1758 buildGaDataDataTableRowsC() { 1622 buildGaDataDataTableRowsC() {
1759 var o = new api.GaDataDataTableRowsC(); 1623 var o = new api.GaDataDataTableRowsC();
1760 buildCounterGaDataDataTableRowsC++; 1624 buildCounterGaDataDataTableRowsC++;
1761 if (buildCounterGaDataDataTableRowsC < 3) { 1625 if (buildCounterGaDataDataTableRowsC < 3) {
1762 o.v = "foo"; 1626 o.v = "foo";
1763 } 1627 }
1764 buildCounterGaDataDataTableRowsC--; 1628 buildCounterGaDataDataTableRowsC--;
1765 return o; 1629 return o;
1766 } 1630 }
1767 1631
1768 checkGaDataDataTableRowsC(api.GaDataDataTableRowsC o) { 1632 checkGaDataDataTableRowsC(api.GaDataDataTableRowsC o) {
1769 buildCounterGaDataDataTableRowsC++; 1633 buildCounterGaDataDataTableRowsC++;
1770 if (buildCounterGaDataDataTableRowsC < 3) { 1634 if (buildCounterGaDataDataTableRowsC < 3) {
1771 unittest.expect(o.v, unittest.equals('foo')); 1635 unittest.expect(o.v, unittest.equals('foo'));
1772 } 1636 }
1773 buildCounterGaDataDataTableRowsC--; 1637 buildCounterGaDataDataTableRowsC--;
1774 } 1638 }
1775 1639
1776 buildUnnamed918() { 1640 buildUnnamed210() {
1777 var o = new core.List<api.GaDataDataTableRowsC>(); 1641 var o = new core.List<api.GaDataDataTableRowsC>();
1778 o.add(buildGaDataDataTableRowsC()); 1642 o.add(buildGaDataDataTableRowsC());
1779 o.add(buildGaDataDataTableRowsC()); 1643 o.add(buildGaDataDataTableRowsC());
1780 return o; 1644 return o;
1781 } 1645 }
1782 1646
1783 checkUnnamed918(core.List<api.GaDataDataTableRowsC> o) { 1647 checkUnnamed210(core.List<api.GaDataDataTableRowsC> o) {
1784 unittest.expect(o, unittest.hasLength(2)); 1648 unittest.expect(o, unittest.hasLength(2));
1785 checkGaDataDataTableRowsC(o[0]); 1649 checkGaDataDataTableRowsC(o[0]);
1786 checkGaDataDataTableRowsC(o[1]); 1650 checkGaDataDataTableRowsC(o[1]);
1787 } 1651 }
1788 1652
1789 core.int buildCounterGaDataDataTableRows = 0; 1653 core.int buildCounterGaDataDataTableRows = 0;
1790 buildGaDataDataTableRows() { 1654 buildGaDataDataTableRows() {
1791 var o = new api.GaDataDataTableRows(); 1655 var o = new api.GaDataDataTableRows();
1792 buildCounterGaDataDataTableRows++; 1656 buildCounterGaDataDataTableRows++;
1793 if (buildCounterGaDataDataTableRows < 3) { 1657 if (buildCounterGaDataDataTableRows < 3) {
1794 o.c = buildUnnamed918(); 1658 o.c = buildUnnamed210();
1795 } 1659 }
1796 buildCounterGaDataDataTableRows--; 1660 buildCounterGaDataDataTableRows--;
1797 return o; 1661 return o;
1798 } 1662 }
1799 1663
1800 checkGaDataDataTableRows(api.GaDataDataTableRows o) { 1664 checkGaDataDataTableRows(api.GaDataDataTableRows o) {
1801 buildCounterGaDataDataTableRows++; 1665 buildCounterGaDataDataTableRows++;
1802 if (buildCounterGaDataDataTableRows < 3) { 1666 if (buildCounterGaDataDataTableRows < 3) {
1803 checkUnnamed918(o.c); 1667 checkUnnamed210(o.c);
1804 } 1668 }
1805 buildCounterGaDataDataTableRows--; 1669 buildCounterGaDataDataTableRows--;
1806 } 1670 }
1807 1671
1808 buildUnnamed919() { 1672 buildUnnamed211() {
1809 var o = new core.List<api.GaDataDataTableRows>(); 1673 var o = new core.List<api.GaDataDataTableRows>();
1810 o.add(buildGaDataDataTableRows()); 1674 o.add(buildGaDataDataTableRows());
1811 o.add(buildGaDataDataTableRows()); 1675 o.add(buildGaDataDataTableRows());
1812 return o; 1676 return o;
1813 } 1677 }
1814 1678
1815 checkUnnamed919(core.List<api.GaDataDataTableRows> o) { 1679 checkUnnamed211(core.List<api.GaDataDataTableRows> o) {
1816 unittest.expect(o, unittest.hasLength(2)); 1680 unittest.expect(o, unittest.hasLength(2));
1817 checkGaDataDataTableRows(o[0]); 1681 checkGaDataDataTableRows(o[0]);
1818 checkGaDataDataTableRows(o[1]); 1682 checkGaDataDataTableRows(o[1]);
1819 } 1683 }
1820 1684
1821 core.int buildCounterGaDataDataTable = 0; 1685 core.int buildCounterGaDataDataTable = 0;
1822 buildGaDataDataTable() { 1686 buildGaDataDataTable() {
1823 var o = new api.GaDataDataTable(); 1687 var o = new api.GaDataDataTable();
1824 buildCounterGaDataDataTable++; 1688 buildCounterGaDataDataTable++;
1825 if (buildCounterGaDataDataTable < 3) { 1689 if (buildCounterGaDataDataTable < 3) {
1826 o.cols = buildUnnamed917(); 1690 o.cols = buildUnnamed209();
1827 o.rows = buildUnnamed919(); 1691 o.rows = buildUnnamed211();
1828 } 1692 }
1829 buildCounterGaDataDataTable--; 1693 buildCounterGaDataDataTable--;
1830 return o; 1694 return o;
1831 } 1695 }
1832 1696
1833 checkGaDataDataTable(api.GaDataDataTable o) { 1697 checkGaDataDataTable(api.GaDataDataTable o) {
1834 buildCounterGaDataDataTable++; 1698 buildCounterGaDataDataTable++;
1835 if (buildCounterGaDataDataTable < 3) { 1699 if (buildCounterGaDataDataTable < 3) {
1836 checkUnnamed917(o.cols); 1700 checkUnnamed209(o.cols);
1837 checkUnnamed919(o.rows); 1701 checkUnnamed211(o.rows);
1838 } 1702 }
1839 buildCounterGaDataDataTable--; 1703 buildCounterGaDataDataTable--;
1840 } 1704 }
1841 1705
1842 core.int buildCounterGaDataProfileInfo = 0; 1706 core.int buildCounterGaDataProfileInfo = 0;
1843 buildGaDataProfileInfo() { 1707 buildGaDataProfileInfo() {
1844 var o = new api.GaDataProfileInfo(); 1708 var o = new api.GaDataProfileInfo();
1845 buildCounterGaDataProfileInfo++; 1709 buildCounterGaDataProfileInfo++;
1846 if (buildCounterGaDataProfileInfo < 3) { 1710 if (buildCounterGaDataProfileInfo < 3) {
1847 o.accountId = "foo"; 1711 o.accountId = "foo";
(...skipping 13 matching lines...) Expand all
1861 unittest.expect(o.accountId, unittest.equals('foo')); 1725 unittest.expect(o.accountId, unittest.equals('foo'));
1862 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); 1726 unittest.expect(o.internalWebPropertyId, unittest.equals('foo'));
1863 unittest.expect(o.profileId, unittest.equals('foo')); 1727 unittest.expect(o.profileId, unittest.equals('foo'));
1864 unittest.expect(o.profileName, unittest.equals('foo')); 1728 unittest.expect(o.profileName, unittest.equals('foo'));
1865 unittest.expect(o.tableId, unittest.equals('foo')); 1729 unittest.expect(o.tableId, unittest.equals('foo'));
1866 unittest.expect(o.webPropertyId, unittest.equals('foo')); 1730 unittest.expect(o.webPropertyId, unittest.equals('foo'));
1867 } 1731 }
1868 buildCounterGaDataProfileInfo--; 1732 buildCounterGaDataProfileInfo--;
1869 } 1733 }
1870 1734
1871 buildUnnamed920() { 1735 buildUnnamed212() {
1872 var o = new core.List<core.String>(); 1736 var o = new core.List<core.String>();
1873 o.add("foo"); 1737 o.add("foo");
1874 o.add("foo"); 1738 o.add("foo");
1875 return o; 1739 return o;
1876 } 1740 }
1877 1741
1878 checkUnnamed920(core.List<core.String> o) { 1742 checkUnnamed212(core.List<core.String> o) {
1879 unittest.expect(o, unittest.hasLength(2)); 1743 unittest.expect(o, unittest.hasLength(2));
1880 unittest.expect(o[0], unittest.equals('foo')); 1744 unittest.expect(o[0], unittest.equals('foo'));
1881 unittest.expect(o[1], unittest.equals('foo')); 1745 unittest.expect(o[1], unittest.equals('foo'));
1882 } 1746 }
1883 1747
1884 buildUnnamed921() { 1748 buildUnnamed213() {
1885 var o = new core.List<core.String>(); 1749 var o = new core.List<core.String>();
1886 o.add("foo"); 1750 o.add("foo");
1887 o.add("foo"); 1751 o.add("foo");
1888 return o; 1752 return o;
1889 } 1753 }
1890 1754
1891 checkUnnamed921(core.List<core.String> o) { 1755 checkUnnamed213(core.List<core.String> o) {
1892 unittest.expect(o, unittest.hasLength(2)); 1756 unittest.expect(o, unittest.hasLength(2));
1893 unittest.expect(o[0], unittest.equals('foo')); 1757 unittest.expect(o[0], unittest.equals('foo'));
1894 unittest.expect(o[1], unittest.equals('foo')); 1758 unittest.expect(o[1], unittest.equals('foo'));
1895 } 1759 }
1896 1760
1897 core.int buildCounterGaDataQuery = 0; 1761 core.int buildCounterGaDataQuery = 0;
1898 buildGaDataQuery() { 1762 buildGaDataQuery() {
1899 var o = new api.GaDataQuery(); 1763 var o = new api.GaDataQuery();
1900 buildCounterGaDataQuery++; 1764 buildCounterGaDataQuery++;
1901 if (buildCounterGaDataQuery < 3) { 1765 if (buildCounterGaDataQuery < 3) {
1902 o.dimensions = "foo"; 1766 o.dimensions = "foo";
1903 o.end_date = "foo"; 1767 o.end_date = "foo";
1904 o.filters = "foo"; 1768 o.filters = "foo";
1905 o.ids = "foo"; 1769 o.ids = "foo";
1906 o.max_results = 42; 1770 o.max_results = 42;
1907 o.metrics = buildUnnamed920(); 1771 o.metrics = buildUnnamed212();
1908 o.samplingLevel = "foo"; 1772 o.samplingLevel = "foo";
1909 o.segment = "foo"; 1773 o.segment = "foo";
1910 o.sort = buildUnnamed921(); 1774 o.sort = buildUnnamed213();
1911 o.start_date = "foo"; 1775 o.start_date = "foo";
1912 o.start_index = 42; 1776 o.start_index = 42;
1913 } 1777 }
1914 buildCounterGaDataQuery--; 1778 buildCounterGaDataQuery--;
1915 return o; 1779 return o;
1916 } 1780 }
1917 1781
1918 checkGaDataQuery(api.GaDataQuery o) { 1782 checkGaDataQuery(api.GaDataQuery o) {
1919 buildCounterGaDataQuery++; 1783 buildCounterGaDataQuery++;
1920 if (buildCounterGaDataQuery < 3) { 1784 if (buildCounterGaDataQuery < 3) {
1921 unittest.expect(o.dimensions, unittest.equals('foo')); 1785 unittest.expect(o.dimensions, unittest.equals('foo'));
1922 unittest.expect(o.end_date, unittest.equals('foo')); 1786 unittest.expect(o.end_date, unittest.equals('foo'));
1923 unittest.expect(o.filters, unittest.equals('foo')); 1787 unittest.expect(o.filters, unittest.equals('foo'));
1924 unittest.expect(o.ids, unittest.equals('foo')); 1788 unittest.expect(o.ids, unittest.equals('foo'));
1925 unittest.expect(o.max_results, unittest.equals(42)); 1789 unittest.expect(o.max_results, unittest.equals(42));
1926 checkUnnamed920(o.metrics); 1790 checkUnnamed212(o.metrics);
1927 unittest.expect(o.samplingLevel, unittest.equals('foo')); 1791 unittest.expect(o.samplingLevel, unittest.equals('foo'));
1928 unittest.expect(o.segment, unittest.equals('foo')); 1792 unittest.expect(o.segment, unittest.equals('foo'));
1929 checkUnnamed921(o.sort); 1793 checkUnnamed213(o.sort);
1930 unittest.expect(o.start_date, unittest.equals('foo')); 1794 unittest.expect(o.start_date, unittest.equals('foo'));
1931 unittest.expect(o.start_index, unittest.equals(42)); 1795 unittest.expect(o.start_index, unittest.equals(42));
1932 } 1796 }
1933 buildCounterGaDataQuery--; 1797 buildCounterGaDataQuery--;
1934 } 1798 }
1935 1799
1936 buildUnnamed922() { 1800 buildUnnamed214() {
1937 var o = new core.List<core.String>(); 1801 var o = new core.List<core.String>();
1938 o.add("foo"); 1802 o.add("foo");
1939 o.add("foo"); 1803 o.add("foo");
1940 return o; 1804 return o;
1941 } 1805 }
1942 1806
1943 checkUnnamed922(core.List<core.String> o) { 1807 checkUnnamed214(core.List<core.String> o) {
1944 unittest.expect(o, unittest.hasLength(2)); 1808 unittest.expect(o, unittest.hasLength(2));
1945 unittest.expect(o[0], unittest.equals('foo')); 1809 unittest.expect(o[0], unittest.equals('foo'));
1946 unittest.expect(o[1], unittest.equals('foo')); 1810 unittest.expect(o[1], unittest.equals('foo'));
1947 } 1811 }
1948 1812
1949 buildUnnamed923() { 1813 buildUnnamed215() {
1950 var o = new core.List<core.List<core.String>>(); 1814 var o = new core.List<core.List<core.String>>();
1951 o.add(buildUnnamed922()); 1815 o.add(buildUnnamed214());
1952 o.add(buildUnnamed922()); 1816 o.add(buildUnnamed214());
1953 return o; 1817 return o;
1954 } 1818 }
1955 1819
1956 checkUnnamed923(core.List<core.List<core.String>> o) { 1820 checkUnnamed215(core.List<core.List<core.String>> o) {
1957 unittest.expect(o, unittest.hasLength(2)); 1821 unittest.expect(o, unittest.hasLength(2));
1958 checkUnnamed922(o[0]); 1822 checkUnnamed214(o[0]);
1959 checkUnnamed922(o[1]); 1823 checkUnnamed214(o[1]);
1960 } 1824 }
1961 1825
1962 buildUnnamed924() { 1826 buildUnnamed216() {
1963 var o = new core.Map<core.String, core.String>(); 1827 var o = new core.Map<core.String, core.String>();
1964 o["x"] = "foo"; 1828 o["x"] = "foo";
1965 o["y"] = "foo"; 1829 o["y"] = "foo";
1966 return o; 1830 return o;
1967 } 1831 }
1968 1832
1969 checkUnnamed924(core.Map<core.String, core.String> o) { 1833 checkUnnamed216(core.Map<core.String, core.String> o) {
1970 unittest.expect(o, unittest.hasLength(2)); 1834 unittest.expect(o, unittest.hasLength(2));
1971 unittest.expect(o["x"], unittest.equals('foo')); 1835 unittest.expect(o["x"], unittest.equals('foo'));
1972 unittest.expect(o["y"], unittest.equals('foo')); 1836 unittest.expect(o["y"], unittest.equals('foo'));
1973 } 1837 }
1974 1838
1975 core.int buildCounterGaData = 0; 1839 core.int buildCounterGaData = 0;
1976 buildGaData() { 1840 buildGaData() {
1977 var o = new api.GaData(); 1841 var o = new api.GaData();
1978 buildCounterGaData++; 1842 buildCounterGaData++;
1979 if (buildCounterGaData < 3) { 1843 if (buildCounterGaData < 3) {
1980 o.columnHeaders = buildUnnamed916(); 1844 o.columnHeaders = buildUnnamed208();
1981 o.containsSampledData = true; 1845 o.containsSampledData = true;
1982 o.dataTable = buildGaDataDataTable(); 1846 o.dataTable = buildGaDataDataTable();
1983 o.id = "foo"; 1847 o.id = "foo";
1984 o.itemsPerPage = 42; 1848 o.itemsPerPage = 42;
1985 o.kind = "foo"; 1849 o.kind = "foo";
1986 o.nextLink = "foo"; 1850 o.nextLink = "foo";
1987 o.previousLink = "foo"; 1851 o.previousLink = "foo";
1988 o.profileInfo = buildGaDataProfileInfo(); 1852 o.profileInfo = buildGaDataProfileInfo();
1989 o.query = buildGaDataQuery(); 1853 o.query = buildGaDataQuery();
1990 o.rows = buildUnnamed923(); 1854 o.rows = buildUnnamed215();
1991 o.sampleSize = "foo"; 1855 o.sampleSize = "foo";
1992 o.sampleSpace = "foo"; 1856 o.sampleSpace = "foo";
1993 o.selfLink = "foo"; 1857 o.selfLink = "foo";
1994 o.totalResults = 42; 1858 o.totalResults = 42;
1995 o.totalsForAllResults = buildUnnamed924(); 1859 o.totalsForAllResults = buildUnnamed216();
1996 } 1860 }
1997 buildCounterGaData--; 1861 buildCounterGaData--;
1998 return o; 1862 return o;
1999 } 1863 }
2000 1864
2001 checkGaData(api.GaData o) { 1865 checkGaData(api.GaData o) {
2002 buildCounterGaData++; 1866 buildCounterGaData++;
2003 if (buildCounterGaData < 3) { 1867 if (buildCounterGaData < 3) {
2004 checkUnnamed916(o.columnHeaders); 1868 checkUnnamed208(o.columnHeaders);
2005 unittest.expect(o.containsSampledData, unittest.isTrue); 1869 unittest.expect(o.containsSampledData, unittest.isTrue);
2006 checkGaDataDataTable(o.dataTable); 1870 checkGaDataDataTable(o.dataTable);
2007 unittest.expect(o.id, unittest.equals('foo')); 1871 unittest.expect(o.id, unittest.equals('foo'));
2008 unittest.expect(o.itemsPerPage, unittest.equals(42)); 1872 unittest.expect(o.itemsPerPage, unittest.equals(42));
2009 unittest.expect(o.kind, unittest.equals('foo')); 1873 unittest.expect(o.kind, unittest.equals('foo'));
2010 unittest.expect(o.nextLink, unittest.equals('foo')); 1874 unittest.expect(o.nextLink, unittest.equals('foo'));
2011 unittest.expect(o.previousLink, unittest.equals('foo')); 1875 unittest.expect(o.previousLink, unittest.equals('foo'));
2012 checkGaDataProfileInfo(o.profileInfo); 1876 checkGaDataProfileInfo(o.profileInfo);
2013 checkGaDataQuery(o.query); 1877 checkGaDataQuery(o.query);
2014 checkUnnamed923(o.rows); 1878 checkUnnamed215(o.rows);
2015 unittest.expect(o.sampleSize, unittest.equals('foo')); 1879 unittest.expect(o.sampleSize, unittest.equals('foo'));
2016 unittest.expect(o.sampleSpace, unittest.equals('foo')); 1880 unittest.expect(o.sampleSpace, unittest.equals('foo'));
2017 unittest.expect(o.selfLink, unittest.equals('foo')); 1881 unittest.expect(o.selfLink, unittest.equals('foo'));
2018 unittest.expect(o.totalResults, unittest.equals(42)); 1882 unittest.expect(o.totalResults, unittest.equals(42));
2019 checkUnnamed924(o.totalsForAllResults); 1883 checkUnnamed216(o.totalsForAllResults);
2020 } 1884 }
2021 buildCounterGaData--; 1885 buildCounterGaData--;
2022 } 1886 }
2023 1887
2024 core.int buildCounterGoalEventDetailsEventConditions = 0; 1888 core.int buildCounterGoalEventDetailsEventConditions = 0;
2025 buildGoalEventDetailsEventConditions() { 1889 buildGoalEventDetailsEventConditions() {
2026 var o = new api.GoalEventDetailsEventConditions(); 1890 var o = new api.GoalEventDetailsEventConditions();
2027 buildCounterGoalEventDetailsEventConditions++; 1891 buildCounterGoalEventDetailsEventConditions++;
2028 if (buildCounterGoalEventDetailsEventConditions < 3) { 1892 if (buildCounterGoalEventDetailsEventConditions < 3) {
2029 o.comparisonType = "foo"; 1893 o.comparisonType = "foo";
(...skipping 11 matching lines...) Expand all
2041 if (buildCounterGoalEventDetailsEventConditions < 3) { 1905 if (buildCounterGoalEventDetailsEventConditions < 3) {
2042 unittest.expect(o.comparisonType, unittest.equals('foo')); 1906 unittest.expect(o.comparisonType, unittest.equals('foo'));
2043 unittest.expect(o.comparisonValue, unittest.equals('foo')); 1907 unittest.expect(o.comparisonValue, unittest.equals('foo'));
2044 unittest.expect(o.expression, unittest.equals('foo')); 1908 unittest.expect(o.expression, unittest.equals('foo'));
2045 unittest.expect(o.matchType, unittest.equals('foo')); 1909 unittest.expect(o.matchType, unittest.equals('foo'));
2046 unittest.expect(o.type, unittest.equals('foo')); 1910 unittest.expect(o.type, unittest.equals('foo'));
2047 } 1911 }
2048 buildCounterGoalEventDetailsEventConditions--; 1912 buildCounterGoalEventDetailsEventConditions--;
2049 } 1913 }
2050 1914
2051 buildUnnamed925() { 1915 buildUnnamed217() {
2052 var o = new core.List<api.GoalEventDetailsEventConditions>(); 1916 var o = new core.List<api.GoalEventDetailsEventConditions>();
2053 o.add(buildGoalEventDetailsEventConditions()); 1917 o.add(buildGoalEventDetailsEventConditions());
2054 o.add(buildGoalEventDetailsEventConditions()); 1918 o.add(buildGoalEventDetailsEventConditions());
2055 return o; 1919 return o;
2056 } 1920 }
2057 1921
2058 checkUnnamed925(core.List<api.GoalEventDetailsEventConditions> o) { 1922 checkUnnamed217(core.List<api.GoalEventDetailsEventConditions> o) {
2059 unittest.expect(o, unittest.hasLength(2)); 1923 unittest.expect(o, unittest.hasLength(2));
2060 checkGoalEventDetailsEventConditions(o[0]); 1924 checkGoalEventDetailsEventConditions(o[0]);
2061 checkGoalEventDetailsEventConditions(o[1]); 1925 checkGoalEventDetailsEventConditions(o[1]);
2062 } 1926 }
2063 1927
2064 core.int buildCounterGoalEventDetails = 0; 1928 core.int buildCounterGoalEventDetails = 0;
2065 buildGoalEventDetails() { 1929 buildGoalEventDetails() {
2066 var o = new api.GoalEventDetails(); 1930 var o = new api.GoalEventDetails();
2067 buildCounterGoalEventDetails++; 1931 buildCounterGoalEventDetails++;
2068 if (buildCounterGoalEventDetails < 3) { 1932 if (buildCounterGoalEventDetails < 3) {
2069 o.eventConditions = buildUnnamed925(); 1933 o.eventConditions = buildUnnamed217();
2070 o.useEventValue = true; 1934 o.useEventValue = true;
2071 } 1935 }
2072 buildCounterGoalEventDetails--; 1936 buildCounterGoalEventDetails--;
2073 return o; 1937 return o;
2074 } 1938 }
2075 1939
2076 checkGoalEventDetails(api.GoalEventDetails o) { 1940 checkGoalEventDetails(api.GoalEventDetails o) {
2077 buildCounterGoalEventDetails++; 1941 buildCounterGoalEventDetails++;
2078 if (buildCounterGoalEventDetails < 3) { 1942 if (buildCounterGoalEventDetails < 3) {
2079 checkUnnamed925(o.eventConditions); 1943 checkUnnamed217(o.eventConditions);
2080 unittest.expect(o.useEventValue, unittest.isTrue); 1944 unittest.expect(o.useEventValue, unittest.isTrue);
2081 } 1945 }
2082 buildCounterGoalEventDetails--; 1946 buildCounterGoalEventDetails--;
2083 } 1947 }
2084 1948
2085 core.int buildCounterGoalParentLink = 0; 1949 core.int buildCounterGoalParentLink = 0;
2086 buildGoalParentLink() { 1950 buildGoalParentLink() {
2087 var o = new api.GoalParentLink(); 1951 var o = new api.GoalParentLink();
2088 buildCounterGoalParentLink++; 1952 buildCounterGoalParentLink++;
2089 if (buildCounterGoalParentLink < 3) { 1953 if (buildCounterGoalParentLink < 3) {
(...skipping 29 matching lines...) Expand all
2119 checkGoalUrlDestinationDetailsSteps(api.GoalUrlDestinationDetailsSteps o) { 1983 checkGoalUrlDestinationDetailsSteps(api.GoalUrlDestinationDetailsSteps o) {
2120 buildCounterGoalUrlDestinationDetailsSteps++; 1984 buildCounterGoalUrlDestinationDetailsSteps++;
2121 if (buildCounterGoalUrlDestinationDetailsSteps < 3) { 1985 if (buildCounterGoalUrlDestinationDetailsSteps < 3) {
2122 unittest.expect(o.name, unittest.equals('foo')); 1986 unittest.expect(o.name, unittest.equals('foo'));
2123 unittest.expect(o.number, unittest.equals(42)); 1987 unittest.expect(o.number, unittest.equals(42));
2124 unittest.expect(o.url, unittest.equals('foo')); 1988 unittest.expect(o.url, unittest.equals('foo'));
2125 } 1989 }
2126 buildCounterGoalUrlDestinationDetailsSteps--; 1990 buildCounterGoalUrlDestinationDetailsSteps--;
2127 } 1991 }
2128 1992
2129 buildUnnamed926() { 1993 buildUnnamed218() {
2130 var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); 1994 var o = new core.List<api.GoalUrlDestinationDetailsSteps>();
2131 o.add(buildGoalUrlDestinationDetailsSteps()); 1995 o.add(buildGoalUrlDestinationDetailsSteps());
2132 o.add(buildGoalUrlDestinationDetailsSteps()); 1996 o.add(buildGoalUrlDestinationDetailsSteps());
2133 return o; 1997 return o;
2134 } 1998 }
2135 1999
2136 checkUnnamed926(core.List<api.GoalUrlDestinationDetailsSteps> o) { 2000 checkUnnamed218(core.List<api.GoalUrlDestinationDetailsSteps> o) {
2137 unittest.expect(o, unittest.hasLength(2)); 2001 unittest.expect(o, unittest.hasLength(2));
2138 checkGoalUrlDestinationDetailsSteps(o[0]); 2002 checkGoalUrlDestinationDetailsSteps(o[0]);
2139 checkGoalUrlDestinationDetailsSteps(o[1]); 2003 checkGoalUrlDestinationDetailsSteps(o[1]);
2140 } 2004 }
2141 2005
2142 core.int buildCounterGoalUrlDestinationDetails = 0; 2006 core.int buildCounterGoalUrlDestinationDetails = 0;
2143 buildGoalUrlDestinationDetails() { 2007 buildGoalUrlDestinationDetails() {
2144 var o = new api.GoalUrlDestinationDetails(); 2008 var o = new api.GoalUrlDestinationDetails();
2145 buildCounterGoalUrlDestinationDetails++; 2009 buildCounterGoalUrlDestinationDetails++;
2146 if (buildCounterGoalUrlDestinationDetails < 3) { 2010 if (buildCounterGoalUrlDestinationDetails < 3) {
2147 o.caseSensitive = true; 2011 o.caseSensitive = true;
2148 o.firstStepRequired = true; 2012 o.firstStepRequired = true;
2149 o.matchType = "foo"; 2013 o.matchType = "foo";
2150 o.steps = buildUnnamed926(); 2014 o.steps = buildUnnamed218();
2151 o.url = "foo"; 2015 o.url = "foo";
2152 } 2016 }
2153 buildCounterGoalUrlDestinationDetails--; 2017 buildCounterGoalUrlDestinationDetails--;
2154 return o; 2018 return o;
2155 } 2019 }
2156 2020
2157 checkGoalUrlDestinationDetails(api.GoalUrlDestinationDetails o) { 2021 checkGoalUrlDestinationDetails(api.GoalUrlDestinationDetails o) {
2158 buildCounterGoalUrlDestinationDetails++; 2022 buildCounterGoalUrlDestinationDetails++;
2159 if (buildCounterGoalUrlDestinationDetails < 3) { 2023 if (buildCounterGoalUrlDestinationDetails < 3) {
2160 unittest.expect(o.caseSensitive, unittest.isTrue); 2024 unittest.expect(o.caseSensitive, unittest.isTrue);
2161 unittest.expect(o.firstStepRequired, unittest.isTrue); 2025 unittest.expect(o.firstStepRequired, unittest.isTrue);
2162 unittest.expect(o.matchType, unittest.equals('foo')); 2026 unittest.expect(o.matchType, unittest.equals('foo'));
2163 checkUnnamed926(o.steps); 2027 checkUnnamed218(o.steps);
2164 unittest.expect(o.url, unittest.equals('foo')); 2028 unittest.expect(o.url, unittest.equals('foo'));
2165 } 2029 }
2166 buildCounterGoalUrlDestinationDetails--; 2030 buildCounterGoalUrlDestinationDetails--;
2167 } 2031 }
2168 2032
2169 core.int buildCounterGoalVisitNumPagesDetails = 0; 2033 core.int buildCounterGoalVisitNumPagesDetails = 0;
2170 buildGoalVisitNumPagesDetails() { 2034 buildGoalVisitNumPagesDetails() {
2171 var o = new api.GoalVisitNumPagesDetails(); 2035 var o = new api.GoalVisitNumPagesDetails();
2172 buildCounterGoalVisitNumPagesDetails++; 2036 buildCounterGoalVisitNumPagesDetails++;
2173 if (buildCounterGoalVisitNumPagesDetails < 3) { 2037 if (buildCounterGoalVisitNumPagesDetails < 3) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
2254 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 2118 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
2255 checkGoalUrlDestinationDetails(o.urlDestinationDetails); 2119 checkGoalUrlDestinationDetails(o.urlDestinationDetails);
2256 unittest.expect(o.value, unittest.equals(42.0)); 2120 unittest.expect(o.value, unittest.equals(42.0));
2257 checkGoalVisitNumPagesDetails(o.visitNumPagesDetails); 2121 checkGoalVisitNumPagesDetails(o.visitNumPagesDetails);
2258 checkGoalVisitTimeOnSiteDetails(o.visitTimeOnSiteDetails); 2122 checkGoalVisitTimeOnSiteDetails(o.visitTimeOnSiteDetails);
2259 unittest.expect(o.webPropertyId, unittest.equals('foo')); 2123 unittest.expect(o.webPropertyId, unittest.equals('foo'));
2260 } 2124 }
2261 buildCounterGoal--; 2125 buildCounterGoal--;
2262 } 2126 }
2263 2127
2264 buildUnnamed927() { 2128 buildUnnamed219() {
2265 var o = new core.List<api.Goal>(); 2129 var o = new core.List<api.Goal>();
2266 o.add(buildGoal()); 2130 o.add(buildGoal());
2267 o.add(buildGoal()); 2131 o.add(buildGoal());
2268 return o; 2132 return o;
2269 } 2133 }
2270 2134
2271 checkUnnamed927(core.List<api.Goal> o) { 2135 checkUnnamed219(core.List<api.Goal> o) {
2272 unittest.expect(o, unittest.hasLength(2)); 2136 unittest.expect(o, unittest.hasLength(2));
2273 checkGoal(o[0]); 2137 checkGoal(o[0]);
2274 checkGoal(o[1]); 2138 checkGoal(o[1]);
2275 } 2139 }
2276 2140
2277 core.int buildCounterGoals = 0; 2141 core.int buildCounterGoals = 0;
2278 buildGoals() { 2142 buildGoals() {
2279 var o = new api.Goals(); 2143 var o = new api.Goals();
2280 buildCounterGoals++; 2144 buildCounterGoals++;
2281 if (buildCounterGoals < 3) { 2145 if (buildCounterGoals < 3) {
2282 o.items = buildUnnamed927(); 2146 o.items = buildUnnamed219();
2283 o.itemsPerPage = 42; 2147 o.itemsPerPage = 42;
2284 o.kind = "foo"; 2148 o.kind = "foo";
2285 o.nextLink = "foo"; 2149 o.nextLink = "foo";
2286 o.previousLink = "foo"; 2150 o.previousLink = "foo";
2287 o.startIndex = 42; 2151 o.startIndex = 42;
2288 o.totalResults = 42; 2152 o.totalResults = 42;
2289 o.username = "foo"; 2153 o.username = "foo";
2290 } 2154 }
2291 buildCounterGoals--; 2155 buildCounterGoals--;
2292 return o; 2156 return o;
2293 } 2157 }
2294 2158
2295 checkGoals(api.Goals o) { 2159 checkGoals(api.Goals o) {
2296 buildCounterGoals++; 2160 buildCounterGoals++;
2297 if (buildCounterGoals < 3) { 2161 if (buildCounterGoals < 3) {
2298 checkUnnamed927(o.items); 2162 checkUnnamed219(o.items);
2299 unittest.expect(o.itemsPerPage, unittest.equals(42)); 2163 unittest.expect(o.itemsPerPage, unittest.equals(42));
2300 unittest.expect(o.kind, unittest.equals('foo')); 2164 unittest.expect(o.kind, unittest.equals('foo'));
2301 unittest.expect(o.nextLink, unittest.equals('foo')); 2165 unittest.expect(o.nextLink, unittest.equals('foo'));
2302 unittest.expect(o.previousLink, unittest.equals('foo')); 2166 unittest.expect(o.previousLink, unittest.equals('foo'));
2303 unittest.expect(o.startIndex, unittest.equals(42)); 2167 unittest.expect(o.startIndex, unittest.equals(42));
2304 unittest.expect(o.totalResults, unittest.equals(42)); 2168 unittest.expect(o.totalResults, unittest.equals(42));
2305 unittest.expect(o.username, unittest.equals('foo')); 2169 unittest.expect(o.username, unittest.equals('foo'));
2306 } 2170 }
2307 buildCounterGoals--; 2171 buildCounterGoals--;
2308 } 2172 }
(...skipping 14 matching lines...) Expand all
2323 checkMcfDataColumnHeaders(api.McfDataColumnHeaders o) { 2187 checkMcfDataColumnHeaders(api.McfDataColumnHeaders o) {
2324 buildCounterMcfDataColumnHeaders++; 2188 buildCounterMcfDataColumnHeaders++;
2325 if (buildCounterMcfDataColumnHeaders < 3) { 2189 if (buildCounterMcfDataColumnHeaders < 3) {
2326 unittest.expect(o.columnType, unittest.equals('foo')); 2190 unittest.expect(o.columnType, unittest.equals('foo'));
2327 unittest.expect(o.dataType, unittest.equals('foo')); 2191 unittest.expect(o.dataType, unittest.equals('foo'));
2328 unittest.expect(o.name, unittest.equals('foo')); 2192 unittest.expect(o.name, unittest.equals('foo'));
2329 } 2193 }
2330 buildCounterMcfDataColumnHeaders--; 2194 buildCounterMcfDataColumnHeaders--;
2331 } 2195 }
2332 2196
2333 buildUnnamed928() { 2197 buildUnnamed220() {
2334 var o = new core.List<api.McfDataColumnHeaders>(); 2198 var o = new core.List<api.McfDataColumnHeaders>();
2335 o.add(buildMcfDataColumnHeaders()); 2199 o.add(buildMcfDataColumnHeaders());
2336 o.add(buildMcfDataColumnHeaders()); 2200 o.add(buildMcfDataColumnHeaders());
2337 return o; 2201 return o;
2338 } 2202 }
2339 2203
2340 checkUnnamed928(core.List<api.McfDataColumnHeaders> o) { 2204 checkUnnamed220(core.List<api.McfDataColumnHeaders> o) {
2341 unittest.expect(o, unittest.hasLength(2)); 2205 unittest.expect(o, unittest.hasLength(2));
2342 checkMcfDataColumnHeaders(o[0]); 2206 checkMcfDataColumnHeaders(o[0]);
2343 checkMcfDataColumnHeaders(o[1]); 2207 checkMcfDataColumnHeaders(o[1]);
2344 } 2208 }
2345 2209
2346 core.int buildCounterMcfDataProfileInfo = 0; 2210 core.int buildCounterMcfDataProfileInfo = 0;
2347 buildMcfDataProfileInfo() { 2211 buildMcfDataProfileInfo() {
2348 var o = new api.McfDataProfileInfo(); 2212 var o = new api.McfDataProfileInfo();
2349 buildCounterMcfDataProfileInfo++; 2213 buildCounterMcfDataProfileInfo++;
2350 if (buildCounterMcfDataProfileInfo < 3) { 2214 if (buildCounterMcfDataProfileInfo < 3) {
(...skipping 14 matching lines...) Expand all
2365 unittest.expect(o.accountId, unittest.equals('foo')); 2229 unittest.expect(o.accountId, unittest.equals('foo'));
2366 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); 2230 unittest.expect(o.internalWebPropertyId, unittest.equals('foo'));
2367 unittest.expect(o.profileId, unittest.equals('foo')); 2231 unittest.expect(o.profileId, unittest.equals('foo'));
2368 unittest.expect(o.profileName, unittest.equals('foo')); 2232 unittest.expect(o.profileName, unittest.equals('foo'));
2369 unittest.expect(o.tableId, unittest.equals('foo')); 2233 unittest.expect(o.tableId, unittest.equals('foo'));
2370 unittest.expect(o.webPropertyId, unittest.equals('foo')); 2234 unittest.expect(o.webPropertyId, unittest.equals('foo'));
2371 } 2235 }
2372 buildCounterMcfDataProfileInfo--; 2236 buildCounterMcfDataProfileInfo--;
2373 } 2237 }
2374 2238
2375 buildUnnamed929() { 2239 buildUnnamed221() {
2376 var o = new core.List<core.String>(); 2240 var o = new core.List<core.String>();
2377 o.add("foo"); 2241 o.add("foo");
2378 o.add("foo"); 2242 o.add("foo");
2379 return o; 2243 return o;
2380 } 2244 }
2381 2245
2382 checkUnnamed929(core.List<core.String> o) { 2246 checkUnnamed221(core.List<core.String> o) {
2383 unittest.expect(o, unittest.hasLength(2)); 2247 unittest.expect(o, unittest.hasLength(2));
2384 unittest.expect(o[0], unittest.equals('foo')); 2248 unittest.expect(o[0], unittest.equals('foo'));
2385 unittest.expect(o[1], unittest.equals('foo')); 2249 unittest.expect(o[1], unittest.equals('foo'));
2386 } 2250 }
2387 2251
2388 buildUnnamed930() { 2252 buildUnnamed222() {
2389 var o = new core.List<core.String>(); 2253 var o = new core.List<core.String>();
2390 o.add("foo"); 2254 o.add("foo");
2391 o.add("foo"); 2255 o.add("foo");
2392 return o; 2256 return o;
2393 } 2257 }
2394 2258
2395 checkUnnamed930(core.List<core.String> o) { 2259 checkUnnamed222(core.List<core.String> o) {
2396 unittest.expect(o, unittest.hasLength(2)); 2260 unittest.expect(o, unittest.hasLength(2));
2397 unittest.expect(o[0], unittest.equals('foo')); 2261 unittest.expect(o[0], unittest.equals('foo'));
2398 unittest.expect(o[1], unittest.equals('foo')); 2262 unittest.expect(o[1], unittest.equals('foo'));
2399 } 2263 }
2400 2264
2401 core.int buildCounterMcfDataQuery = 0; 2265 core.int buildCounterMcfDataQuery = 0;
2402 buildMcfDataQuery() { 2266 buildMcfDataQuery() {
2403 var o = new api.McfDataQuery(); 2267 var o = new api.McfDataQuery();
2404 buildCounterMcfDataQuery++; 2268 buildCounterMcfDataQuery++;
2405 if (buildCounterMcfDataQuery < 3) { 2269 if (buildCounterMcfDataQuery < 3) {
2406 o.dimensions = "foo"; 2270 o.dimensions = "foo";
2407 o.end_date = "foo"; 2271 o.end_date = "foo";
2408 o.filters = "foo"; 2272 o.filters = "foo";
2409 o.ids = "foo"; 2273 o.ids = "foo";
2410 o.max_results = 42; 2274 o.max_results = 42;
2411 o.metrics = buildUnnamed929(); 2275 o.metrics = buildUnnamed221();
2412 o.samplingLevel = "foo"; 2276 o.samplingLevel = "foo";
2413 o.segment = "foo"; 2277 o.segment = "foo";
2414 o.sort = buildUnnamed930(); 2278 o.sort = buildUnnamed222();
2415 o.start_date = "foo"; 2279 o.start_date = "foo";
2416 o.start_index = 42; 2280 o.start_index = 42;
2417 } 2281 }
2418 buildCounterMcfDataQuery--; 2282 buildCounterMcfDataQuery--;
2419 return o; 2283 return o;
2420 } 2284 }
2421 2285
2422 checkMcfDataQuery(api.McfDataQuery o) { 2286 checkMcfDataQuery(api.McfDataQuery o) {
2423 buildCounterMcfDataQuery++; 2287 buildCounterMcfDataQuery++;
2424 if (buildCounterMcfDataQuery < 3) { 2288 if (buildCounterMcfDataQuery < 3) {
2425 unittest.expect(o.dimensions, unittest.equals('foo')); 2289 unittest.expect(o.dimensions, unittest.equals('foo'));
2426 unittest.expect(o.end_date, unittest.equals('foo')); 2290 unittest.expect(o.end_date, unittest.equals('foo'));
2427 unittest.expect(o.filters, unittest.equals('foo')); 2291 unittest.expect(o.filters, unittest.equals('foo'));
2428 unittest.expect(o.ids, unittest.equals('foo')); 2292 unittest.expect(o.ids, unittest.equals('foo'));
2429 unittest.expect(o.max_results, unittest.equals(42)); 2293 unittest.expect(o.max_results, unittest.equals(42));
2430 checkUnnamed929(o.metrics); 2294 checkUnnamed221(o.metrics);
2431 unittest.expect(o.samplingLevel, unittest.equals('foo')); 2295 unittest.expect(o.samplingLevel, unittest.equals('foo'));
2432 unittest.expect(o.segment, unittest.equals('foo')); 2296 unittest.expect(o.segment, unittest.equals('foo'));
2433 checkUnnamed930(o.sort); 2297 checkUnnamed222(o.sort);
2434 unittest.expect(o.start_date, unittest.equals('foo')); 2298 unittest.expect(o.start_date, unittest.equals('foo'));
2435 unittest.expect(o.start_index, unittest.equals(42)); 2299 unittest.expect(o.start_index, unittest.equals(42));
2436 } 2300 }
2437 buildCounterMcfDataQuery--; 2301 buildCounterMcfDataQuery--;
2438 } 2302 }
2439 2303
2440 core.int buildCounterMcfDataRowsConversionPathValue = 0; 2304 core.int buildCounterMcfDataRowsConversionPathValue = 0;
2441 buildMcfDataRowsConversionPathValue() { 2305 buildMcfDataRowsConversionPathValue() {
2442 var o = new api.McfDataRowsConversionPathValue(); 2306 var o = new api.McfDataRowsConversionPathValue();
2443 buildCounterMcfDataRowsConversionPathValue++; 2307 buildCounterMcfDataRowsConversionPathValue++;
2444 if (buildCounterMcfDataRowsConversionPathValue < 3) { 2308 if (buildCounterMcfDataRowsConversionPathValue < 3) {
2445 o.interactionType = "foo"; 2309 o.interactionType = "foo";
2446 o.nodeValue = "foo"; 2310 o.nodeValue = "foo";
2447 } 2311 }
2448 buildCounterMcfDataRowsConversionPathValue--; 2312 buildCounterMcfDataRowsConversionPathValue--;
2449 return o; 2313 return o;
2450 } 2314 }
2451 2315
2452 checkMcfDataRowsConversionPathValue(api.McfDataRowsConversionPathValue o) { 2316 checkMcfDataRowsConversionPathValue(api.McfDataRowsConversionPathValue o) {
2453 buildCounterMcfDataRowsConversionPathValue++; 2317 buildCounterMcfDataRowsConversionPathValue++;
2454 if (buildCounterMcfDataRowsConversionPathValue < 3) { 2318 if (buildCounterMcfDataRowsConversionPathValue < 3) {
2455 unittest.expect(o.interactionType, unittest.equals('foo')); 2319 unittest.expect(o.interactionType, unittest.equals('foo'));
2456 unittest.expect(o.nodeValue, unittest.equals('foo')); 2320 unittest.expect(o.nodeValue, unittest.equals('foo'));
2457 } 2321 }
2458 buildCounterMcfDataRowsConversionPathValue--; 2322 buildCounterMcfDataRowsConversionPathValue--;
2459 } 2323 }
2460 2324
2461 buildUnnamed931() { 2325 buildUnnamed223() {
2462 var o = new core.List<api.McfDataRowsConversionPathValue>(); 2326 var o = new core.List<api.McfDataRowsConversionPathValue>();
2463 o.add(buildMcfDataRowsConversionPathValue()); 2327 o.add(buildMcfDataRowsConversionPathValue());
2464 o.add(buildMcfDataRowsConversionPathValue()); 2328 o.add(buildMcfDataRowsConversionPathValue());
2465 return o; 2329 return o;
2466 } 2330 }
2467 2331
2468 checkUnnamed931(core.List<api.McfDataRowsConversionPathValue> o) { 2332 checkUnnamed223(core.List<api.McfDataRowsConversionPathValue> o) {
2469 unittest.expect(o, unittest.hasLength(2)); 2333 unittest.expect(o, unittest.hasLength(2));
2470 checkMcfDataRowsConversionPathValue(o[0]); 2334 checkMcfDataRowsConversionPathValue(o[0]);
2471 checkMcfDataRowsConversionPathValue(o[1]); 2335 checkMcfDataRowsConversionPathValue(o[1]);
2472 } 2336 }
2473 2337
2474 core.int buildCounterMcfDataRows = 0; 2338 core.int buildCounterMcfDataRows = 0;
2475 buildMcfDataRows() { 2339 buildMcfDataRows() {
2476 var o = new api.McfDataRows(); 2340 var o = new api.McfDataRows();
2477 buildCounterMcfDataRows++; 2341 buildCounterMcfDataRows++;
2478 if (buildCounterMcfDataRows < 3) { 2342 if (buildCounterMcfDataRows < 3) {
2479 o.conversionPathValue = buildUnnamed931(); 2343 o.conversionPathValue = buildUnnamed223();
2480 o.primitiveValue = "foo"; 2344 o.primitiveValue = "foo";
2481 } 2345 }
2482 buildCounterMcfDataRows--; 2346 buildCounterMcfDataRows--;
2483 return o; 2347 return o;
2484 } 2348 }
2485 2349
2486 checkMcfDataRows(api.McfDataRows o) { 2350 checkMcfDataRows(api.McfDataRows o) {
2487 buildCounterMcfDataRows++; 2351 buildCounterMcfDataRows++;
2488 if (buildCounterMcfDataRows < 3) { 2352 if (buildCounterMcfDataRows < 3) {
2489 checkUnnamed931(o.conversionPathValue); 2353 checkUnnamed223(o.conversionPathValue);
2490 unittest.expect(o.primitiveValue, unittest.equals('foo')); 2354 unittest.expect(o.primitiveValue, unittest.equals('foo'));
2491 } 2355 }
2492 buildCounterMcfDataRows--; 2356 buildCounterMcfDataRows--;
2493 } 2357 }
2494 2358
2495 buildUnnamed932() { 2359 buildUnnamed224() {
2496 var o = new core.List<api.McfDataRows>(); 2360 var o = new core.List<api.McfDataRows>();
2497 o.add(buildMcfDataRows()); 2361 o.add(buildMcfDataRows());
2498 o.add(buildMcfDataRows()); 2362 o.add(buildMcfDataRows());
2499 return o; 2363 return o;
2500 } 2364 }
2501 2365
2502 checkUnnamed932(core.List<api.McfDataRows> o) { 2366 checkUnnamed224(core.List<api.McfDataRows> o) {
2503 unittest.expect(o, unittest.hasLength(2)); 2367 unittest.expect(o, unittest.hasLength(2));
2504 checkMcfDataRows(o[0]); 2368 checkMcfDataRows(o[0]);
2505 checkMcfDataRows(o[1]); 2369 checkMcfDataRows(o[1]);
2506 } 2370 }
2507 2371
2508 buildUnnamed933() { 2372 buildUnnamed225() {
2509 var o = new core.List<core.List<api.McfDataRows>>(); 2373 var o = new core.List<core.List<api.McfDataRows>>();
2510 o.add(buildUnnamed932()); 2374 o.add(buildUnnamed224());
2511 o.add(buildUnnamed932()); 2375 o.add(buildUnnamed224());
2512 return o; 2376 return o;
2513 } 2377 }
2514 2378
2515 checkUnnamed933(core.List<core.List<api.McfDataRows>> o) { 2379 checkUnnamed225(core.List<core.List<api.McfDataRows>> o) {
2516 unittest.expect(o, unittest.hasLength(2)); 2380 unittest.expect(o, unittest.hasLength(2));
2517 checkUnnamed932(o[0]); 2381 checkUnnamed224(o[0]);
2518 checkUnnamed932(o[1]); 2382 checkUnnamed224(o[1]);
2519 } 2383 }
2520 2384
2521 buildUnnamed934() { 2385 buildUnnamed226() {
2522 var o = new core.Map<core.String, core.String>(); 2386 var o = new core.Map<core.String, core.String>();
2523 o["x"] = "foo"; 2387 o["x"] = "foo";
2524 o["y"] = "foo"; 2388 o["y"] = "foo";
2525 return o; 2389 return o;
2526 } 2390 }
2527 2391
2528 checkUnnamed934(core.Map<core.String, core.String> o) { 2392 checkUnnamed226(core.Map<core.String, core.String> o) {
2529 unittest.expect(o, unittest.hasLength(2)); 2393 unittest.expect(o, unittest.hasLength(2));
2530 unittest.expect(o["x"], unittest.equals('foo')); 2394 unittest.expect(o["x"], unittest.equals('foo'));
2531 unittest.expect(o["y"], unittest.equals('foo')); 2395 unittest.expect(o["y"], unittest.equals('foo'));
2532 } 2396 }
2533 2397
2534 core.int buildCounterMcfData = 0; 2398 core.int buildCounterMcfData = 0;
2535 buildMcfData() { 2399 buildMcfData() {
2536 var o = new api.McfData(); 2400 var o = new api.McfData();
2537 buildCounterMcfData++; 2401 buildCounterMcfData++;
2538 if (buildCounterMcfData < 3) { 2402 if (buildCounterMcfData < 3) {
2539 o.columnHeaders = buildUnnamed928(); 2403 o.columnHeaders = buildUnnamed220();
2540 o.containsSampledData = true; 2404 o.containsSampledData = true;
2541 o.id = "foo"; 2405 o.id = "foo";
2542 o.itemsPerPage = 42; 2406 o.itemsPerPage = 42;
2543 o.kind = "foo"; 2407 o.kind = "foo";
2544 o.nextLink = "foo"; 2408 o.nextLink = "foo";
2545 o.previousLink = "foo"; 2409 o.previousLink = "foo";
2546 o.profileInfo = buildMcfDataProfileInfo(); 2410 o.profileInfo = buildMcfDataProfileInfo();
2547 o.query = buildMcfDataQuery(); 2411 o.query = buildMcfDataQuery();
2548 o.rows = buildUnnamed933(); 2412 o.rows = buildUnnamed225();
2549 o.sampleSize = "foo"; 2413 o.sampleSize = "foo";
2550 o.sampleSpace = "foo"; 2414 o.sampleSpace = "foo";
2551 o.selfLink = "foo"; 2415 o.selfLink = "foo";
2552 o.totalResults = 42; 2416 o.totalResults = 42;
2553 o.totalsForAllResults = buildUnnamed934(); 2417 o.totalsForAllResults = buildUnnamed226();
2554 } 2418 }
2555 buildCounterMcfData--; 2419 buildCounterMcfData--;
2556 return o; 2420 return o;
2557 } 2421 }
2558 2422
2559 checkMcfData(api.McfData o) { 2423 checkMcfData(api.McfData o) {
2560 buildCounterMcfData++; 2424 buildCounterMcfData++;
2561 if (buildCounterMcfData < 3) { 2425 if (buildCounterMcfData < 3) {
2562 checkUnnamed928(o.columnHeaders); 2426 checkUnnamed220(o.columnHeaders);
2563 unittest.expect(o.containsSampledData, unittest.isTrue); 2427 unittest.expect(o.containsSampledData, unittest.isTrue);
2564 unittest.expect(o.id, unittest.equals('foo')); 2428 unittest.expect(o.id, unittest.equals('foo'));
2565 unittest.expect(o.itemsPerPage, unittest.equals(42)); 2429 unittest.expect(o.itemsPerPage, unittest.equals(42));
2566 unittest.expect(o.kind, unittest.equals('foo')); 2430 unittest.expect(o.kind, unittest.equals('foo'));
2567 unittest.expect(o.nextLink, unittest.equals('foo')); 2431 unittest.expect(o.nextLink, unittest.equals('foo'));
2568 unittest.expect(o.previousLink, unittest.equals('foo')); 2432 unittest.expect(o.previousLink, unittest.equals('foo'));
2569 checkMcfDataProfileInfo(o.profileInfo); 2433 checkMcfDataProfileInfo(o.profileInfo);
2570 checkMcfDataQuery(o.query); 2434 checkMcfDataQuery(o.query);
2571 checkUnnamed933(o.rows); 2435 checkUnnamed225(o.rows);
2572 unittest.expect(o.sampleSize, unittest.equals('foo')); 2436 unittest.expect(o.sampleSize, unittest.equals('foo'));
2573 unittest.expect(o.sampleSpace, unittest.equals('foo')); 2437 unittest.expect(o.sampleSpace, unittest.equals('foo'));
2574 unittest.expect(o.selfLink, unittest.equals('foo')); 2438 unittest.expect(o.selfLink, unittest.equals('foo'));
2575 unittest.expect(o.totalResults, unittest.equals(42)); 2439 unittest.expect(o.totalResults, unittest.equals(42));
2576 checkUnnamed934(o.totalsForAllResults); 2440 checkUnnamed226(o.totalsForAllResults);
2577 } 2441 }
2578 buildCounterMcfData--; 2442 buildCounterMcfData--;
2579 } 2443 }
2580 2444
2581 core.int buildCounterProfileChildLink = 0; 2445 core.int buildCounterProfileChildLink = 0;
2582 buildProfileChildLink() { 2446 buildProfileChildLink() {
2583 var o = new api.ProfileChildLink(); 2447 var o = new api.ProfileChildLink();
2584 buildCounterProfileChildLink++; 2448 buildCounterProfileChildLink++;
2585 if (buildCounterProfileChildLink < 3) { 2449 if (buildCounterProfileChildLink < 3) {
2586 o.href = "foo"; 2450 o.href = "foo";
(...skipping 26 matching lines...) Expand all
2613 2477
2614 checkProfileParentLink(api.ProfileParentLink o) { 2478 checkProfileParentLink(api.ProfileParentLink o) {
2615 buildCounterProfileParentLink++; 2479 buildCounterProfileParentLink++;
2616 if (buildCounterProfileParentLink < 3) { 2480 if (buildCounterProfileParentLink < 3) {
2617 unittest.expect(o.href, unittest.equals('foo')); 2481 unittest.expect(o.href, unittest.equals('foo'));
2618 unittest.expect(o.type, unittest.equals('foo')); 2482 unittest.expect(o.type, unittest.equals('foo'));
2619 } 2483 }
2620 buildCounterProfileParentLink--; 2484 buildCounterProfileParentLink--;
2621 } 2485 }
2622 2486
2623 buildUnnamed935() { 2487 buildUnnamed227() {
2624 var o = new core.List<core.String>(); 2488 var o = new core.List<core.String>();
2625 o.add("foo"); 2489 o.add("foo");
2626 o.add("foo"); 2490 o.add("foo");
2627 return o; 2491 return o;
2628 } 2492 }
2629 2493
2630 checkUnnamed935(core.List<core.String> o) { 2494 checkUnnamed227(core.List<core.String> o) {
2631 unittest.expect(o, unittest.hasLength(2)); 2495 unittest.expect(o, unittest.hasLength(2));
2632 unittest.expect(o[0], unittest.equals('foo')); 2496 unittest.expect(o[0], unittest.equals('foo'));
2633 unittest.expect(o[1], unittest.equals('foo')); 2497 unittest.expect(o[1], unittest.equals('foo'));
2634 } 2498 }
2635 2499
2636 core.int buildCounterProfilePermissions = 0; 2500 core.int buildCounterProfilePermissions = 0;
2637 buildProfilePermissions() { 2501 buildProfilePermissions() {
2638 var o = new api.ProfilePermissions(); 2502 var o = new api.ProfilePermissions();
2639 buildCounterProfilePermissions++; 2503 buildCounterProfilePermissions++;
2640 if (buildCounterProfilePermissions < 3) { 2504 if (buildCounterProfilePermissions < 3) {
2641 o.effective = buildUnnamed935(); 2505 o.effective = buildUnnamed227();
2642 } 2506 }
2643 buildCounterProfilePermissions--; 2507 buildCounterProfilePermissions--;
2644 return o; 2508 return o;
2645 } 2509 }
2646 2510
2647 checkProfilePermissions(api.ProfilePermissions o) { 2511 checkProfilePermissions(api.ProfilePermissions o) {
2648 buildCounterProfilePermissions++; 2512 buildCounterProfilePermissions++;
2649 if (buildCounterProfilePermissions < 3) { 2513 if (buildCounterProfilePermissions < 3) {
2650 checkUnnamed935(o.effective); 2514 checkUnnamed227(o.effective);
2651 } 2515 }
2652 buildCounterProfilePermissions--; 2516 buildCounterProfilePermissions--;
2653 } 2517 }
2654 2518
2655 core.int buildCounterProfile = 0; 2519 core.int buildCounterProfile = 0;
2656 buildProfile() { 2520 buildProfile() {
2657 var o = new api.Profile(); 2521 var o = new api.Profile();
2658 buildCounterProfile++; 2522 buildCounterProfile++;
2659 if (buildCounterProfile < 3) { 2523 if (buildCounterProfile < 3) {
2660 o.accountId = "foo"; 2524 o.accountId = "foo";
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 checkFilterRef(o.filterRef); 2603 checkFilterRef(o.filterRef);
2740 unittest.expect(o.id, unittest.equals('foo')); 2604 unittest.expect(o.id, unittest.equals('foo'));
2741 unittest.expect(o.kind, unittest.equals('foo')); 2605 unittest.expect(o.kind, unittest.equals('foo'));
2742 checkProfileRef(o.profileRef); 2606 checkProfileRef(o.profileRef);
2743 unittest.expect(o.rank, unittest.equals(42)); 2607 unittest.expect(o.rank, unittest.equals(42));
2744 unittest.expect(o.selfLink, unittest.equals('foo')); 2608 unittest.expect(o.selfLink, unittest.equals('foo'));
2745 } 2609 }
2746 buildCounterProfileFilterLink--; 2610 buildCounterProfileFilterLink--;
2747 } 2611 }
2748 2612
2749 buildUnnamed936() { 2613 buildUnnamed228() {
2750 var o = new core.List<api.ProfileFilterLink>(); 2614 var o = new core.List<api.ProfileFilterLink>();
2751 o.add(buildProfileFilterLink()); 2615 o.add(buildProfileFilterLink());
2752 o.add(buildProfileFilterLink()); 2616 o.add(buildProfileFilterLink());
2753 return o; 2617 return o;
2754 } 2618 }
2755 2619
2756 checkUnnamed936(core.List<api.ProfileFilterLink> o) { 2620 checkUnnamed228(core.List<api.ProfileFilterLink> o) {
2757 unittest.expect(o, unittest.hasLength(2)); 2621 unittest.expect(o, unittest.hasLength(2));
2758 checkProfileFilterLink(o[0]); 2622 checkProfileFilterLink(o[0]);
2759 checkProfileFilterLink(o[1]); 2623 checkProfileFilterLink(o[1]);
2760 } 2624 }
2761 2625
2762 core.int buildCounterProfileFilterLinks = 0; 2626 core.int buildCounterProfileFilterLinks = 0;
2763 buildProfileFilterLinks() { 2627 buildProfileFilterLinks() {
2764 var o = new api.ProfileFilterLinks(); 2628 var o = new api.ProfileFilterLinks();
2765 buildCounterProfileFilterLinks++; 2629 buildCounterProfileFilterLinks++;
2766 if (buildCounterProfileFilterLinks < 3) { 2630 if (buildCounterProfileFilterLinks < 3) {
2767 o.items = buildUnnamed936(); 2631 o.items = buildUnnamed228();
2768 o.itemsPerPage = 42; 2632 o.itemsPerPage = 42;
2769 o.kind = "foo"; 2633 o.kind = "foo";
2770 o.nextLink = "foo"; 2634 o.nextLink = "foo";
2771 o.previousLink = "foo"; 2635 o.previousLink = "foo";
2772 o.startIndex = 42; 2636 o.startIndex = 42;
2773 o.totalResults = 42; 2637 o.totalResults = 42;
2774 o.username = "foo"; 2638 o.username = "foo";
2775 } 2639 }
2776 buildCounterProfileFilterLinks--; 2640 buildCounterProfileFilterLinks--;
2777 return o; 2641 return o;
2778 } 2642 }
2779 2643
2780 checkProfileFilterLinks(api.ProfileFilterLinks o) { 2644 checkProfileFilterLinks(api.ProfileFilterLinks o) {
2781 buildCounterProfileFilterLinks++; 2645 buildCounterProfileFilterLinks++;
2782 if (buildCounterProfileFilterLinks < 3) { 2646 if (buildCounterProfileFilterLinks < 3) {
2783 checkUnnamed936(o.items); 2647 checkUnnamed228(o.items);
2784 unittest.expect(o.itemsPerPage, unittest.equals(42)); 2648 unittest.expect(o.itemsPerPage, unittest.equals(42));
2785 unittest.expect(o.kind, unittest.equals('foo')); 2649 unittest.expect(o.kind, unittest.equals('foo'));
2786 unittest.expect(o.nextLink, unittest.equals('foo')); 2650 unittest.expect(o.nextLink, unittest.equals('foo'));
2787 unittest.expect(o.previousLink, unittest.equals('foo')); 2651 unittest.expect(o.previousLink, unittest.equals('foo'));
2788 unittest.expect(o.startIndex, unittest.equals(42)); 2652 unittest.expect(o.startIndex, unittest.equals(42));
2789 unittest.expect(o.totalResults, unittest.equals(42)); 2653 unittest.expect(o.totalResults, unittest.equals(42));
2790 unittest.expect(o.username, unittest.equals('foo')); 2654 unittest.expect(o.username, unittest.equals('foo'));
2791 } 2655 }
2792 buildCounterProfileFilterLinks--; 2656 buildCounterProfileFilterLinks--;
2793 } 2657 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2841 buildCounterProfileSummary++; 2705 buildCounterProfileSummary++;
2842 if (buildCounterProfileSummary < 3) { 2706 if (buildCounterProfileSummary < 3) {
2843 unittest.expect(o.id, unittest.equals('foo')); 2707 unittest.expect(o.id, unittest.equals('foo'));
2844 unittest.expect(o.kind, unittest.equals('foo')); 2708 unittest.expect(o.kind, unittest.equals('foo'));
2845 unittest.expect(o.name, unittest.equals('foo')); 2709 unittest.expect(o.name, unittest.equals('foo'));
2846 unittest.expect(o.type, unittest.equals('foo')); 2710 unittest.expect(o.type, unittest.equals('foo'));
2847 } 2711 }
2848 buildCounterProfileSummary--; 2712 buildCounterProfileSummary--;
2849 } 2713 }
2850 2714
2851 buildUnnamed937() { 2715 buildUnnamed229() {
2852 var o = new core.List<api.Profile>(); 2716 var o = new core.List<api.Profile>();
2853 o.add(buildProfile()); 2717 o.add(buildProfile());
2854 o.add(buildProfile()); 2718 o.add(buildProfile());
2855 return o; 2719 return o;
2856 } 2720 }
2857 2721
2858 checkUnnamed937(core.List<api.Profile> o) { 2722 checkUnnamed229(core.List<api.Profile> o) {
2859 unittest.expect(o, unittest.hasLength(2)); 2723 unittest.expect(o, unittest.hasLength(2));
2860 checkProfile(o[0]); 2724 checkProfile(o[0]);
2861 checkProfile(o[1]); 2725 checkProfile(o[1]);
2862 } 2726 }
2863 2727
2864 core.int buildCounterProfiles = 0; 2728 core.int buildCounterProfiles = 0;
2865 buildProfiles() { 2729 buildProfiles() {
2866 var o = new api.Profiles(); 2730 var o = new api.Profiles();
2867 buildCounterProfiles++; 2731 buildCounterProfiles++;
2868 if (buildCounterProfiles < 3) { 2732 if (buildCounterProfiles < 3) {
2869 o.items = buildUnnamed937(); 2733 o.items = buildUnnamed229();
2870 o.itemsPerPage = 42; 2734 o.itemsPerPage = 42;
2871 o.kind = "foo"; 2735 o.kind = "foo";
2872 o.nextLink = "foo"; 2736 o.nextLink = "foo";
2873 o.previousLink = "foo"; 2737 o.previousLink = "foo";
2874 o.startIndex = 42; 2738 o.startIndex = 42;
2875 o.totalResults = 42; 2739 o.totalResults = 42;
2876 o.username = "foo"; 2740 o.username = "foo";
2877 } 2741 }
2878 buildCounterProfiles--; 2742 buildCounterProfiles--;
2879 return o; 2743 return o;
2880 } 2744 }
2881 2745
2882 checkProfiles(api.Profiles o) { 2746 checkProfiles(api.Profiles o) {
2883 buildCounterProfiles++; 2747 buildCounterProfiles++;
2884 if (buildCounterProfiles < 3) { 2748 if (buildCounterProfiles < 3) {
2885 checkUnnamed937(o.items); 2749 checkUnnamed229(o.items);
2886 unittest.expect(o.itemsPerPage, unittest.equals(42)); 2750 unittest.expect(o.itemsPerPage, unittest.equals(42));
2887 unittest.expect(o.kind, unittest.equals('foo')); 2751 unittest.expect(o.kind, unittest.equals('foo'));
2888 unittest.expect(o.nextLink, unittest.equals('foo')); 2752 unittest.expect(o.nextLink, unittest.equals('foo'));
2889 unittest.expect(o.previousLink, unittest.equals('foo')); 2753 unittest.expect(o.previousLink, unittest.equals('foo'));
2890 unittest.expect(o.startIndex, unittest.equals(42)); 2754 unittest.expect(o.startIndex, unittest.equals(42));
2891 unittest.expect(o.totalResults, unittest.equals(42)); 2755 unittest.expect(o.totalResults, unittest.equals(42));
2892 unittest.expect(o.username, unittest.equals('foo')); 2756 unittest.expect(o.username, unittest.equals('foo'));
2893 } 2757 }
2894 buildCounterProfiles--; 2758 buildCounterProfiles--;
2895 } 2759 }
(...skipping 14 matching lines...) Expand all
2910 checkRealtimeDataColumnHeaders(api.RealtimeDataColumnHeaders o) { 2774 checkRealtimeDataColumnHeaders(api.RealtimeDataColumnHeaders o) {
2911 buildCounterRealtimeDataColumnHeaders++; 2775 buildCounterRealtimeDataColumnHeaders++;
2912 if (buildCounterRealtimeDataColumnHeaders < 3) { 2776 if (buildCounterRealtimeDataColumnHeaders < 3) {
2913 unittest.expect(o.columnType, unittest.equals('foo')); 2777 unittest.expect(o.columnType, unittest.equals('foo'));
2914 unittest.expect(o.dataType, unittest.equals('foo')); 2778 unittest.expect(o.dataType, unittest.equals('foo'));
2915 unittest.expect(o.name, unittest.equals('foo')); 2779 unittest.expect(o.name, unittest.equals('foo'));
2916 } 2780 }
2917 buildCounterRealtimeDataColumnHeaders--; 2781 buildCounterRealtimeDataColumnHeaders--;
2918 } 2782 }
2919 2783
2920 buildUnnamed938() { 2784 buildUnnamed230() {
2921 var o = new core.List<api.RealtimeDataColumnHeaders>(); 2785 var o = new core.List<api.RealtimeDataColumnHeaders>();
2922 o.add(buildRealtimeDataColumnHeaders()); 2786 o.add(buildRealtimeDataColumnHeaders());
2923 o.add(buildRealtimeDataColumnHeaders()); 2787 o.add(buildRealtimeDataColumnHeaders());
2924 return o; 2788 return o;
2925 } 2789 }
2926 2790
2927 checkUnnamed938(core.List<api.RealtimeDataColumnHeaders> o) { 2791 checkUnnamed230(core.List<api.RealtimeDataColumnHeaders> o) {
2928 unittest.expect(o, unittest.hasLength(2)); 2792 unittest.expect(o, unittest.hasLength(2));
2929 checkRealtimeDataColumnHeaders(o[0]); 2793 checkRealtimeDataColumnHeaders(o[0]);
2930 checkRealtimeDataColumnHeaders(o[1]); 2794 checkRealtimeDataColumnHeaders(o[1]);
2931 } 2795 }
2932 2796
2933 core.int buildCounterRealtimeDataProfileInfo = 0; 2797 core.int buildCounterRealtimeDataProfileInfo = 0;
2934 buildRealtimeDataProfileInfo() { 2798 buildRealtimeDataProfileInfo() {
2935 var o = new api.RealtimeDataProfileInfo(); 2799 var o = new api.RealtimeDataProfileInfo();
2936 buildCounterRealtimeDataProfileInfo++; 2800 buildCounterRealtimeDataProfileInfo++;
2937 if (buildCounterRealtimeDataProfileInfo < 3) { 2801 if (buildCounterRealtimeDataProfileInfo < 3) {
(...skipping 14 matching lines...) Expand all
2952 unittest.expect(o.accountId, unittest.equals('foo')); 2816 unittest.expect(o.accountId, unittest.equals('foo'));
2953 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); 2817 unittest.expect(o.internalWebPropertyId, unittest.equals('foo'));
2954 unittest.expect(o.profileId, unittest.equals('foo')); 2818 unittest.expect(o.profileId, unittest.equals('foo'));
2955 unittest.expect(o.profileName, unittest.equals('foo')); 2819 unittest.expect(o.profileName, unittest.equals('foo'));
2956 unittest.expect(o.tableId, unittest.equals('foo')); 2820 unittest.expect(o.tableId, unittest.equals('foo'));
2957 unittest.expect(o.webPropertyId, unittest.equals('foo')); 2821 unittest.expect(o.webPropertyId, unittest.equals('foo'));
2958 } 2822 }
2959 buildCounterRealtimeDataProfileInfo--; 2823 buildCounterRealtimeDataProfileInfo--;
2960 } 2824 }
2961 2825
2962 buildUnnamed939() { 2826 buildUnnamed231() {
2963 var o = new core.List<core.String>(); 2827 var o = new core.List<core.String>();
2964 o.add("foo"); 2828 o.add("foo");
2965 o.add("foo"); 2829 o.add("foo");
2966 return o; 2830 return o;
2967 } 2831 }
2968 2832
2969 checkUnnamed939(core.List<core.String> o) { 2833 checkUnnamed231(core.List<core.String> o) {
2970 unittest.expect(o, unittest.hasLength(2)); 2834 unittest.expect(o, unittest.hasLength(2));
2971 unittest.expect(o[0], unittest.equals('foo')); 2835 unittest.expect(o[0], unittest.equals('foo'));
2972 unittest.expect(o[1], unittest.equals('foo')); 2836 unittest.expect(o[1], unittest.equals('foo'));
2973 } 2837 }
2974 2838
2975 buildUnnamed940() { 2839 buildUnnamed232() {
2976 var o = new core.List<core.String>(); 2840 var o = new core.List<core.String>();
2977 o.add("foo"); 2841 o.add("foo");
2978 o.add("foo"); 2842 o.add("foo");
2979 return o; 2843 return o;
2980 } 2844 }
2981 2845
2982 checkUnnamed940(core.List<core.String> o) { 2846 checkUnnamed232(core.List<core.String> o) {
2983 unittest.expect(o, unittest.hasLength(2)); 2847 unittest.expect(o, unittest.hasLength(2));
2984 unittest.expect(o[0], unittest.equals('foo')); 2848 unittest.expect(o[0], unittest.equals('foo'));
2985 unittest.expect(o[1], unittest.equals('foo')); 2849 unittest.expect(o[1], unittest.equals('foo'));
2986 } 2850 }
2987 2851
2988 core.int buildCounterRealtimeDataQuery = 0; 2852 core.int buildCounterRealtimeDataQuery = 0;
2989 buildRealtimeDataQuery() { 2853 buildRealtimeDataQuery() {
2990 var o = new api.RealtimeDataQuery(); 2854 var o = new api.RealtimeDataQuery();
2991 buildCounterRealtimeDataQuery++; 2855 buildCounterRealtimeDataQuery++;
2992 if (buildCounterRealtimeDataQuery < 3) { 2856 if (buildCounterRealtimeDataQuery < 3) {
2993 o.dimensions = "foo"; 2857 o.dimensions = "foo";
2994 o.filters = "foo"; 2858 o.filters = "foo";
2995 o.ids = "foo"; 2859 o.ids = "foo";
2996 o.max_results = 42; 2860 o.max_results = 42;
2997 o.metrics = buildUnnamed939(); 2861 o.metrics = buildUnnamed231();
2998 o.sort = buildUnnamed940(); 2862 o.sort = buildUnnamed232();
2999 } 2863 }
3000 buildCounterRealtimeDataQuery--; 2864 buildCounterRealtimeDataQuery--;
3001 return o; 2865 return o;
3002 } 2866 }
3003 2867
3004 checkRealtimeDataQuery(api.RealtimeDataQuery o) { 2868 checkRealtimeDataQuery(api.RealtimeDataQuery o) {
3005 buildCounterRealtimeDataQuery++; 2869 buildCounterRealtimeDataQuery++;
3006 if (buildCounterRealtimeDataQuery < 3) { 2870 if (buildCounterRealtimeDataQuery < 3) {
3007 unittest.expect(o.dimensions, unittest.equals('foo')); 2871 unittest.expect(o.dimensions, unittest.equals('foo'));
3008 unittest.expect(o.filters, unittest.equals('foo')); 2872 unittest.expect(o.filters, unittest.equals('foo'));
3009 unittest.expect(o.ids, unittest.equals('foo')); 2873 unittest.expect(o.ids, unittest.equals('foo'));
3010 unittest.expect(o.max_results, unittest.equals(42)); 2874 unittest.expect(o.max_results, unittest.equals(42));
3011 checkUnnamed939(o.metrics); 2875 checkUnnamed231(o.metrics);
3012 checkUnnamed940(o.sort); 2876 checkUnnamed232(o.sort);
3013 } 2877 }
3014 buildCounterRealtimeDataQuery--; 2878 buildCounterRealtimeDataQuery--;
3015 } 2879 }
3016 2880
3017 buildUnnamed941() { 2881 buildUnnamed233() {
3018 var o = new core.List<core.String>(); 2882 var o = new core.List<core.String>();
3019 o.add("foo"); 2883 o.add("foo");
3020 o.add("foo"); 2884 o.add("foo");
3021 return o; 2885 return o;
3022 } 2886 }
3023 2887
3024 checkUnnamed941(core.List<core.String> o) { 2888 checkUnnamed233(core.List<core.String> o) {
3025 unittest.expect(o, unittest.hasLength(2)); 2889 unittest.expect(o, unittest.hasLength(2));
3026 unittest.expect(o[0], unittest.equals('foo')); 2890 unittest.expect(o[0], unittest.equals('foo'));
3027 unittest.expect(o[1], unittest.equals('foo')); 2891 unittest.expect(o[1], unittest.equals('foo'));
3028 } 2892 }
3029 2893
3030 buildUnnamed942() { 2894 buildUnnamed234() {
3031 var o = new core.List<core.List<core.String>>(); 2895 var o = new core.List<core.List<core.String>>();
3032 o.add(buildUnnamed941()); 2896 o.add(buildUnnamed233());
3033 o.add(buildUnnamed941()); 2897 o.add(buildUnnamed233());
3034 return o; 2898 return o;
3035 } 2899 }
3036 2900
3037 checkUnnamed942(core.List<core.List<core.String>> o) { 2901 checkUnnamed234(core.List<core.List<core.String>> o) {
3038 unittest.expect(o, unittest.hasLength(2)); 2902 unittest.expect(o, unittest.hasLength(2));
3039 checkUnnamed941(o[0]); 2903 checkUnnamed233(o[0]);
3040 checkUnnamed941(o[1]); 2904 checkUnnamed233(o[1]);
3041 } 2905 }
3042 2906
3043 buildUnnamed943() { 2907 buildUnnamed235() {
3044 var o = new core.Map<core.String, core.String>(); 2908 var o = new core.Map<core.String, core.String>();
3045 o["x"] = "foo"; 2909 o["x"] = "foo";
3046 o["y"] = "foo"; 2910 o["y"] = "foo";
3047 return o; 2911 return o;
3048 } 2912 }
3049 2913
3050 checkUnnamed943(core.Map<core.String, core.String> o) { 2914 checkUnnamed235(core.Map<core.String, core.String> o) {
3051 unittest.expect(o, unittest.hasLength(2)); 2915 unittest.expect(o, unittest.hasLength(2));
3052 unittest.expect(o["x"], unittest.equals('foo')); 2916 unittest.expect(o["x"], unittest.equals('foo'));
3053 unittest.expect(o["y"], unittest.equals('foo')); 2917 unittest.expect(o["y"], unittest.equals('foo'));
3054 } 2918 }
3055 2919
3056 core.int buildCounterRealtimeData = 0; 2920 core.int buildCounterRealtimeData = 0;
3057 buildRealtimeData() { 2921 buildRealtimeData() {
3058 var o = new api.RealtimeData(); 2922 var o = new api.RealtimeData();
3059 buildCounterRealtimeData++; 2923 buildCounterRealtimeData++;
3060 if (buildCounterRealtimeData < 3) { 2924 if (buildCounterRealtimeData < 3) {
3061 o.columnHeaders = buildUnnamed938(); 2925 o.columnHeaders = buildUnnamed230();
3062 o.id = "foo"; 2926 o.id = "foo";
3063 o.kind = "foo"; 2927 o.kind = "foo";
3064 o.profileInfo = buildRealtimeDataProfileInfo(); 2928 o.profileInfo = buildRealtimeDataProfileInfo();
3065 o.query = buildRealtimeDataQuery(); 2929 o.query = buildRealtimeDataQuery();
3066 o.rows = buildUnnamed942(); 2930 o.rows = buildUnnamed234();
3067 o.selfLink = "foo"; 2931 o.selfLink = "foo";
3068 o.totalResults = 42; 2932 o.totalResults = 42;
3069 o.totalsForAllResults = buildUnnamed943(); 2933 o.totalsForAllResults = buildUnnamed235();
3070 } 2934 }
3071 buildCounterRealtimeData--; 2935 buildCounterRealtimeData--;
3072 return o; 2936 return o;
3073 } 2937 }
3074 2938
3075 checkRealtimeData(api.RealtimeData o) { 2939 checkRealtimeData(api.RealtimeData o) {
3076 buildCounterRealtimeData++; 2940 buildCounterRealtimeData++;
3077 if (buildCounterRealtimeData < 3) { 2941 if (buildCounterRealtimeData < 3) {
3078 checkUnnamed938(o.columnHeaders); 2942 checkUnnamed230(o.columnHeaders);
3079 unittest.expect(o.id, unittest.equals('foo')); 2943 unittest.expect(o.id, unittest.equals('foo'));
3080 unittest.expect(o.kind, unittest.equals('foo')); 2944 unittest.expect(o.kind, unittest.equals('foo'));
3081 checkRealtimeDataProfileInfo(o.profileInfo); 2945 checkRealtimeDataProfileInfo(o.profileInfo);
3082 checkRealtimeDataQuery(o.query); 2946 checkRealtimeDataQuery(o.query);
3083 checkUnnamed942(o.rows); 2947 checkUnnamed234(o.rows);
3084 unittest.expect(o.selfLink, unittest.equals('foo')); 2948 unittest.expect(o.selfLink, unittest.equals('foo'));
3085 unittest.expect(o.totalResults, unittest.equals(42)); 2949 unittest.expect(o.totalResults, unittest.equals(42));
3086 checkUnnamed943(o.totalsForAllResults); 2950 checkUnnamed235(o.totalsForAllResults);
3087 } 2951 }
3088 buildCounterRealtimeData--; 2952 buildCounterRealtimeData--;
3089 } 2953 }
3090 2954
3091 core.int buildCounterSegment = 0; 2955 core.int buildCounterSegment = 0;
3092 buildSegment() { 2956 buildSegment() {
3093 var o = new api.Segment(); 2957 var o = new api.Segment();
3094 buildCounterSegment++; 2958 buildCounterSegment++;
3095 if (buildCounterSegment < 3) { 2959 if (buildCounterSegment < 3) {
3096 o.created = core.DateTime.parse("2002-02-27T14:01:02"); 2960 o.created = core.DateTime.parse("2002-02-27T14:01:02");
(...skipping 19 matching lines...) Expand all
3116 unittest.expect(o.kind, unittest.equals('foo')); 2980 unittest.expect(o.kind, unittest.equals('foo'));
3117 unittest.expect(o.name, unittest.equals('foo')); 2981 unittest.expect(o.name, unittest.equals('foo'));
3118 unittest.expect(o.segmentId, unittest.equals('foo')); 2982 unittest.expect(o.segmentId, unittest.equals('foo'));
3119 unittest.expect(o.selfLink, unittest.equals('foo')); 2983 unittest.expect(o.selfLink, unittest.equals('foo'));
3120 unittest.expect(o.type, unittest.equals('foo')); 2984 unittest.expect(o.type, unittest.equals('foo'));
3121 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 2985 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
3122 } 2986 }
3123 buildCounterSegment--; 2987 buildCounterSegment--;
3124 } 2988 }
3125 2989
3126 buildUnnamed944() { 2990 buildUnnamed236() {
3127 var o = new core.List<api.Segment>(); 2991 var o = new core.List<api.Segment>();
3128 o.add(buildSegment()); 2992 o.add(buildSegment());
3129 o.add(buildSegment()); 2993 o.add(buildSegment());
3130 return o; 2994 return o;
3131 } 2995 }
3132 2996
3133 checkUnnamed944(core.List<api.Segment> o) { 2997 checkUnnamed236(core.List<api.Segment> o) {
3134 unittest.expect(o, unittest.hasLength(2)); 2998 unittest.expect(o, unittest.hasLength(2));
3135 checkSegment(o[0]); 2999 checkSegment(o[0]);
3136 checkSegment(o[1]); 3000 checkSegment(o[1]);
3137 } 3001 }
3138 3002
3139 core.int buildCounterSegments = 0; 3003 core.int buildCounterSegments = 0;
3140 buildSegments() { 3004 buildSegments() {
3141 var o = new api.Segments(); 3005 var o = new api.Segments();
3142 buildCounterSegments++; 3006 buildCounterSegments++;
3143 if (buildCounterSegments < 3) { 3007 if (buildCounterSegments < 3) {
3144 o.items = buildUnnamed944(); 3008 o.items = buildUnnamed236();
3145 o.itemsPerPage = 42; 3009 o.itemsPerPage = 42;
3146 o.kind = "foo"; 3010 o.kind = "foo";
3147 o.nextLink = "foo"; 3011 o.nextLink = "foo";
3148 o.previousLink = "foo"; 3012 o.previousLink = "foo";
3149 o.startIndex = 42; 3013 o.startIndex = 42;
3150 o.totalResults = 42; 3014 o.totalResults = 42;
3151 o.username = "foo"; 3015 o.username = "foo";
3152 } 3016 }
3153 buildCounterSegments--; 3017 buildCounterSegments--;
3154 return o; 3018 return o;
3155 } 3019 }
3156 3020
3157 checkSegments(api.Segments o) { 3021 checkSegments(api.Segments o) {
3158 buildCounterSegments++; 3022 buildCounterSegments++;
3159 if (buildCounterSegments < 3) { 3023 if (buildCounterSegments < 3) {
3160 checkUnnamed944(o.items); 3024 checkUnnamed236(o.items);
3161 unittest.expect(o.itemsPerPage, unittest.equals(42)); 3025 unittest.expect(o.itemsPerPage, unittest.equals(42));
3162 unittest.expect(o.kind, unittest.equals('foo')); 3026 unittest.expect(o.kind, unittest.equals('foo'));
3163 unittest.expect(o.nextLink, unittest.equals('foo')); 3027 unittest.expect(o.nextLink, unittest.equals('foo'));
3164 unittest.expect(o.previousLink, unittest.equals('foo')); 3028 unittest.expect(o.previousLink, unittest.equals('foo'));
3165 unittest.expect(o.startIndex, unittest.equals(42)); 3029 unittest.expect(o.startIndex, unittest.equals(42));
3166 unittest.expect(o.totalResults, unittest.equals(42)); 3030 unittest.expect(o.totalResults, unittest.equals(42));
3167 unittest.expect(o.username, unittest.equals('foo')); 3031 unittest.expect(o.username, unittest.equals('foo'));
3168 } 3032 }
3169 buildCounterSegments--; 3033 buildCounterSegments--;
3170 } 3034 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
3257 unittest.expect(o.selfLink, unittest.equals('foo')); 3121 unittest.expect(o.selfLink, unittest.equals('foo'));
3258 unittest.expect(o.start_date, unittest.equals('foo')); 3122 unittest.expect(o.start_date, unittest.equals('foo'));
3259 unittest.expect(o.status, unittest.equals('foo')); 3123 unittest.expect(o.status, unittest.equals('foo'));
3260 unittest.expect(o.title, unittest.equals('foo')); 3124 unittest.expect(o.title, unittest.equals('foo'));
3261 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 3125 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
3262 unittest.expect(o.webPropertyId, unittest.equals('foo')); 3126 unittest.expect(o.webPropertyId, unittest.equals('foo'));
3263 } 3127 }
3264 buildCounterUnsampledReport--; 3128 buildCounterUnsampledReport--;
3265 } 3129 }
3266 3130
3267 buildUnnamed945() { 3131 buildUnnamed237() {
3268 var o = new core.List<api.UnsampledReport>(); 3132 var o = new core.List<api.UnsampledReport>();
3269 o.add(buildUnsampledReport()); 3133 o.add(buildUnsampledReport());
3270 o.add(buildUnsampledReport()); 3134 o.add(buildUnsampledReport());
3271 return o; 3135 return o;
3272 } 3136 }
3273 3137
3274 checkUnnamed945(core.List<api.UnsampledReport> o) { 3138 checkUnnamed237(core.List<api.UnsampledReport> o) {
3275 unittest.expect(o, unittest.hasLength(2)); 3139 unittest.expect(o, unittest.hasLength(2));
3276 checkUnsampledReport(o[0]); 3140 checkUnsampledReport(o[0]);
3277 checkUnsampledReport(o[1]); 3141 checkUnsampledReport(o[1]);
3278 } 3142 }
3279 3143
3280 core.int buildCounterUnsampledReports = 0; 3144 core.int buildCounterUnsampledReports = 0;
3281 buildUnsampledReports() { 3145 buildUnsampledReports() {
3282 var o = new api.UnsampledReports(); 3146 var o = new api.UnsampledReports();
3283 buildCounterUnsampledReports++; 3147 buildCounterUnsampledReports++;
3284 if (buildCounterUnsampledReports < 3) { 3148 if (buildCounterUnsampledReports < 3) {
3285 o.items = buildUnnamed945(); 3149 o.items = buildUnnamed237();
3286 o.itemsPerPage = 42; 3150 o.itemsPerPage = 42;
3287 o.kind = "foo"; 3151 o.kind = "foo";
3288 o.nextLink = "foo"; 3152 o.nextLink = "foo";
3289 o.previousLink = "foo"; 3153 o.previousLink = "foo";
3290 o.startIndex = 42; 3154 o.startIndex = 42;
3291 o.totalResults = 42; 3155 o.totalResults = 42;
3292 o.username = "foo"; 3156 o.username = "foo";
3293 } 3157 }
3294 buildCounterUnsampledReports--; 3158 buildCounterUnsampledReports--;
3295 return o; 3159 return o;
3296 } 3160 }
3297 3161
3298 checkUnsampledReports(api.UnsampledReports o) { 3162 checkUnsampledReports(api.UnsampledReports o) {
3299 buildCounterUnsampledReports++; 3163 buildCounterUnsampledReports++;
3300 if (buildCounterUnsampledReports < 3) { 3164 if (buildCounterUnsampledReports < 3) {
3301 checkUnnamed945(o.items); 3165 checkUnnamed237(o.items);
3302 unittest.expect(o.itemsPerPage, unittest.equals(42)); 3166 unittest.expect(o.itemsPerPage, unittest.equals(42));
3303 unittest.expect(o.kind, unittest.equals('foo')); 3167 unittest.expect(o.kind, unittest.equals('foo'));
3304 unittest.expect(o.nextLink, unittest.equals('foo')); 3168 unittest.expect(o.nextLink, unittest.equals('foo'));
3305 unittest.expect(o.previousLink, unittest.equals('foo')); 3169 unittest.expect(o.previousLink, unittest.equals('foo'));
3306 unittest.expect(o.startIndex, unittest.equals(42)); 3170 unittest.expect(o.startIndex, unittest.equals(42));
3307 unittest.expect(o.totalResults, unittest.equals(42)); 3171 unittest.expect(o.totalResults, unittest.equals(42));
3308 unittest.expect(o.username, unittest.equals('foo')); 3172 unittest.expect(o.username, unittest.equals('foo'));
3309 } 3173 }
3310 buildCounterUnsampledReports--; 3174 buildCounterUnsampledReports--;
3311 } 3175 }
3312 3176
3313 buildUnnamed946() { 3177 buildUnnamed238() {
3314 var o = new core.List<core.String>(); 3178 var o = new core.List<core.String>();
3315 o.add("foo"); 3179 o.add("foo");
3316 o.add("foo"); 3180 o.add("foo");
3317 return o; 3181 return o;
3318 } 3182 }
3319 3183
3320 checkUnnamed946(core.List<core.String> o) { 3184 checkUnnamed238(core.List<core.String> o) {
3321 unittest.expect(o, unittest.hasLength(2)); 3185 unittest.expect(o, unittest.hasLength(2));
3322 unittest.expect(o[0], unittest.equals('foo')); 3186 unittest.expect(o[0], unittest.equals('foo'));
3323 unittest.expect(o[1], unittest.equals('foo')); 3187 unittest.expect(o[1], unittest.equals('foo'));
3324 } 3188 }
3325 3189
3326 core.int buildCounterUpload = 0; 3190 core.int buildCounterUpload = 0;
3327 buildUpload() { 3191 buildUpload() {
3328 var o = new api.Upload(); 3192 var o = new api.Upload();
3329 buildCounterUpload++; 3193 buildCounterUpload++;
3330 if (buildCounterUpload < 3) { 3194 if (buildCounterUpload < 3) {
3331 o.accountId = "foo"; 3195 o.accountId = "foo";
3332 o.customDataSourceId = "foo"; 3196 o.customDataSourceId = "foo";
3333 o.errors = buildUnnamed946(); 3197 o.errors = buildUnnamed238();
3334 o.id = "foo"; 3198 o.id = "foo";
3335 o.kind = "foo"; 3199 o.kind = "foo";
3336 o.status = "foo"; 3200 o.status = "foo";
3337 } 3201 }
3338 buildCounterUpload--; 3202 buildCounterUpload--;
3339 return o; 3203 return o;
3340 } 3204 }
3341 3205
3342 checkUpload(api.Upload o) { 3206 checkUpload(api.Upload o) {
3343 buildCounterUpload++; 3207 buildCounterUpload++;
3344 if (buildCounterUpload < 3) { 3208 if (buildCounterUpload < 3) {
3345 unittest.expect(o.accountId, unittest.equals('foo')); 3209 unittest.expect(o.accountId, unittest.equals('foo'));
3346 unittest.expect(o.customDataSourceId, unittest.equals('foo')); 3210 unittest.expect(o.customDataSourceId, unittest.equals('foo'));
3347 checkUnnamed946(o.errors); 3211 checkUnnamed238(o.errors);
3348 unittest.expect(o.id, unittest.equals('foo')); 3212 unittest.expect(o.id, unittest.equals('foo'));
3349 unittest.expect(o.kind, unittest.equals('foo')); 3213 unittest.expect(o.kind, unittest.equals('foo'));
3350 unittest.expect(o.status, unittest.equals('foo')); 3214 unittest.expect(o.status, unittest.equals('foo'));
3351 } 3215 }
3352 buildCounterUpload--; 3216 buildCounterUpload--;
3353 } 3217 }
3354 3218
3355 buildUnnamed947() { 3219 buildUnnamed239() {
3356 var o = new core.List<api.Upload>(); 3220 var o = new core.List<api.Upload>();
3357 o.add(buildUpload()); 3221 o.add(buildUpload());
3358 o.add(buildUpload()); 3222 o.add(buildUpload());
3359 return o; 3223 return o;
3360 } 3224 }
3361 3225
3362 checkUnnamed947(core.List<api.Upload> o) { 3226 checkUnnamed239(core.List<api.Upload> o) {
3363 unittest.expect(o, unittest.hasLength(2)); 3227 unittest.expect(o, unittest.hasLength(2));
3364 checkUpload(o[0]); 3228 checkUpload(o[0]);
3365 checkUpload(o[1]); 3229 checkUpload(o[1]);
3366 } 3230 }
3367 3231
3368 core.int buildCounterUploads = 0; 3232 core.int buildCounterUploads = 0;
3369 buildUploads() { 3233 buildUploads() {
3370 var o = new api.Uploads(); 3234 var o = new api.Uploads();
3371 buildCounterUploads++; 3235 buildCounterUploads++;
3372 if (buildCounterUploads < 3) { 3236 if (buildCounterUploads < 3) {
3373 o.items = buildUnnamed947(); 3237 o.items = buildUnnamed239();
3374 o.itemsPerPage = 42; 3238 o.itemsPerPage = 42;
3375 o.kind = "foo"; 3239 o.kind = "foo";
3376 o.nextLink = "foo"; 3240 o.nextLink = "foo";
3377 o.previousLink = "foo"; 3241 o.previousLink = "foo";
3378 o.startIndex = 42; 3242 o.startIndex = 42;
3379 o.totalResults = 42; 3243 o.totalResults = 42;
3380 } 3244 }
3381 buildCounterUploads--; 3245 buildCounterUploads--;
3382 return o; 3246 return o;
3383 } 3247 }
3384 3248
3385 checkUploads(api.Uploads o) { 3249 checkUploads(api.Uploads o) {
3386 buildCounterUploads++; 3250 buildCounterUploads++;
3387 if (buildCounterUploads < 3) { 3251 if (buildCounterUploads < 3) {
3388 checkUnnamed947(o.items); 3252 checkUnnamed239(o.items);
3389 unittest.expect(o.itemsPerPage, unittest.equals(42)); 3253 unittest.expect(o.itemsPerPage, unittest.equals(42));
3390 unittest.expect(o.kind, unittest.equals('foo')); 3254 unittest.expect(o.kind, unittest.equals('foo'));
3391 unittest.expect(o.nextLink, unittest.equals('foo')); 3255 unittest.expect(o.nextLink, unittest.equals('foo'));
3392 unittest.expect(o.previousLink, unittest.equals('foo')); 3256 unittest.expect(o.previousLink, unittest.equals('foo'));
3393 unittest.expect(o.startIndex, unittest.equals(42)); 3257 unittest.expect(o.startIndex, unittest.equals(42));
3394 unittest.expect(o.totalResults, unittest.equals(42)); 3258 unittest.expect(o.totalResults, unittest.equals(42));
3395 } 3259 }
3396 buildCounterUploads--; 3260 buildCounterUploads--;
3397 } 3261 }
3398 3262
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
3441 unittest.expect(o.accountId, unittest.equals('foo')); 3305 unittest.expect(o.accountId, unittest.equals('foo'));
3442 unittest.expect(o.href, unittest.equals('foo')); 3306 unittest.expect(o.href, unittest.equals('foo'));
3443 unittest.expect(o.id, unittest.equals('foo')); 3307 unittest.expect(o.id, unittest.equals('foo'));
3444 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); 3308 unittest.expect(o.internalWebPropertyId, unittest.equals('foo'));
3445 unittest.expect(o.kind, unittest.equals('foo')); 3309 unittest.expect(o.kind, unittest.equals('foo'));
3446 unittest.expect(o.name, unittest.equals('foo')); 3310 unittest.expect(o.name, unittest.equals('foo'));
3447 } 3311 }
3448 buildCounterWebPropertyRef--; 3312 buildCounterWebPropertyRef--;
3449 } 3313 }
3450 3314
3451 buildUnnamed948() { 3315 buildUnnamed240() {
3452 var o = new core.List<api.ProfileSummary>(); 3316 var o = new core.List<api.ProfileSummary>();
3453 o.add(buildProfileSummary()); 3317 o.add(buildProfileSummary());
3454 o.add(buildProfileSummary()); 3318 o.add(buildProfileSummary());
3455 return o; 3319 return o;
3456 } 3320 }
3457 3321
3458 checkUnnamed948(core.List<api.ProfileSummary> o) { 3322 checkUnnamed240(core.List<api.ProfileSummary> o) {
3459 unittest.expect(o, unittest.hasLength(2)); 3323 unittest.expect(o, unittest.hasLength(2));
3460 checkProfileSummary(o[0]); 3324 checkProfileSummary(o[0]);
3461 checkProfileSummary(o[1]); 3325 checkProfileSummary(o[1]);
3462 } 3326 }
3463 3327
3464 core.int buildCounterWebPropertySummary = 0; 3328 core.int buildCounterWebPropertySummary = 0;
3465 buildWebPropertySummary() { 3329 buildWebPropertySummary() {
3466 var o = new api.WebPropertySummary(); 3330 var o = new api.WebPropertySummary();
3467 buildCounterWebPropertySummary++; 3331 buildCounterWebPropertySummary++;
3468 if (buildCounterWebPropertySummary < 3) { 3332 if (buildCounterWebPropertySummary < 3) {
3469 o.id = "foo"; 3333 o.id = "foo";
3470 o.internalWebPropertyId = "foo"; 3334 o.internalWebPropertyId = "foo";
3471 o.kind = "foo"; 3335 o.kind = "foo";
3472 o.level = "foo"; 3336 o.level = "foo";
3473 o.name = "foo"; 3337 o.name = "foo";
3474 o.profiles = buildUnnamed948(); 3338 o.profiles = buildUnnamed240();
3475 o.websiteUrl = "foo"; 3339 o.websiteUrl = "foo";
3476 } 3340 }
3477 buildCounterWebPropertySummary--; 3341 buildCounterWebPropertySummary--;
3478 return o; 3342 return o;
3479 } 3343 }
3480 3344
3481 checkWebPropertySummary(api.WebPropertySummary o) { 3345 checkWebPropertySummary(api.WebPropertySummary o) {
3482 buildCounterWebPropertySummary++; 3346 buildCounterWebPropertySummary++;
3483 if (buildCounterWebPropertySummary < 3) { 3347 if (buildCounterWebPropertySummary < 3) {
3484 unittest.expect(o.id, unittest.equals('foo')); 3348 unittest.expect(o.id, unittest.equals('foo'));
3485 unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); 3349 unittest.expect(o.internalWebPropertyId, unittest.equals('foo'));
3486 unittest.expect(o.kind, unittest.equals('foo')); 3350 unittest.expect(o.kind, unittest.equals('foo'));
3487 unittest.expect(o.level, unittest.equals('foo')); 3351 unittest.expect(o.level, unittest.equals('foo'));
3488 unittest.expect(o.name, unittest.equals('foo')); 3352 unittest.expect(o.name, unittest.equals('foo'));
3489 checkUnnamed948(o.profiles); 3353 checkUnnamed240(o.profiles);
3490 unittest.expect(o.websiteUrl, unittest.equals('foo')); 3354 unittest.expect(o.websiteUrl, unittest.equals('foo'));
3491 } 3355 }
3492 buildCounterWebPropertySummary--; 3356 buildCounterWebPropertySummary--;
3493 } 3357 }
3494 3358
3495 buildUnnamed949() { 3359 buildUnnamed241() {
3496 var o = new core.List<api.Webproperty>(); 3360 var o = new core.List<api.Webproperty>();
3497 o.add(buildWebproperty()); 3361 o.add(buildWebproperty());
3498 o.add(buildWebproperty()); 3362 o.add(buildWebproperty());
3499 return o; 3363 return o;
3500 } 3364 }
3501 3365
3502 checkUnnamed949(core.List<api.Webproperty> o) { 3366 checkUnnamed241(core.List<api.Webproperty> o) {
3503 unittest.expect(o, unittest.hasLength(2)); 3367 unittest.expect(o, unittest.hasLength(2));
3504 checkWebproperty(o[0]); 3368 checkWebproperty(o[0]);
3505 checkWebproperty(o[1]); 3369 checkWebproperty(o[1]);
3506 } 3370 }
3507 3371
3508 core.int buildCounterWebproperties = 0; 3372 core.int buildCounterWebproperties = 0;
3509 buildWebproperties() { 3373 buildWebproperties() {
3510 var o = new api.Webproperties(); 3374 var o = new api.Webproperties();
3511 buildCounterWebproperties++; 3375 buildCounterWebproperties++;
3512 if (buildCounterWebproperties < 3) { 3376 if (buildCounterWebproperties < 3) {
3513 o.items = buildUnnamed949(); 3377 o.items = buildUnnamed241();
3514 o.itemsPerPage = 42; 3378 o.itemsPerPage = 42;
3515 o.kind = "foo"; 3379 o.kind = "foo";
3516 o.nextLink = "foo"; 3380 o.nextLink = "foo";
3517 o.previousLink = "foo"; 3381 o.previousLink = "foo";
3518 o.startIndex = 42; 3382 o.startIndex = 42;
3519 o.totalResults = 42; 3383 o.totalResults = 42;
3520 o.username = "foo"; 3384 o.username = "foo";
3521 } 3385 }
3522 buildCounterWebproperties--; 3386 buildCounterWebproperties--;
3523 return o; 3387 return o;
3524 } 3388 }
3525 3389
3526 checkWebproperties(api.Webproperties o) { 3390 checkWebproperties(api.Webproperties o) {
3527 buildCounterWebproperties++; 3391 buildCounterWebproperties++;
3528 if (buildCounterWebproperties < 3) { 3392 if (buildCounterWebproperties < 3) {
3529 checkUnnamed949(o.items); 3393 checkUnnamed241(o.items);
3530 unittest.expect(o.itemsPerPage, unittest.equals(42)); 3394 unittest.expect(o.itemsPerPage, unittest.equals(42));
3531 unittest.expect(o.kind, unittest.equals('foo')); 3395 unittest.expect(o.kind, unittest.equals('foo'));
3532 unittest.expect(o.nextLink, unittest.equals('foo')); 3396 unittest.expect(o.nextLink, unittest.equals('foo'));
3533 unittest.expect(o.previousLink, unittest.equals('foo')); 3397 unittest.expect(o.previousLink, unittest.equals('foo'));
3534 unittest.expect(o.startIndex, unittest.equals(42)); 3398 unittest.expect(o.startIndex, unittest.equals(42));
3535 unittest.expect(o.totalResults, unittest.equals(42)); 3399 unittest.expect(o.totalResults, unittest.equals(42));
3536 unittest.expect(o.username, unittest.equals('foo')); 3400 unittest.expect(o.username, unittest.equals('foo'));
3537 } 3401 }
3538 buildCounterWebproperties--; 3402 buildCounterWebproperties--;
3539 } 3403 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
3573 3437
3574 checkWebpropertyParentLink(api.WebpropertyParentLink o) { 3438 checkWebpropertyParentLink(api.WebpropertyParentLink o) {
3575 buildCounterWebpropertyParentLink++; 3439 buildCounterWebpropertyParentLink++;
3576 if (buildCounterWebpropertyParentLink < 3) { 3440 if (buildCounterWebpropertyParentLink < 3) {
3577 unittest.expect(o.href, unittest.equals('foo')); 3441 unittest.expect(o.href, unittest.equals('foo'));
3578 unittest.expect(o.type, unittest.equals('foo')); 3442 unittest.expect(o.type, unittest.equals('foo'));
3579 } 3443 }
3580 buildCounterWebpropertyParentLink--; 3444 buildCounterWebpropertyParentLink--;
3581 } 3445 }
3582 3446
3583 buildUnnamed950() { 3447 buildUnnamed242() {
3584 var o = new core.List<core.String>(); 3448 var o = new core.List<core.String>();
3585 o.add("foo"); 3449 o.add("foo");
3586 o.add("foo"); 3450 o.add("foo");
3587 return o; 3451 return o;
3588 } 3452 }
3589 3453
3590 checkUnnamed950(core.List<core.String> o) { 3454 checkUnnamed242(core.List<core.String> o) {
3591 unittest.expect(o, unittest.hasLength(2)); 3455 unittest.expect(o, unittest.hasLength(2));
3592 unittest.expect(o[0], unittest.equals('foo')); 3456 unittest.expect(o[0], unittest.equals('foo'));
3593 unittest.expect(o[1], unittest.equals('foo')); 3457 unittest.expect(o[1], unittest.equals('foo'));
3594 } 3458 }
3595 3459
3596 core.int buildCounterWebpropertyPermissions = 0; 3460 core.int buildCounterWebpropertyPermissions = 0;
3597 buildWebpropertyPermissions() { 3461 buildWebpropertyPermissions() {
3598 var o = new api.WebpropertyPermissions(); 3462 var o = new api.WebpropertyPermissions();
3599 buildCounterWebpropertyPermissions++; 3463 buildCounterWebpropertyPermissions++;
3600 if (buildCounterWebpropertyPermissions < 3) { 3464 if (buildCounterWebpropertyPermissions < 3) {
3601 o.effective = buildUnnamed950(); 3465 o.effective = buildUnnamed242();
3602 } 3466 }
3603 buildCounterWebpropertyPermissions--; 3467 buildCounterWebpropertyPermissions--;
3604 return o; 3468 return o;
3605 } 3469 }
3606 3470
3607 checkWebpropertyPermissions(api.WebpropertyPermissions o) { 3471 checkWebpropertyPermissions(api.WebpropertyPermissions o) {
3608 buildCounterWebpropertyPermissions++; 3472 buildCounterWebpropertyPermissions++;
3609 if (buildCounterWebpropertyPermissions < 3) { 3473 if (buildCounterWebpropertyPermissions < 3) {
3610 checkUnnamed950(o.effective); 3474 checkUnnamed242(o.effective);
3611 } 3475 }
3612 buildCounterWebpropertyPermissions--; 3476 buildCounterWebpropertyPermissions--;
3613 } 3477 }
3614 3478
3615 core.int buildCounterWebproperty = 0; 3479 core.int buildCounterWebproperty = 0;
3616 buildWebproperty() { 3480 buildWebproperty() {
3617 var o = new api.Webproperty(); 3481 var o = new api.Webproperty();
3618 buildCounterWebproperty++; 3482 buildCounterWebproperty++;
3619 if (buildCounterWebproperty < 3) { 3483 if (buildCounterWebproperty < 3) {
3620 o.accountId = "foo"; 3484 o.accountId = "foo";
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
3854 3718
3855 unittest.group("obj-schema-CustomMetrics", () { 3719 unittest.group("obj-schema-CustomMetrics", () {
3856 unittest.test("to-json--from-json", () { 3720 unittest.test("to-json--from-json", () {
3857 var o = buildCustomMetrics(); 3721 var o = buildCustomMetrics();
3858 var od = new api.CustomMetrics.fromJson(o.toJson()); 3722 var od = new api.CustomMetrics.fromJson(o.toJson());
3859 checkCustomMetrics(od); 3723 checkCustomMetrics(od);
3860 }); 3724 });
3861 }); 3725 });
3862 3726
3863 3727
3864 unittest.group("obj-schema-DailyUploadParentLink", () {
3865 unittest.test("to-json--from-json", () {
3866 var o = buildDailyUploadParentLink();
3867 var od = new api.DailyUploadParentLink.fromJson(o.toJson());
3868 checkDailyUploadParentLink(od);
3869 });
3870 });
3871
3872
3873 unittest.group("obj-schema-DailyUploadRecentChanges", () {
3874 unittest.test("to-json--from-json", () {
3875 var o = buildDailyUploadRecentChanges();
3876 var od = new api.DailyUploadRecentChanges.fromJson(o.toJson());
3877 checkDailyUploadRecentChanges(od);
3878 });
3879 });
3880
3881
3882 unittest.group("obj-schema-DailyUpload", () {
3883 unittest.test("to-json--from-json", () {
3884 var o = buildDailyUpload();
3885 var od = new api.DailyUpload.fromJson(o.toJson());
3886 checkDailyUpload(od);
3887 });
3888 });
3889
3890
3891 unittest.group("obj-schema-DailyUploadAppend", () {
3892 unittest.test("to-json--from-json", () {
3893 var o = buildDailyUploadAppend();
3894 var od = new api.DailyUploadAppend.fromJson(o.toJson());
3895 checkDailyUploadAppend(od);
3896 });
3897 });
3898
3899
3900 unittest.group("obj-schema-DailyUploads", () {
3901 unittest.test("to-json--from-json", () {
3902 var o = buildDailyUploads();
3903 var od = new api.DailyUploads.fromJson(o.toJson());
3904 checkDailyUploads(od);
3905 });
3906 });
3907
3908
3909 unittest.group("obj-schema-EntityAdWordsLinkEntity", () { 3728 unittest.group("obj-schema-EntityAdWordsLinkEntity", () {
3910 unittest.test("to-json--from-json", () { 3729 unittest.test("to-json--from-json", () {
3911 var o = buildEntityAdWordsLinkEntity(); 3730 var o = buildEntityAdWordsLinkEntity();
3912 var od = new api.EntityAdWordsLinkEntity.fromJson(o.toJson()); 3731 var od = new api.EntityAdWordsLinkEntity.fromJson(o.toJson());
3913 checkEntityAdWordsLinkEntity(od); 3732 checkEntityAdWordsLinkEntity(od);
3914 }); 3733 });
3915 }); 3734 });
3916 3735
3917 3736
3918 unittest.group("obj-schema-EntityAdWordsLink", () { 3737 unittest.group("obj-schema-EntityAdWordsLink", () {
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
4550 var o = buildWebproperty(); 4369 var o = buildWebproperty();
4551 var od = new api.Webproperty.fromJson(o.toJson()); 4370 var od = new api.Webproperty.fromJson(o.toJson());
4552 checkWebproperty(od); 4371 checkWebproperty(od);
4553 }); 4372 });
4554 }); 4373 });
4555 4374
4556 4375
4557 unittest.group("resource-DataGaResourceApi", () { 4376 unittest.group("resource-DataGaResourceApi", () {
4558 unittest.test("method--get", () { 4377 unittest.test("method--get", () {
4559 4378
4560 var mock = new common_test.HttpServerMock(); 4379 var mock = new HttpServerMock();
4561 api.DataGaResourceApi res = new api.AnalyticsApi(mock).data.ga; 4380 api.DataGaResourceApi res = new api.AnalyticsApi(mock).data.ga;
4562 var arg_ids = "foo"; 4381 var arg_ids = "foo";
4563 var arg_start_date = "foo"; 4382 var arg_start_date = "foo";
4564 var arg_end_date = "foo"; 4383 var arg_end_date = "foo";
4565 var arg_metrics = "foo"; 4384 var arg_metrics = "foo";
4566 var arg_dimensions = "foo"; 4385 var arg_dimensions = "foo";
4567 var arg_filters = "foo"; 4386 var arg_filters = "foo";
4568 var arg_max_results = 42; 4387 var arg_max_results = 42;
4569 var arg_output = "foo"; 4388 var arg_output = "foo";
4570 var arg_samplingLevel = "foo"; 4389 var arg_samplingLevel = "foo";
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
4610 unittest.expect(queryMap["samplingLevel"].first, unittest.equals(arg_sam plingLevel)); 4429 unittest.expect(queryMap["samplingLevel"].first, unittest.equals(arg_sam plingLevel));
4611 unittest.expect(queryMap["segment"].first, unittest.equals(arg_segment)) ; 4430 unittest.expect(queryMap["segment"].first, unittest.equals(arg_segment)) ;
4612 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); 4431 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort));
4613 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 4432 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
4614 4433
4615 4434
4616 var h = { 4435 var h = {
4617 "content-type" : "application/json; charset=utf-8", 4436 "content-type" : "application/json; charset=utf-8",
4618 }; 4437 };
4619 var resp = convert.JSON.encode(buildGaData()); 4438 var resp = convert.JSON.encode(buildGaData());
4620 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4439 return new async.Future.value(stringResponse(200, h, resp));
4621 }), true); 4440 }), true);
4622 res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: ar g_dimensions, filters: arg_filters, max_results: arg_max_results, output: arg_ou tput, samplingLevel: arg_samplingLevel, segment: arg_segment, sort: arg_sort, st art_index: arg_start_index).then(unittest.expectAsync(((api.GaData response) { 4441 res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: ar g_dimensions, filters: arg_filters, max_results: arg_max_results, output: arg_ou tput, samplingLevel: arg_samplingLevel, segment: arg_segment, sort: arg_sort, st art_index: arg_start_index).then(unittest.expectAsync(((api.GaData response) {
4623 checkGaData(response); 4442 checkGaData(response);
4624 }))); 4443 })));
4625 }); 4444 });
4626 4445
4627 }); 4446 });
4628 4447
4629 4448
4630 unittest.group("resource-DataMcfResourceApi", () { 4449 unittest.group("resource-DataMcfResourceApi", () {
4631 unittest.test("method--get", () { 4450 unittest.test("method--get", () {
4632 4451
4633 var mock = new common_test.HttpServerMock(); 4452 var mock = new HttpServerMock();
4634 api.DataMcfResourceApi res = new api.AnalyticsApi(mock).data.mcf; 4453 api.DataMcfResourceApi res = new api.AnalyticsApi(mock).data.mcf;
4635 var arg_ids = "foo"; 4454 var arg_ids = "foo";
4636 var arg_start_date = "foo"; 4455 var arg_start_date = "foo";
4637 var arg_end_date = "foo"; 4456 var arg_end_date = "foo";
4638 var arg_metrics = "foo"; 4457 var arg_metrics = "foo";
4639 var arg_dimensions = "foo"; 4458 var arg_dimensions = "foo";
4640 var arg_filters = "foo"; 4459 var arg_filters = "foo";
4641 var arg_max_results = 42; 4460 var arg_max_results = 42;
4642 var arg_samplingLevel = "foo"; 4461 var arg_samplingLevel = "foo";
4643 var arg_sort = "foo"; 4462 var arg_sort = "foo";
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
4679 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 4498 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
4680 unittest.expect(queryMap["samplingLevel"].first, unittest.equals(arg_sam plingLevel)); 4499 unittest.expect(queryMap["samplingLevel"].first, unittest.equals(arg_sam plingLevel));
4681 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); 4500 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort));
4682 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 4501 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
4683 4502
4684 4503
4685 var h = { 4504 var h = {
4686 "content-type" : "application/json; charset=utf-8", 4505 "content-type" : "application/json; charset=utf-8",
4687 }; 4506 };
4688 var resp = convert.JSON.encode(buildMcfData()); 4507 var resp = convert.JSON.encode(buildMcfData());
4689 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4508 return new async.Future.value(stringResponse(200, h, resp));
4690 }), true); 4509 }), true);
4691 res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: ar g_dimensions, filters: arg_filters, max_results: arg_max_results, samplingLevel: arg_samplingLevel, sort: arg_sort, start_index: arg_start_index).then(unittest. expectAsync(((api.McfData response) { 4510 res.get(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: ar g_dimensions, filters: arg_filters, max_results: arg_max_results, samplingLevel: arg_samplingLevel, sort: arg_sort, start_index: arg_start_index).then(unittest. expectAsync(((api.McfData response) {
4692 checkMcfData(response); 4511 checkMcfData(response);
4693 }))); 4512 })));
4694 }); 4513 });
4695 4514
4696 }); 4515 });
4697 4516
4698 4517
4699 unittest.group("resource-DataRealtimeResourceApi", () { 4518 unittest.group("resource-DataRealtimeResourceApi", () {
4700 unittest.test("method--get", () { 4519 unittest.test("method--get", () {
4701 4520
4702 var mock = new common_test.HttpServerMock(); 4521 var mock = new HttpServerMock();
4703 api.DataRealtimeResourceApi res = new api.AnalyticsApi(mock).data.realtime ; 4522 api.DataRealtimeResourceApi res = new api.AnalyticsApi(mock).data.realtime ;
4704 var arg_ids = "foo"; 4523 var arg_ids = "foo";
4705 var arg_metrics = "foo"; 4524 var arg_metrics = "foo";
4706 var arg_dimensions = "foo"; 4525 var arg_dimensions = "foo";
4707 var arg_filters = "foo"; 4526 var arg_filters = "foo";
4708 var arg_max_results = 42; 4527 var arg_max_results = 42;
4709 var arg_sort = "foo"; 4528 var arg_sort = "foo";
4710 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4529 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4711 var path = (req.url).path; 4530 var path = (req.url).path;
4712 var pathOffset = 0; 4531 var pathOffset = 0;
(...skipping 27 matching lines...) Expand all
4740 unittest.expect(queryMap["dimensions"].first, unittest.equals(arg_dimens ions)); 4559 unittest.expect(queryMap["dimensions"].first, unittest.equals(arg_dimens ions));
4741 unittest.expect(queryMap["filters"].first, unittest.equals(arg_filters)) ; 4560 unittest.expect(queryMap["filters"].first, unittest.equals(arg_filters)) ;
4742 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 4561 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
4743 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); 4562 unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort));
4744 4563
4745 4564
4746 var h = { 4565 var h = {
4747 "content-type" : "application/json; charset=utf-8", 4566 "content-type" : "application/json; charset=utf-8",
4748 }; 4567 };
4749 var resp = convert.JSON.encode(buildRealtimeData()); 4568 var resp = convert.JSON.encode(buildRealtimeData());
4750 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4569 return new async.Future.value(stringResponse(200, h, resp));
4751 }), true); 4570 }), true);
4752 res.get(arg_ids, arg_metrics, dimensions: arg_dimensions, filters: arg_fil ters, max_results: arg_max_results, sort: arg_sort).then(unittest.expectAsync((( api.RealtimeData response) { 4571 res.get(arg_ids, arg_metrics, dimensions: arg_dimensions, filters: arg_fil ters, max_results: arg_max_results, sort: arg_sort).then(unittest.expectAsync((( api.RealtimeData response) {
4753 checkRealtimeData(response); 4572 checkRealtimeData(response);
4754 }))); 4573 })));
4755 }); 4574 });
4756 4575
4757 }); 4576 });
4758 4577
4759 4578
4760 unittest.group("resource-ManagementAccountSummariesResourceApi", () { 4579 unittest.group("resource-ManagementAccountSummariesResourceApi", () {
4761 unittest.test("method--list", () { 4580 unittest.test("method--list", () {
4762 4581
4763 var mock = new common_test.HttpServerMock(); 4582 var mock = new HttpServerMock();
4764 api.ManagementAccountSummariesResourceApi res = new api.AnalyticsApi(mock) .management.accountSummaries; 4583 api.ManagementAccountSummariesResourceApi res = new api.AnalyticsApi(mock) .management.accountSummaries;
4765 var arg_max_results = 42; 4584 var arg_max_results = 42;
4766 var arg_start_index = 42; 4585 var arg_start_index = 42;
4767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4586 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4768 var path = (req.url).path; 4587 var path = (req.url).path;
4769 var pathOffset = 0; 4588 var pathOffset = 0;
4770 var index; 4589 var index;
4771 var subPart; 4590 var subPart;
4772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4591 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4773 pathOffset += 1; 4592 pathOffset += 1;
(...skipping 19 matching lines...) Expand all
4793 } 4612 }
4794 } 4613 }
4795 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 4614 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
4796 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 4615 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
4797 4616
4798 4617
4799 var h = { 4618 var h = {
4800 "content-type" : "application/json; charset=utf-8", 4619 "content-type" : "application/json; charset=utf-8",
4801 }; 4620 };
4802 var resp = convert.JSON.encode(buildAccountSummaries()); 4621 var resp = convert.JSON.encode(buildAccountSummaries());
4803 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4622 return new async.Future.value(stringResponse(200, h, resp));
4804 }), true); 4623 }), true);
4805 res.list(max_results: arg_max_results, start_index: arg_start_index).then( unittest.expectAsync(((api.AccountSummaries response) { 4624 res.list(max_results: arg_max_results, start_index: arg_start_index).then( unittest.expectAsync(((api.AccountSummaries response) {
4806 checkAccountSummaries(response); 4625 checkAccountSummaries(response);
4807 }))); 4626 })));
4808 }); 4627 });
4809 4628
4810 }); 4629 });
4811 4630
4812 4631
4813 unittest.group("resource-ManagementAccountUserLinksResourceApi", () { 4632 unittest.group("resource-ManagementAccountUserLinksResourceApi", () {
4814 unittest.test("method--delete", () { 4633 unittest.test("method--delete", () {
4815 4634
4816 var mock = new common_test.HttpServerMock(); 4635 var mock = new HttpServerMock();
4817 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.accountUserLinks; 4636 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.accountUserLinks;
4818 var arg_accountId = "foo"; 4637 var arg_accountId = "foo";
4819 var arg_linkId = "foo"; 4638 var arg_linkId = "foo";
4820 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4639 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4821 var path = (req.url).path; 4640 var path = (req.url).path;
4822 var pathOffset = 0; 4641 var pathOffset = 0;
4823 var index; 4642 var index;
4824 var subPart; 4643 var subPart;
4825 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4644 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4826 pathOffset += 1; 4645 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
4854 var keyvalue = part.split("="); 4673 var keyvalue = part.split("=");
4855 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4674 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4856 } 4675 }
4857 } 4676 }
4858 4677
4859 4678
4860 var h = { 4679 var h = {
4861 "content-type" : "application/json; charset=utf-8", 4680 "content-type" : "application/json; charset=utf-8",
4862 }; 4681 };
4863 var resp = ""; 4682 var resp = "";
4864 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4683 return new async.Future.value(stringResponse(200, h, resp));
4865 }), true); 4684 }), true);
4866 res.delete(arg_accountId, arg_linkId).then(unittest.expectAsync((_) {})); 4685 res.delete(arg_accountId, arg_linkId).then(unittest.expectAsync((_) {}));
4867 }); 4686 });
4868 4687
4869 unittest.test("method--insert", () { 4688 unittest.test("method--insert", () {
4870 4689
4871 var mock = new common_test.HttpServerMock(); 4690 var mock = new HttpServerMock();
4872 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.accountUserLinks; 4691 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.accountUserLinks;
4873 var arg_request = buildEntityUserLink(); 4692 var arg_request = buildEntityUserLink();
4874 var arg_accountId = "foo"; 4693 var arg_accountId = "foo";
4875 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4694 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4876 var obj = new api.EntityUserLink.fromJson(json); 4695 var obj = new api.EntityUserLink.fromJson(json);
4877 checkEntityUserLink(obj); 4696 checkEntityUserLink(obj);
4878 4697
4879 var path = (req.url).path; 4698 var path = (req.url).path;
4880 var pathOffset = 0; 4699 var pathOffset = 0;
4881 var index; 4700 var index;
(...skipping 27 matching lines...) Expand all
4909 var keyvalue = part.split("="); 4728 var keyvalue = part.split("=");
4910 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4729 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4911 } 4730 }
4912 } 4731 }
4913 4732
4914 4733
4915 var h = { 4734 var h = {
4916 "content-type" : "application/json; charset=utf-8", 4735 "content-type" : "application/json; charset=utf-8",
4917 }; 4736 };
4918 var resp = convert.JSON.encode(buildEntityUserLink()); 4737 var resp = convert.JSON.encode(buildEntityUserLink());
4919 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4738 return new async.Future.value(stringResponse(200, h, resp));
4920 }), true); 4739 }), true);
4921 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Ent ityUserLink response) { 4740 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Ent ityUserLink response) {
4922 checkEntityUserLink(response); 4741 checkEntityUserLink(response);
4923 }))); 4742 })));
4924 }); 4743 });
4925 4744
4926 unittest.test("method--list", () { 4745 unittest.test("method--list", () {
4927 4746
4928 var mock = new common_test.HttpServerMock(); 4747 var mock = new HttpServerMock();
4929 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.accountUserLinks; 4748 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.accountUserLinks;
4930 var arg_accountId = "foo"; 4749 var arg_accountId = "foo";
4931 var arg_max_results = 42; 4750 var arg_max_results = 42;
4932 var arg_start_index = 42; 4751 var arg_start_index = 42;
4933 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4752 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4934 var path = (req.url).path; 4753 var path = (req.url).path;
4935 var pathOffset = 0; 4754 var pathOffset = 0;
4936 var index; 4755 var index;
4937 var subPart; 4756 var subPart;
4938 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4757 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 27 matching lines...) Expand all
4966 } 4785 }
4967 } 4786 }
4968 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 4787 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
4969 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 4788 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
4970 4789
4971 4790
4972 var h = { 4791 var h = {
4973 "content-type" : "application/json; charset=utf-8", 4792 "content-type" : "application/json; charset=utf-8",
4974 }; 4793 };
4975 var resp = convert.JSON.encode(buildEntityUserLinks()); 4794 var resp = convert.JSON.encode(buildEntityUserLinks());
4976 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4795 return new async.Future.value(stringResponse(200, h, resp));
4977 }), true); 4796 }), true);
4978 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta rt_index).then(unittest.expectAsync(((api.EntityUserLinks response) { 4797 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta rt_index).then(unittest.expectAsync(((api.EntityUserLinks response) {
4979 checkEntityUserLinks(response); 4798 checkEntityUserLinks(response);
4980 }))); 4799 })));
4981 }); 4800 });
4982 4801
4983 unittest.test("method--update", () { 4802 unittest.test("method--update", () {
4984 4803
4985 var mock = new common_test.HttpServerMock(); 4804 var mock = new HttpServerMock();
4986 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.accountUserLinks; 4805 api.ManagementAccountUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.accountUserLinks;
4987 var arg_request = buildEntityUserLink(); 4806 var arg_request = buildEntityUserLink();
4988 var arg_accountId = "foo"; 4807 var arg_accountId = "foo";
4989 var arg_linkId = "foo"; 4808 var arg_linkId = "foo";
4990 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4809 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4991 var obj = new api.EntityUserLink.fromJson(json); 4810 var obj = new api.EntityUserLink.fromJson(json);
4992 checkEntityUserLink(obj); 4811 checkEntityUserLink(obj);
4993 4812
4994 var path = (req.url).path; 4813 var path = (req.url).path;
4995 var pathOffset = 0; 4814 var pathOffset = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
5027 var keyvalue = part.split("="); 4846 var keyvalue = part.split("=");
5028 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4847 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5029 } 4848 }
5030 } 4849 }
5031 4850
5032 4851
5033 var h = { 4852 var h = {
5034 "content-type" : "application/json; charset=utf-8", 4853 "content-type" : "application/json; charset=utf-8",
5035 }; 4854 };
5036 var resp = convert.JSON.encode(buildEntityUserLink()); 4855 var resp = convert.JSON.encode(buildEntityUserLink());
5037 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4856 return new async.Future.value(stringResponse(200, h, resp));
5038 }), true); 4857 }), true);
5039 res.update(arg_request, arg_accountId, arg_linkId).then(unittest.expectAsy nc(((api.EntityUserLink response) { 4858 res.update(arg_request, arg_accountId, arg_linkId).then(unittest.expectAsy nc(((api.EntityUserLink response) {
5040 checkEntityUserLink(response); 4859 checkEntityUserLink(response);
5041 }))); 4860 })));
5042 }); 4861 });
5043 4862
5044 }); 4863 });
5045 4864
5046 4865
5047 unittest.group("resource-ManagementAccountsResourceApi", () { 4866 unittest.group("resource-ManagementAccountsResourceApi", () {
5048 unittest.test("method--list", () { 4867 unittest.test("method--list", () {
5049 4868
5050 var mock = new common_test.HttpServerMock(); 4869 var mock = new HttpServerMock();
5051 api.ManagementAccountsResourceApi res = new api.AnalyticsApi(mock).managem ent.accounts; 4870 api.ManagementAccountsResourceApi res = new api.AnalyticsApi(mock).managem ent.accounts;
5052 var arg_max_results = 42; 4871 var arg_max_results = 42;
5053 var arg_start_index = 42; 4872 var arg_start_index = 42;
5054 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4873 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5055 var path = (req.url).path; 4874 var path = (req.url).path;
5056 var pathOffset = 0; 4875 var pathOffset = 0;
5057 var index; 4876 var index;
5058 var subPart; 4877 var subPart;
5059 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4878 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5060 pathOffset += 1; 4879 pathOffset += 1;
(...skipping 19 matching lines...) Expand all
5080 } 4899 }
5081 } 4900 }
5082 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 4901 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
5083 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 4902 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
5084 4903
5085 4904
5086 var h = { 4905 var h = {
5087 "content-type" : "application/json; charset=utf-8", 4906 "content-type" : "application/json; charset=utf-8",
5088 }; 4907 };
5089 var resp = convert.JSON.encode(buildAccounts()); 4908 var resp = convert.JSON.encode(buildAccounts());
5090 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4909 return new async.Future.value(stringResponse(200, h, resp));
5091 }), true); 4910 }), true);
5092 res.list(max_results: arg_max_results, start_index: arg_start_index).then( unittest.expectAsync(((api.Accounts response) { 4911 res.list(max_results: arg_max_results, start_index: arg_start_index).then( unittest.expectAsync(((api.Accounts response) {
5093 checkAccounts(response); 4912 checkAccounts(response);
5094 }))); 4913 })));
5095 }); 4914 });
5096 4915
5097 }); 4916 });
5098 4917
5099 4918
5100 unittest.group("resource-ManagementCustomDataSourcesResourceApi", () { 4919 unittest.group("resource-ManagementCustomDataSourcesResourceApi", () {
5101 unittest.test("method--list", () { 4920 unittest.test("method--list", () {
5102 4921
5103 var mock = new common_test.HttpServerMock(); 4922 var mock = new HttpServerMock();
5104 api.ManagementCustomDataSourcesResourceApi res = new api.AnalyticsApi(mock ).management.customDataSources; 4923 api.ManagementCustomDataSourcesResourceApi res = new api.AnalyticsApi(mock ).management.customDataSources;
5105 var arg_accountId = "foo"; 4924 var arg_accountId = "foo";
5106 var arg_webPropertyId = "foo"; 4925 var arg_webPropertyId = "foo";
5107 var arg_max_results = 42; 4926 var arg_max_results = 42;
5108 var arg_start_index = 42; 4927 var arg_start_index = 42;
5109 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4928 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5110 var path = (req.url).path; 4929 var path = (req.url).path;
5111 var pathOffset = 0; 4930 var pathOffset = 0;
5112 var index; 4931 var index;
5113 var subPart; 4932 var subPart;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5149 } 4968 }
5150 } 4969 }
5151 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 4970 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
5152 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 4971 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
5153 4972
5154 4973
5155 var h = { 4974 var h = {
5156 "content-type" : "application/json; charset=utf-8", 4975 "content-type" : "application/json; charset=utf-8",
5157 }; 4976 };
5158 var resp = convert.JSON.encode(buildCustomDataSources()); 4977 var resp = convert.JSON.encode(buildCustomDataSources());
5159 return new async.Future.value(common_test.stringResponse(200, h, resp)); 4978 return new async.Future.value(stringResponse(200, h, resp));
5160 }), true); 4979 }), true);
5161 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomDataSources r esponse) { 4980 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomDataSources r esponse) {
5162 checkCustomDataSources(response); 4981 checkCustomDataSources(response);
5163 }))); 4982 })));
5164 }); 4983 });
5165 4984
5166 }); 4985 });
5167 4986
5168 4987
5169 unittest.group("resource-ManagementCustomDimensionsResourceApi", () { 4988 unittest.group("resource-ManagementCustomDimensionsResourceApi", () {
5170 unittest.test("method--get", () { 4989 unittest.test("method--get", () {
5171 4990
5172 var mock = new common_test.HttpServerMock(); 4991 var mock = new HttpServerMock();
5173 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions; 4992 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions;
5174 var arg_accountId = "foo"; 4993 var arg_accountId = "foo";
5175 var arg_webPropertyId = "foo"; 4994 var arg_webPropertyId = "foo";
5176 var arg_customDimensionId = "foo"; 4995 var arg_customDimensionId = "foo";
5177 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4996 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5178 var path = (req.url).path; 4997 var path = (req.url).path;
5179 var pathOffset = 0; 4998 var pathOffset = 0;
5180 var index; 4999 var index;
5181 var subPart; 5000 var subPart;
5182 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5001 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5218 var keyvalue = part.split("="); 5037 var keyvalue = part.split("=");
5219 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5038 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5220 } 5039 }
5221 } 5040 }
5222 5041
5223 5042
5224 var h = { 5043 var h = {
5225 "content-type" : "application/json; charset=utf-8", 5044 "content-type" : "application/json; charset=utf-8",
5226 }; 5045 };
5227 var resp = convert.JSON.encode(buildCustomDimension()); 5046 var resp = convert.JSON.encode(buildCustomDimension());
5228 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5047 return new async.Future.value(stringResponse(200, h, resp));
5229 }), true); 5048 }), true);
5230 res.get(arg_accountId, arg_webPropertyId, arg_customDimensionId).then(unit test.expectAsync(((api.CustomDimension response) { 5049 res.get(arg_accountId, arg_webPropertyId, arg_customDimensionId).then(unit test.expectAsync(((api.CustomDimension response) {
5231 checkCustomDimension(response); 5050 checkCustomDimension(response);
5232 }))); 5051 })));
5233 }); 5052 });
5234 5053
5235 unittest.test("method--insert", () { 5054 unittest.test("method--insert", () {
5236 5055
5237 var mock = new common_test.HttpServerMock(); 5056 var mock = new HttpServerMock();
5238 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions; 5057 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions;
5239 var arg_request = buildCustomDimension(); 5058 var arg_request = buildCustomDimension();
5240 var arg_accountId = "foo"; 5059 var arg_accountId = "foo";
5241 var arg_webPropertyId = "foo"; 5060 var arg_webPropertyId = "foo";
5242 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5061 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5243 var obj = new api.CustomDimension.fromJson(json); 5062 var obj = new api.CustomDimension.fromJson(json);
5244 checkCustomDimension(obj); 5063 checkCustomDimension(obj);
5245 5064
5246 var path = (req.url).path; 5065 var path = (req.url).path;
5247 var pathOffset = 0; 5066 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5283 var keyvalue = part.split("="); 5102 var keyvalue = part.split("=");
5284 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5103 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5285 } 5104 }
5286 } 5105 }
5287 5106
5288 5107
5289 var h = { 5108 var h = {
5290 "content-type" : "application/json; charset=utf-8", 5109 "content-type" : "application/json; charset=utf-8",
5291 }; 5110 };
5292 var resp = convert.JSON.encode(buildCustomDimension()); 5111 var resp = convert.JSON.encode(buildCustomDimension());
5293 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5112 return new async.Future.value(stringResponse(200, h, resp));
5294 }), true); 5113 }), true);
5295 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.CustomDimension response) { 5114 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.CustomDimension response) {
5296 checkCustomDimension(response); 5115 checkCustomDimension(response);
5297 }))); 5116 })));
5298 }); 5117 });
5299 5118
5300 unittest.test("method--list", () { 5119 unittest.test("method--list", () {
5301 5120
5302 var mock = new common_test.HttpServerMock(); 5121 var mock = new HttpServerMock();
5303 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions; 5122 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions;
5304 var arg_accountId = "foo"; 5123 var arg_accountId = "foo";
5305 var arg_webPropertyId = "foo"; 5124 var arg_webPropertyId = "foo";
5306 var arg_max_results = 42; 5125 var arg_max_results = 42;
5307 var arg_start_index = 42; 5126 var arg_start_index = 42;
5308 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5127 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5309 var path = (req.url).path; 5128 var path = (req.url).path;
5310 var pathOffset = 0; 5129 var pathOffset = 0;
5311 var index; 5130 var index;
5312 var subPart; 5131 var subPart;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5348 } 5167 }
5349 } 5168 }
5350 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 5169 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
5351 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 5170 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
5352 5171
5353 5172
5354 var h = { 5173 var h = {
5355 "content-type" : "application/json; charset=utf-8", 5174 "content-type" : "application/json; charset=utf-8",
5356 }; 5175 };
5357 var resp = convert.JSON.encode(buildCustomDimensions()); 5176 var resp = convert.JSON.encode(buildCustomDimensions());
5358 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5177 return new async.Future.value(stringResponse(200, h, resp));
5359 }), true); 5178 }), true);
5360 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomDimensions re sponse) { 5179 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomDimensions re sponse) {
5361 checkCustomDimensions(response); 5180 checkCustomDimensions(response);
5362 }))); 5181 })));
5363 }); 5182 });
5364 5183
5365 unittest.test("method--patch", () { 5184 unittest.test("method--patch", () {
5366 5185
5367 var mock = new common_test.HttpServerMock(); 5186 var mock = new HttpServerMock();
5368 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions; 5187 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions;
5369 var arg_request = buildCustomDimension(); 5188 var arg_request = buildCustomDimension();
5370 var arg_accountId = "foo"; 5189 var arg_accountId = "foo";
5371 var arg_webPropertyId = "foo"; 5190 var arg_webPropertyId = "foo";
5372 var arg_customDimensionId = "foo"; 5191 var arg_customDimensionId = "foo";
5373 var arg_ignoreCustomDataSourceLinks = true; 5192 var arg_ignoreCustomDataSourceLinks = true;
5374 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5193 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5375 var obj = new api.CustomDimension.fromJson(json); 5194 var obj = new api.CustomDimension.fromJson(json);
5376 checkCustomDimension(obj); 5195 checkCustomDimension(obj);
5377 5196
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5419 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5238 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5420 } 5239 }
5421 } 5240 }
5422 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest. equals("$arg_ignoreCustomDataSourceLinks")); 5241 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest. equals("$arg_ignoreCustomDataSourceLinks"));
5423 5242
5424 5243
5425 var h = { 5244 var h = {
5426 "content-type" : "application/json; charset=utf-8", 5245 "content-type" : "application/json; charset=utf-8",
5427 }; 5246 };
5428 var resp = convert.JSON.encode(buildCustomDimension()); 5247 var resp = convert.JSON.encode(buildCustomDimension());
5429 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5248 return new async.Future.value(stringResponse(200, h, resp));
5430 }), true); 5249 }), true);
5431 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensi onId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittes t.expectAsync(((api.CustomDimension response) { 5250 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customDimensi onId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittes t.expectAsync(((api.CustomDimension response) {
5432 checkCustomDimension(response); 5251 checkCustomDimension(response);
5433 }))); 5252 })));
5434 }); 5253 });
5435 5254
5436 unittest.test("method--update", () { 5255 unittest.test("method--update", () {
5437 5256
5438 var mock = new common_test.HttpServerMock(); 5257 var mock = new HttpServerMock();
5439 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions; 5258 api.ManagementCustomDimensionsResourceApi res = new api.AnalyticsApi(mock) .management.customDimensions;
5440 var arg_request = buildCustomDimension(); 5259 var arg_request = buildCustomDimension();
5441 var arg_accountId = "foo"; 5260 var arg_accountId = "foo";
5442 var arg_webPropertyId = "foo"; 5261 var arg_webPropertyId = "foo";
5443 var arg_customDimensionId = "foo"; 5262 var arg_customDimensionId = "foo";
5444 var arg_ignoreCustomDataSourceLinks = true; 5263 var arg_ignoreCustomDataSourceLinks = true;
5445 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5264 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5446 var obj = new api.CustomDimension.fromJson(json); 5265 var obj = new api.CustomDimension.fromJson(json);
5447 checkCustomDimension(obj); 5266 checkCustomDimension(obj);
5448 5267
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5490 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5491 } 5310 }
5492 } 5311 }
5493 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest. equals("$arg_ignoreCustomDataSourceLinks")); 5312 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest. equals("$arg_ignoreCustomDataSourceLinks"));
5494 5313
5495 5314
5496 var h = { 5315 var h = {
5497 "content-type" : "application/json; charset=utf-8", 5316 "content-type" : "application/json; charset=utf-8",
5498 }; 5317 };
5499 var resp = convert.JSON.encode(buildCustomDimension()); 5318 var resp = convert.JSON.encode(buildCustomDimension());
5500 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5319 return new async.Future.value(stringResponse(200, h, resp));
5501 }), true); 5320 }), true);
5502 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customDimens ionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unitte st.expectAsync(((api.CustomDimension response) { 5321 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customDimens ionId, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unitte st.expectAsync(((api.CustomDimension response) {
5503 checkCustomDimension(response); 5322 checkCustomDimension(response);
5504 }))); 5323 })));
5505 }); 5324 });
5506 5325
5507 }); 5326 });
5508 5327
5509 5328
5510 unittest.group("resource-ManagementCustomMetricsResourceApi", () { 5329 unittest.group("resource-ManagementCustomMetricsResourceApi", () {
5511 unittest.test("method--get", () { 5330 unittest.test("method--get", () {
5512 5331
5513 var mock = new common_test.HttpServerMock(); 5332 var mock = new HttpServerMock();
5514 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics; 5333 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics;
5515 var arg_accountId = "foo"; 5334 var arg_accountId = "foo";
5516 var arg_webPropertyId = "foo"; 5335 var arg_webPropertyId = "foo";
5517 var arg_customMetricId = "foo"; 5336 var arg_customMetricId = "foo";
5518 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5337 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5519 var path = (req.url).path; 5338 var path = (req.url).path;
5520 var pathOffset = 0; 5339 var pathOffset = 0;
5521 var index; 5340 var index;
5522 var subPart; 5341 var subPart;
5523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 5342 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5559 var keyvalue = part.split("="); 5378 var keyvalue = part.split("=");
5560 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5379 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5561 } 5380 }
5562 } 5381 }
5563 5382
5564 5383
5565 var h = { 5384 var h = {
5566 "content-type" : "application/json; charset=utf-8", 5385 "content-type" : "application/json; charset=utf-8",
5567 }; 5386 };
5568 var resp = convert.JSON.encode(buildCustomMetric()); 5387 var resp = convert.JSON.encode(buildCustomMetric());
5569 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5388 return new async.Future.value(stringResponse(200, h, resp));
5570 }), true); 5389 }), true);
5571 res.get(arg_accountId, arg_webPropertyId, arg_customMetricId).then(unittes t.expectAsync(((api.CustomMetric response) { 5390 res.get(arg_accountId, arg_webPropertyId, arg_customMetricId).then(unittes t.expectAsync(((api.CustomMetric response) {
5572 checkCustomMetric(response); 5391 checkCustomMetric(response);
5573 }))); 5392 })));
5574 }); 5393 });
5575 5394
5576 unittest.test("method--insert", () { 5395 unittest.test("method--insert", () {
5577 5396
5578 var mock = new common_test.HttpServerMock(); 5397 var mock = new HttpServerMock();
5579 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics; 5398 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics;
5580 var arg_request = buildCustomMetric(); 5399 var arg_request = buildCustomMetric();
5581 var arg_accountId = "foo"; 5400 var arg_accountId = "foo";
5582 var arg_webPropertyId = "foo"; 5401 var arg_webPropertyId = "foo";
5583 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5402 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5584 var obj = new api.CustomMetric.fromJson(json); 5403 var obj = new api.CustomMetric.fromJson(json);
5585 checkCustomMetric(obj); 5404 checkCustomMetric(obj);
5586 5405
5587 var path = (req.url).path; 5406 var path = (req.url).path;
5588 var pathOffset = 0; 5407 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5624 var keyvalue = part.split("="); 5443 var keyvalue = part.split("=");
5625 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5444 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5626 } 5445 }
5627 } 5446 }
5628 5447
5629 5448
5630 var h = { 5449 var h = {
5631 "content-type" : "application/json; charset=utf-8", 5450 "content-type" : "application/json; charset=utf-8",
5632 }; 5451 };
5633 var resp = convert.JSON.encode(buildCustomMetric()); 5452 var resp = convert.JSON.encode(buildCustomMetric());
5634 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5453 return new async.Future.value(stringResponse(200, h, resp));
5635 }), true); 5454 }), true);
5636 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.CustomMetric response) { 5455 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.CustomMetric response) {
5637 checkCustomMetric(response); 5456 checkCustomMetric(response);
5638 }))); 5457 })));
5639 }); 5458 });
5640 5459
5641 unittest.test("method--list", () { 5460 unittest.test("method--list", () {
5642 5461
5643 var mock = new common_test.HttpServerMock(); 5462 var mock = new HttpServerMock();
5644 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics; 5463 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics;
5645 var arg_accountId = "foo"; 5464 var arg_accountId = "foo";
5646 var arg_webPropertyId = "foo"; 5465 var arg_webPropertyId = "foo";
5647 var arg_max_results = 42; 5466 var arg_max_results = 42;
5648 var arg_start_index = 42; 5467 var arg_start_index = 42;
5649 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5468 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5650 var path = (req.url).path; 5469 var path = (req.url).path;
5651 var pathOffset = 0; 5470 var pathOffset = 0;
5652 var index; 5471 var index;
5653 var subPart; 5472 var subPart;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
5689 } 5508 }
5690 } 5509 }
5691 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 5510 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
5692 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 5511 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
5693 5512
5694 5513
5695 var h = { 5514 var h = {
5696 "content-type" : "application/json; charset=utf-8", 5515 "content-type" : "application/json; charset=utf-8",
5697 }; 5516 };
5698 var resp = convert.JSON.encode(buildCustomMetrics()); 5517 var resp = convert.JSON.encode(buildCustomMetrics());
5699 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5518 return new async.Future.value(stringResponse(200, h, resp));
5700 }), true); 5519 }), true);
5701 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomMetrics respo nse) { 5520 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.CustomMetrics respo nse) {
5702 checkCustomMetrics(response); 5521 checkCustomMetrics(response);
5703 }))); 5522 })));
5704 }); 5523 });
5705 5524
5706 unittest.test("method--patch", () { 5525 unittest.test("method--patch", () {
5707 5526
5708 var mock = new common_test.HttpServerMock(); 5527 var mock = new HttpServerMock();
5709 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics; 5528 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics;
5710 var arg_request = buildCustomMetric(); 5529 var arg_request = buildCustomMetric();
5711 var arg_accountId = "foo"; 5530 var arg_accountId = "foo";
5712 var arg_webPropertyId = "foo"; 5531 var arg_webPropertyId = "foo";
5713 var arg_customMetricId = "foo"; 5532 var arg_customMetricId = "foo";
5714 var arg_ignoreCustomDataSourceLinks = true; 5533 var arg_ignoreCustomDataSourceLinks = true;
5715 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5534 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5716 var obj = new api.CustomMetric.fromJson(json); 5535 var obj = new api.CustomMetric.fromJson(json);
5717 checkCustomMetric(obj); 5536 checkCustomMetric(obj);
5718 5537
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5760 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5579 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5761 } 5580 }
5762 } 5581 }
5763 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest. equals("$arg_ignoreCustomDataSourceLinks")); 5582 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest. equals("$arg_ignoreCustomDataSourceLinks"));
5764 5583
5765 5584
5766 var h = { 5585 var h = {
5767 "content-type" : "application/json; charset=utf-8", 5586 "content-type" : "application/json; charset=utf-8",
5768 }; 5587 };
5769 var resp = convert.JSON.encode(buildCustomMetric()); 5588 var resp = convert.JSON.encode(buildCustomMetric());
5770 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5589 return new async.Future.value(stringResponse(200, h, resp));
5771 }), true); 5590 }), true);
5772 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricI d, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.e xpectAsync(((api.CustomMetric response) { 5591 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_customMetricI d, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest.e xpectAsync(((api.CustomMetric response) {
5773 checkCustomMetric(response); 5592 checkCustomMetric(response);
5774 }))); 5593 })));
5775 }); 5594 });
5776 5595
5777 unittest.test("method--update", () { 5596 unittest.test("method--update", () {
5778 5597
5779 var mock = new common_test.HttpServerMock(); 5598 var mock = new HttpServerMock();
5780 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics; 5599 api.ManagementCustomMetricsResourceApi res = new api.AnalyticsApi(mock).ma nagement.customMetrics;
5781 var arg_request = buildCustomMetric(); 5600 var arg_request = buildCustomMetric();
5782 var arg_accountId = "foo"; 5601 var arg_accountId = "foo";
5783 var arg_webPropertyId = "foo"; 5602 var arg_webPropertyId = "foo";
5784 var arg_customMetricId = "foo"; 5603 var arg_customMetricId = "foo";
5785 var arg_ignoreCustomDataSourceLinks = true; 5604 var arg_ignoreCustomDataSourceLinks = true;
5786 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5605 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5787 var obj = new api.CustomMetric.fromJson(json); 5606 var obj = new api.CustomMetric.fromJson(json);
5788 checkCustomMetric(obj); 5607 checkCustomMetric(obj);
5789 5608
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
5831 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5650 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5832 } 5651 }
5833 } 5652 }
5834 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest. equals("$arg_ignoreCustomDataSourceLinks")); 5653 unittest.expect(queryMap["ignoreCustomDataSourceLinks"].first, unittest. equals("$arg_ignoreCustomDataSourceLinks"));
5835 5654
5836 5655
5837 var h = { 5656 var h = {
5838 "content-type" : "application/json; charset=utf-8", 5657 "content-type" : "application/json; charset=utf-8",
5839 }; 5658 };
5840 var resp = convert.JSON.encode(buildCustomMetric()); 5659 var resp = convert.JSON.encode(buildCustomMetric());
5841 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5660 return new async.Future.value(stringResponse(200, h, resp));
5842 }), true); 5661 }), true);
5843 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customMetric Id, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest. expectAsync(((api.CustomMetric response) { 5662 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_customMetric Id, ignoreCustomDataSourceLinks: arg_ignoreCustomDataSourceLinks).then(unittest. expectAsync(((api.CustomMetric response) {
5844 checkCustomMetric(response); 5663 checkCustomMetric(response);
5845 }))); 5664 })));
5846 }); 5665 });
5847 5666
5848 }); 5667 });
5849 5668
5850 5669
5851 unittest.group("resource-ManagementDailyUploadsResourceApi", () {
5852 unittest.test("method--delete", () {
5853
5854 var mock = new common_test.HttpServerMock();
5855 api.ManagementDailyUploadsResourceApi res = new api.AnalyticsApi(mock).man agement.dailyUploads;
5856 var arg_accountId = "foo";
5857 var arg_webPropertyId = "foo";
5858 var arg_customDataSourceId = "foo";
5859 var arg_date = "foo";
5860 var arg_type = "foo";
5861 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5862 var path = (req.url).path;
5863 var pathOffset = 0;
5864 var index;
5865 var subPart;
5866 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5867 pathOffset += 1;
5868 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("analytics/v3/"));
5869 pathOffset += 13;
5870 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq uals("management/accounts/"));
5871 pathOffset += 20;
5872 index = path.indexOf("/webproperties/", pathOffset);
5873 unittest.expect(index >= 0, unittest.isTrue);
5874 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5875 pathOffset = index;
5876 unittest.expect(subPart, unittest.equals("$arg_accountId"));
5877 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("/webproperties/"));
5878 pathOffset += 15;
5879 index = path.indexOf("/customDataSources/", pathOffset);
5880 unittest.expect(index >= 0, unittest.isTrue);
5881 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5882 pathOffset = index;
5883 unittest.expect(subPart, unittest.equals("$arg_webPropertyId"));
5884 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("/customDataSources/"));
5885 pathOffset += 19;
5886 index = path.indexOf("/dailyUploads/", pathOffset);
5887 unittest.expect(index >= 0, unittest.isTrue);
5888 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5889 pathOffset = index;
5890 unittest.expect(subPart, unittest.equals("$arg_customDataSourceId"));
5891 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("/dailyUploads/"));
5892 pathOffset += 14;
5893 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
5894 pathOffset = path.length;
5895 unittest.expect(subPart, unittest.equals("$arg_date"));
5896
5897 var query = (req.url).query;
5898 var queryOffset = 0;
5899 var queryMap = {};
5900 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5901 parseBool(n) {
5902 if (n == "true") return true;
5903 if (n == "false") return false;
5904 if (n == null) return null;
5905 throw new core.ArgumentError("Invalid boolean: $n");
5906 }
5907 if (query.length > 0) {
5908 for (var part in query.split("&")) {
5909 var keyvalue = part.split("=");
5910 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5911 }
5912 }
5913 unittest.expect(queryMap["type"].first, unittest.equals(arg_type));
5914
5915
5916 var h = {
5917 "content-type" : "application/json; charset=utf-8",
5918 };
5919 var resp = "";
5920 return new async.Future.value(common_test.stringResponse(200, h, resp));
5921 }), true);
5922 res.delete(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_d ate, arg_type).then(unittest.expectAsync((_) {}));
5923 });
5924
5925 unittest.test("method--list", () {
5926
5927 var mock = new common_test.HttpServerMock();
5928 api.ManagementDailyUploadsResourceApi res = new api.AnalyticsApi(mock).man agement.dailyUploads;
5929 var arg_accountId = "foo";
5930 var arg_webPropertyId = "foo";
5931 var arg_customDataSourceId = "foo";
5932 var arg_start_date = "foo";
5933 var arg_end_date = "foo";
5934 var arg_max_results = 42;
5935 var arg_start_index = 42;
5936 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
5937 var path = (req.url).path;
5938 var pathOffset = 0;
5939 var index;
5940 var subPart;
5941 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
5942 pathOffset += 1;
5943 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("analytics/v3/"));
5944 pathOffset += 13;
5945 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq uals("management/accounts/"));
5946 pathOffset += 20;
5947 index = path.indexOf("/webproperties/", pathOffset);
5948 unittest.expect(index >= 0, unittest.isTrue);
5949 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5950 pathOffset = index;
5951 unittest.expect(subPart, unittest.equals("$arg_accountId"));
5952 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("/webproperties/"));
5953 pathOffset += 15;
5954 index = path.indexOf("/customDataSources/", pathOffset);
5955 unittest.expect(index >= 0, unittest.isTrue);
5956 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5957 pathOffset = index;
5958 unittest.expect(subPart, unittest.equals("$arg_webPropertyId"));
5959 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("/customDataSources/"));
5960 pathOffset += 19;
5961 index = path.indexOf("/dailyUploads", pathOffset);
5962 unittest.expect(index >= 0, unittest.isTrue);
5963 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
5964 pathOffset = index;
5965 unittest.expect(subPart, unittest.equals("$arg_customDataSourceId"));
5966 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("/dailyUploads"));
5967 pathOffset += 13;
5968
5969 var query = (req.url).query;
5970 var queryOffset = 0;
5971 var queryMap = {};
5972 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
5973 parseBool(n) {
5974 if (n == "true") return true;
5975 if (n == "false") return false;
5976 if (n == null) return null;
5977 throw new core.ArgumentError("Invalid boolean: $n");
5978 }
5979 if (query.length > 0) {
5980 for (var part in query.split("&")) {
5981 var keyvalue = part.split("=");
5982 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
5983 }
5984 }
5985 unittest.expect(queryMap["start-date"].first, unittest.equals(arg_start_ date));
5986 unittest.expect(queryMap["end-date"].first, unittest.equals(arg_end_date ));
5987 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
5988 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
5989
5990
5991 var h = {
5992 "content-type" : "application/json; charset=utf-8",
5993 };
5994 var resp = convert.JSON.encode(buildDailyUploads());
5995 return new async.Future.value(common_test.stringResponse(200, h, resp));
5996 }), true);
5997 res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_sta rt_date, arg_end_date, max_results: arg_max_results, start_index: arg_start_inde x).then(unittest.expectAsync(((api.DailyUploads response) {
5998 checkDailyUploads(response);
5999 })));
6000 });
6001
6002 unittest.test("method--upload", () {
6003 // TODO: Implement tests for media upload;
6004 // TODO: Implement tests for media download;
6005
6006 var mock = new common_test.HttpServerMock();
6007 api.ManagementDailyUploadsResourceApi res = new api.AnalyticsApi(mock).man agement.dailyUploads;
6008 var arg_accountId = "foo";
6009 var arg_webPropertyId = "foo";
6010 var arg_customDataSourceId = "foo";
6011 var arg_date = "foo";
6012 var arg_appendNumber = 42;
6013 var arg_type = "foo";
6014 var arg_reset = true;
6015 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6016 var path = (req.url).path;
6017 var pathOffset = 0;
6018 var index;
6019 var subPart;
6020 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
6021 pathOffset += 1;
6022 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("analytics/v3/"));
6023 pathOffset += 13;
6024 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq uals("management/accounts/"));
6025 pathOffset += 20;
6026 index = path.indexOf("/webproperties/", pathOffset);
6027 unittest.expect(index >= 0, unittest.isTrue);
6028 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
6029 pathOffset = index;
6030 unittest.expect(subPart, unittest.equals("$arg_accountId"));
6031 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("/webproperties/"));
6032 pathOffset += 15;
6033 index = path.indexOf("/customDataSources/", pathOffset);
6034 unittest.expect(index >= 0, unittest.isTrue);
6035 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
6036 pathOffset = index;
6037 unittest.expect(subPart, unittest.equals("$arg_webPropertyId"));
6038 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("/customDataSources/"));
6039 pathOffset += 19;
6040 index = path.indexOf("/dailyUploads/", pathOffset);
6041 unittest.expect(index >= 0, unittest.isTrue);
6042 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
6043 pathOffset = index;
6044 unittest.expect(subPart, unittest.equals("$arg_customDataSourceId"));
6045 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("/dailyUploads/"));
6046 pathOffset += 14;
6047 index = path.indexOf("/uploads", pathOffset);
6048 unittest.expect(index >= 0, unittest.isTrue);
6049 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
6050 pathOffset = index;
6051 unittest.expect(subPart, unittest.equals("$arg_date"));
6052 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("/uploads"));
6053 pathOffset += 8;
6054
6055 var query = (req.url).query;
6056 var queryOffset = 0;
6057 var queryMap = {};
6058 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
6059 parseBool(n) {
6060 if (n == "true") return true;
6061 if (n == "false") return false;
6062 if (n == null) return null;
6063 throw new core.ArgumentError("Invalid boolean: $n");
6064 }
6065 if (query.length > 0) {
6066 for (var part in query.split("&")) {
6067 var keyvalue = part.split("=");
6068 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6069 }
6070 }
6071 unittest.expect(core.int.parse(queryMap["appendNumber"].first), unittest .equals(arg_appendNumber));
6072 unittest.expect(queryMap["type"].first, unittest.equals(arg_type));
6073 unittest.expect(queryMap["reset"].first, unittest.equals("$arg_reset"));
6074
6075
6076 var h = {
6077 "content-type" : "application/json; charset=utf-8",
6078 };
6079 var resp = convert.JSON.encode(buildDailyUploadAppend());
6080 return new async.Future.value(common_test.stringResponse(200, h, resp));
6081 }), true);
6082 res.upload(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_d ate, arg_appendNumber, arg_type, reset: arg_reset).then(unittest.expectAsync(((a pi.DailyUploadAppend response) {
6083 checkDailyUploadAppend(response);
6084 })));
6085 });
6086
6087 });
6088
6089
6090 unittest.group("resource-ManagementExperimentsResourceApi", () { 5670 unittest.group("resource-ManagementExperimentsResourceApi", () {
6091 unittest.test("method--delete", () { 5671 unittest.test("method--delete", () {
6092 5672
6093 var mock = new common_test.HttpServerMock(); 5673 var mock = new HttpServerMock();
6094 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments; 5674 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments;
6095 var arg_accountId = "foo"; 5675 var arg_accountId = "foo";
6096 var arg_webPropertyId = "foo"; 5676 var arg_webPropertyId = "foo";
6097 var arg_profileId = "foo"; 5677 var arg_profileId = "foo";
6098 var arg_experimentId = "foo"; 5678 var arg_experimentId = "foo";
6099 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5679 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6100 var path = (req.url).path; 5680 var path = (req.url).path;
6101 var pathOffset = 0; 5681 var pathOffset = 0;
6102 var index; 5682 var index;
6103 var subPart; 5683 var subPart;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
6147 var keyvalue = part.split("="); 5727 var keyvalue = part.split("=");
6148 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5728 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6149 } 5729 }
6150 } 5730 }
6151 5731
6152 5732
6153 var h = { 5733 var h = {
6154 "content-type" : "application/json; charset=utf-8", 5734 "content-type" : "application/json; charset=utf-8",
6155 }; 5735 };
6156 var resp = ""; 5736 var resp = "";
6157 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5737 return new async.Future.value(stringResponse(200, h, resp));
6158 }), true); 5738 }), true);
6159 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_experiment Id).then(unittest.expectAsync((_) {})); 5739 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_experiment Id).then(unittest.expectAsync((_) {}));
6160 }); 5740 });
6161 5741
6162 unittest.test("method--get", () { 5742 unittest.test("method--get", () {
6163 5743
6164 var mock = new common_test.HttpServerMock(); 5744 var mock = new HttpServerMock();
6165 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments; 5745 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments;
6166 var arg_accountId = "foo"; 5746 var arg_accountId = "foo";
6167 var arg_webPropertyId = "foo"; 5747 var arg_webPropertyId = "foo";
6168 var arg_profileId = "foo"; 5748 var arg_profileId = "foo";
6169 var arg_experimentId = "foo"; 5749 var arg_experimentId = "foo";
6170 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5750 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6171 var path = (req.url).path; 5751 var path = (req.url).path;
6172 var pathOffset = 0; 5752 var pathOffset = 0;
6173 var index; 5753 var index;
6174 var subPart; 5754 var subPart;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
6218 var keyvalue = part.split("="); 5798 var keyvalue = part.split("=");
6219 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5799 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6220 } 5800 }
6221 } 5801 }
6222 5802
6223 5803
6224 var h = { 5804 var h = {
6225 "content-type" : "application/json; charset=utf-8", 5805 "content-type" : "application/json; charset=utf-8",
6226 }; 5806 };
6227 var resp = convert.JSON.encode(buildExperiment()); 5807 var resp = convert.JSON.encode(buildExperiment());
6228 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5808 return new async.Future.value(stringResponse(200, h, resp));
6229 }), true); 5809 }), true);
6230 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId) .then(unittest.expectAsync(((api.Experiment response) { 5810 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_experimentId) .then(unittest.expectAsync(((api.Experiment response) {
6231 checkExperiment(response); 5811 checkExperiment(response);
6232 }))); 5812 })));
6233 }); 5813 });
6234 5814
6235 unittest.test("method--insert", () { 5815 unittest.test("method--insert", () {
6236 5816
6237 var mock = new common_test.HttpServerMock(); 5817 var mock = new HttpServerMock();
6238 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments; 5818 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments;
6239 var arg_request = buildExperiment(); 5819 var arg_request = buildExperiment();
6240 var arg_accountId = "foo"; 5820 var arg_accountId = "foo";
6241 var arg_webPropertyId = "foo"; 5821 var arg_webPropertyId = "foo";
6242 var arg_profileId = "foo"; 5822 var arg_profileId = "foo";
6243 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5823 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6244 var obj = new api.Experiment.fromJson(json); 5824 var obj = new api.Experiment.fromJson(json);
6245 checkExperiment(obj); 5825 checkExperiment(obj);
6246 5826
6247 var path = (req.url).path; 5827 var path = (req.url).path;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
6291 var keyvalue = part.split("="); 5871 var keyvalue = part.split("=");
6292 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 5872 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6293 } 5873 }
6294 } 5874 }
6295 5875
6296 5876
6297 var h = { 5877 var h = {
6298 "content-type" : "application/json; charset=utf-8", 5878 "content-type" : "application/json; charset=utf-8",
6299 }; 5879 };
6300 var resp = convert.JSON.encode(buildExperiment()); 5880 var resp = convert.JSON.encode(buildExperiment());
6301 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5881 return new async.Future.value(stringResponse(200, h, resp));
6302 }), true); 5882 }), true);
6303 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.Experiment response) { 5883 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.Experiment response) {
6304 checkExperiment(response); 5884 checkExperiment(response);
6305 }))); 5885 })));
6306 }); 5886 });
6307 5887
6308 unittest.test("method--list", () { 5888 unittest.test("method--list", () {
6309 5889
6310 var mock = new common_test.HttpServerMock(); 5890 var mock = new HttpServerMock();
6311 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments; 5891 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments;
6312 var arg_accountId = "foo"; 5892 var arg_accountId = "foo";
6313 var arg_webPropertyId = "foo"; 5893 var arg_webPropertyId = "foo";
6314 var arg_profileId = "foo"; 5894 var arg_profileId = "foo";
6315 var arg_max_results = 42; 5895 var arg_max_results = 42;
6316 var arg_start_index = 42; 5896 var arg_start_index = 42;
6317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5897 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6318 var path = (req.url).path; 5898 var path = (req.url).path;
6319 var pathOffset = 0; 5899 var pathOffset = 0;
6320 var index; 5900 var index;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
6364 } 5944 }
6365 } 5945 }
6366 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 5946 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
6367 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 5947 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
6368 5948
6369 5949
6370 var h = { 5950 var h = {
6371 "content-type" : "application/json; charset=utf-8", 5951 "content-type" : "application/json; charset=utf-8",
6372 }; 5952 };
6373 var resp = convert.JSON.encode(buildExperiments()); 5953 var resp = convert.JSON.encode(buildExperiments());
6374 return new async.Future.value(common_test.stringResponse(200, h, resp)); 5954 return new async.Future.value(stringResponse(200, h, resp));
6375 }), true); 5955 }), true);
6376 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Expe riments response) { 5956 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Expe riments response) {
6377 checkExperiments(response); 5957 checkExperiments(response);
6378 }))); 5958 })));
6379 }); 5959 });
6380 5960
6381 unittest.test("method--patch", () { 5961 unittest.test("method--patch", () {
6382 5962
6383 var mock = new common_test.HttpServerMock(); 5963 var mock = new HttpServerMock();
6384 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments; 5964 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments;
6385 var arg_request = buildExperiment(); 5965 var arg_request = buildExperiment();
6386 var arg_accountId = "foo"; 5966 var arg_accountId = "foo";
6387 var arg_webPropertyId = "foo"; 5967 var arg_webPropertyId = "foo";
6388 var arg_profileId = "foo"; 5968 var arg_profileId = "foo";
6389 var arg_experimentId = "foo"; 5969 var arg_experimentId = "foo";
6390 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 5970 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6391 var obj = new api.Experiment.fromJson(json); 5971 var obj = new api.Experiment.fromJson(json);
6392 checkExperiment(obj); 5972 checkExperiment(obj);
6393 5973
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
6441 var keyvalue = part.split("="); 6021 var keyvalue = part.split("=");
6442 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6022 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6443 } 6023 }
6444 } 6024 }
6445 6025
6446 6026
6447 var h = { 6027 var h = {
6448 "content-type" : "application/json; charset=utf-8", 6028 "content-type" : "application/json; charset=utf-8",
6449 }; 6029 };
6450 var resp = convert.JSON.encode(buildExperiment()); 6030 var resp = convert.JSON.encode(buildExperiment());
6451 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6031 return new async.Future.value(stringResponse(200, h, resp));
6452 }), true); 6032 }), true);
6453 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar g_experimentId).then(unittest.expectAsync(((api.Experiment response) { 6033 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar g_experimentId).then(unittest.expectAsync(((api.Experiment response) {
6454 checkExperiment(response); 6034 checkExperiment(response);
6455 }))); 6035 })));
6456 }); 6036 });
6457 6037
6458 unittest.test("method--update", () { 6038 unittest.test("method--update", () {
6459 6039
6460 var mock = new common_test.HttpServerMock(); 6040 var mock = new HttpServerMock();
6461 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments; 6041 api.ManagementExperimentsResourceApi res = new api.AnalyticsApi(mock).mana gement.experiments;
6462 var arg_request = buildExperiment(); 6042 var arg_request = buildExperiment();
6463 var arg_accountId = "foo"; 6043 var arg_accountId = "foo";
6464 var arg_webPropertyId = "foo"; 6044 var arg_webPropertyId = "foo";
6465 var arg_profileId = "foo"; 6045 var arg_profileId = "foo";
6466 var arg_experimentId = "foo"; 6046 var arg_experimentId = "foo";
6467 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6047 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6468 var obj = new api.Experiment.fromJson(json); 6048 var obj = new api.Experiment.fromJson(json);
6469 checkExperiment(obj); 6049 checkExperiment(obj);
6470 6050
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
6518 var keyvalue = part.split("="); 6098 var keyvalue = part.split("=");
6519 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6099 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6520 } 6100 }
6521 } 6101 }
6522 6102
6523 6103
6524 var h = { 6104 var h = {
6525 "content-type" : "application/json; charset=utf-8", 6105 "content-type" : "application/json; charset=utf-8",
6526 }; 6106 };
6527 var resp = convert.JSON.encode(buildExperiment()); 6107 var resp = convert.JSON.encode(buildExperiment());
6528 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6108 return new async.Future.value(stringResponse(200, h, resp));
6529 }), true); 6109 }), true);
6530 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a rg_experimentId).then(unittest.expectAsync(((api.Experiment response) { 6110 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a rg_experimentId).then(unittest.expectAsync(((api.Experiment response) {
6531 checkExperiment(response); 6111 checkExperiment(response);
6532 }))); 6112 })));
6533 }); 6113 });
6534 6114
6535 }); 6115 });
6536 6116
6537 6117
6538 unittest.group("resource-ManagementFiltersResourceApi", () { 6118 unittest.group("resource-ManagementFiltersResourceApi", () {
6539 unittest.test("method--delete", () { 6119 unittest.test("method--delete", () {
6540 6120
6541 var mock = new common_test.HttpServerMock(); 6121 var mock = new HttpServerMock();
6542 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters; 6122 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters;
6543 var arg_accountId = "foo"; 6123 var arg_accountId = "foo";
6544 var arg_filterId = "foo"; 6124 var arg_filterId = "foo";
6545 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6125 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6546 var path = (req.url).path; 6126 var path = (req.url).path;
6547 var pathOffset = 0; 6127 var pathOffset = 0;
6548 var index; 6128 var index;
6549 var subPart; 6129 var subPart;
6550 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 6130 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
6551 pathOffset += 1; 6131 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
6579 var keyvalue = part.split("="); 6159 var keyvalue = part.split("=");
6580 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6160 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6581 } 6161 }
6582 } 6162 }
6583 6163
6584 6164
6585 var h = { 6165 var h = {
6586 "content-type" : "application/json; charset=utf-8", 6166 "content-type" : "application/json; charset=utf-8",
6587 }; 6167 };
6588 var resp = convert.JSON.encode(buildFilter()); 6168 var resp = convert.JSON.encode(buildFilter());
6589 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6169 return new async.Future.value(stringResponse(200, h, resp));
6590 }), true); 6170 }), true);
6591 res.delete(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Fi lter response) { 6171 res.delete(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Fi lter response) {
6592 checkFilter(response); 6172 checkFilter(response);
6593 }))); 6173 })));
6594 }); 6174 });
6595 6175
6596 unittest.test("method--get", () { 6176 unittest.test("method--get", () {
6597 6177
6598 var mock = new common_test.HttpServerMock(); 6178 var mock = new HttpServerMock();
6599 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters; 6179 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters;
6600 var arg_accountId = "foo"; 6180 var arg_accountId = "foo";
6601 var arg_filterId = "foo"; 6181 var arg_filterId = "foo";
6602 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6182 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6603 var path = (req.url).path; 6183 var path = (req.url).path;
6604 var pathOffset = 0; 6184 var pathOffset = 0;
6605 var index; 6185 var index;
6606 var subPart; 6186 var subPart;
6607 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 6187 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
6608 pathOffset += 1; 6188 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
6636 var keyvalue = part.split("="); 6216 var keyvalue = part.split("=");
6637 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6217 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6638 } 6218 }
6639 } 6219 }
6640 6220
6641 6221
6642 var h = { 6222 var h = {
6643 "content-type" : "application/json; charset=utf-8", 6223 "content-type" : "application/json; charset=utf-8",
6644 }; 6224 };
6645 var resp = convert.JSON.encode(buildFilter()); 6225 var resp = convert.JSON.encode(buildFilter());
6646 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6226 return new async.Future.value(stringResponse(200, h, resp));
6647 }), true); 6227 }), true);
6648 res.get(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filte r response) { 6228 res.get(arg_accountId, arg_filterId).then(unittest.expectAsync(((api.Filte r response) {
6649 checkFilter(response); 6229 checkFilter(response);
6650 }))); 6230 })));
6651 }); 6231 });
6652 6232
6653 unittest.test("method--insert", () { 6233 unittest.test("method--insert", () {
6654 6234
6655 var mock = new common_test.HttpServerMock(); 6235 var mock = new HttpServerMock();
6656 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters; 6236 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters;
6657 var arg_request = buildFilter(); 6237 var arg_request = buildFilter();
6658 var arg_accountId = "foo"; 6238 var arg_accountId = "foo";
6659 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6239 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6660 var obj = new api.Filter.fromJson(json); 6240 var obj = new api.Filter.fromJson(json);
6661 checkFilter(obj); 6241 checkFilter(obj);
6662 6242
6663 var path = (req.url).path; 6243 var path = (req.url).path;
6664 var pathOffset = 0; 6244 var pathOffset = 0;
6665 var index; 6245 var index;
(...skipping 27 matching lines...) Expand all
6693 var keyvalue = part.split("="); 6273 var keyvalue = part.split("=");
6694 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6274 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6695 } 6275 }
6696 } 6276 }
6697 6277
6698 6278
6699 var h = { 6279 var h = {
6700 "content-type" : "application/json; charset=utf-8", 6280 "content-type" : "application/json; charset=utf-8",
6701 }; 6281 };
6702 var resp = convert.JSON.encode(buildFilter()); 6282 var resp = convert.JSON.encode(buildFilter());
6703 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6283 return new async.Future.value(stringResponse(200, h, resp));
6704 }), true); 6284 }), true);
6705 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Fil ter response) { 6285 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Fil ter response) {
6706 checkFilter(response); 6286 checkFilter(response);
6707 }))); 6287 })));
6708 }); 6288 });
6709 6289
6710 unittest.test("method--list", () { 6290 unittest.test("method--list", () {
6711 6291
6712 var mock = new common_test.HttpServerMock(); 6292 var mock = new HttpServerMock();
6713 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters; 6293 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters;
6714 var arg_accountId = "foo"; 6294 var arg_accountId = "foo";
6715 var arg_max_results = 42; 6295 var arg_max_results = 42;
6716 var arg_start_index = 42; 6296 var arg_start_index = 42;
6717 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6297 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6718 var path = (req.url).path; 6298 var path = (req.url).path;
6719 var pathOffset = 0; 6299 var pathOffset = 0;
6720 var index; 6300 var index;
6721 var subPart; 6301 var subPart;
6722 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 6302 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 27 matching lines...) Expand all
6750 } 6330 }
6751 } 6331 }
6752 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 6332 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
6753 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 6333 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
6754 6334
6755 6335
6756 var h = { 6336 var h = {
6757 "content-type" : "application/json; charset=utf-8", 6337 "content-type" : "application/json; charset=utf-8",
6758 }; 6338 };
6759 var resp = convert.JSON.encode(buildFilters()); 6339 var resp = convert.JSON.encode(buildFilters());
6760 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6340 return new async.Future.value(stringResponse(200, h, resp));
6761 }), true); 6341 }), true);
6762 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta rt_index).then(unittest.expectAsync(((api.Filters response) { 6342 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta rt_index).then(unittest.expectAsync(((api.Filters response) {
6763 checkFilters(response); 6343 checkFilters(response);
6764 }))); 6344 })));
6765 }); 6345 });
6766 6346
6767 unittest.test("method--patch", () { 6347 unittest.test("method--patch", () {
6768 6348
6769 var mock = new common_test.HttpServerMock(); 6349 var mock = new HttpServerMock();
6770 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters; 6350 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters;
6771 var arg_request = buildFilter(); 6351 var arg_request = buildFilter();
6772 var arg_accountId = "foo"; 6352 var arg_accountId = "foo";
6773 var arg_filterId = "foo"; 6353 var arg_filterId = "foo";
6774 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6354 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6775 var obj = new api.Filter.fromJson(json); 6355 var obj = new api.Filter.fromJson(json);
6776 checkFilter(obj); 6356 checkFilter(obj);
6777 6357
6778 var path = (req.url).path; 6358 var path = (req.url).path;
6779 var pathOffset = 0; 6359 var pathOffset = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6811 var keyvalue = part.split("="); 6391 var keyvalue = part.split("=");
6812 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6392 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6813 } 6393 }
6814 } 6394 }
6815 6395
6816 6396
6817 var h = { 6397 var h = {
6818 "content-type" : "application/json; charset=utf-8", 6398 "content-type" : "application/json; charset=utf-8",
6819 }; 6399 };
6820 var resp = convert.JSON.encode(buildFilter()); 6400 var resp = convert.JSON.encode(buildFilter());
6821 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6401 return new async.Future.value(stringResponse(200, h, resp));
6822 }), true); 6402 }), true);
6823 res.patch(arg_request, arg_accountId, arg_filterId).then(unittest.expectAs ync(((api.Filter response) { 6403 res.patch(arg_request, arg_accountId, arg_filterId).then(unittest.expectAs ync(((api.Filter response) {
6824 checkFilter(response); 6404 checkFilter(response);
6825 }))); 6405 })));
6826 }); 6406 });
6827 6407
6828 unittest.test("method--update", () { 6408 unittest.test("method--update", () {
6829 6409
6830 var mock = new common_test.HttpServerMock(); 6410 var mock = new HttpServerMock();
6831 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters; 6411 api.ManagementFiltersResourceApi res = new api.AnalyticsApi(mock).manageme nt.filters;
6832 var arg_request = buildFilter(); 6412 var arg_request = buildFilter();
6833 var arg_accountId = "foo"; 6413 var arg_accountId = "foo";
6834 var arg_filterId = "foo"; 6414 var arg_filterId = "foo";
6835 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6415 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6836 var obj = new api.Filter.fromJson(json); 6416 var obj = new api.Filter.fromJson(json);
6837 checkFilter(obj); 6417 checkFilter(obj);
6838 6418
6839 var path = (req.url).path; 6419 var path = (req.url).path;
6840 var pathOffset = 0; 6420 var pathOffset = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
6872 var keyvalue = part.split("="); 6452 var keyvalue = part.split("=");
6873 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6453 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6874 } 6454 }
6875 } 6455 }
6876 6456
6877 6457
6878 var h = { 6458 var h = {
6879 "content-type" : "application/json; charset=utf-8", 6459 "content-type" : "application/json; charset=utf-8",
6880 }; 6460 };
6881 var resp = convert.JSON.encode(buildFilter()); 6461 var resp = convert.JSON.encode(buildFilter());
6882 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6462 return new async.Future.value(stringResponse(200, h, resp));
6883 }), true); 6463 }), true);
6884 res.update(arg_request, arg_accountId, arg_filterId).then(unittest.expectA sync(((api.Filter response) { 6464 res.update(arg_request, arg_accountId, arg_filterId).then(unittest.expectA sync(((api.Filter response) {
6885 checkFilter(response); 6465 checkFilter(response);
6886 }))); 6466 })));
6887 }); 6467 });
6888 6468
6889 }); 6469 });
6890 6470
6891 6471
6892 unittest.group("resource-ManagementGoalsResourceApi", () { 6472 unittest.group("resource-ManagementGoalsResourceApi", () {
6893 unittest.test("method--get", () { 6473 unittest.test("method--get", () {
6894 6474
6895 var mock = new common_test.HttpServerMock(); 6475 var mock = new HttpServerMock();
6896 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals; 6476 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals;
6897 var arg_accountId = "foo"; 6477 var arg_accountId = "foo";
6898 var arg_webPropertyId = "foo"; 6478 var arg_webPropertyId = "foo";
6899 var arg_profileId = "foo"; 6479 var arg_profileId = "foo";
6900 var arg_goalId = "foo"; 6480 var arg_goalId = "foo";
6901 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6481 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6902 var path = (req.url).path; 6482 var path = (req.url).path;
6903 var pathOffset = 0; 6483 var pathOffset = 0;
6904 var index; 6484 var index;
6905 var subPart; 6485 var subPart;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
6949 var keyvalue = part.split("="); 6529 var keyvalue = part.split("=");
6950 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6530 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
6951 } 6531 }
6952 } 6532 }
6953 6533
6954 6534
6955 var h = { 6535 var h = {
6956 "content-type" : "application/json; charset=utf-8", 6536 "content-type" : "application/json; charset=utf-8",
6957 }; 6537 };
6958 var resp = convert.JSON.encode(buildGoal()); 6538 var resp = convert.JSON.encode(buildGoal());
6959 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6539 return new async.Future.value(stringResponse(200, h, resp));
6960 }), true); 6540 }), true);
6961 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then( unittest.expectAsync(((api.Goal response) { 6541 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_goalId).then( unittest.expectAsync(((api.Goal response) {
6962 checkGoal(response); 6542 checkGoal(response);
6963 }))); 6543 })));
6964 }); 6544 });
6965 6545
6966 unittest.test("method--insert", () { 6546 unittest.test("method--insert", () {
6967 6547
6968 var mock = new common_test.HttpServerMock(); 6548 var mock = new HttpServerMock();
6969 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals; 6549 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals;
6970 var arg_request = buildGoal(); 6550 var arg_request = buildGoal();
6971 var arg_accountId = "foo"; 6551 var arg_accountId = "foo";
6972 var arg_webPropertyId = "foo"; 6552 var arg_webPropertyId = "foo";
6973 var arg_profileId = "foo"; 6553 var arg_profileId = "foo";
6974 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6554 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
6975 var obj = new api.Goal.fromJson(json); 6555 var obj = new api.Goal.fromJson(json);
6976 checkGoal(obj); 6556 checkGoal(obj);
6977 6557
6978 var path = (req.url).path; 6558 var path = (req.url).path;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7022 var keyvalue = part.split("="); 6602 var keyvalue = part.split("=");
7023 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6603 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7024 } 6604 }
7025 } 6605 }
7026 6606
7027 6607
7028 var h = { 6608 var h = {
7029 "content-type" : "application/json; charset=utf-8", 6609 "content-type" : "application/json; charset=utf-8",
7030 }; 6610 };
7031 var resp = convert.JSON.encode(buildGoal()); 6611 var resp = convert.JSON.encode(buildGoal());
7032 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6612 return new async.Future.value(stringResponse(200, h, resp));
7033 }), true); 6613 }), true);
7034 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.Goal response) { 6614 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.Goal response) {
7035 checkGoal(response); 6615 checkGoal(response);
7036 }))); 6616 })));
7037 }); 6617 });
7038 6618
7039 unittest.test("method--list", () { 6619 unittest.test("method--list", () {
7040 6620
7041 var mock = new common_test.HttpServerMock(); 6621 var mock = new HttpServerMock();
7042 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals; 6622 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals;
7043 var arg_accountId = "foo"; 6623 var arg_accountId = "foo";
7044 var arg_webPropertyId = "foo"; 6624 var arg_webPropertyId = "foo";
7045 var arg_profileId = "foo"; 6625 var arg_profileId = "foo";
7046 var arg_max_results = 42; 6626 var arg_max_results = 42;
7047 var arg_start_index = 42; 6627 var arg_start_index = 42;
7048 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6628 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7049 var path = (req.url).path; 6629 var path = (req.url).path;
7050 var pathOffset = 0; 6630 var pathOffset = 0;
7051 var index; 6631 var index;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7095 } 6675 }
7096 } 6676 }
7097 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 6677 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
7098 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 6678 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
7099 6679
7100 6680
7101 var h = { 6681 var h = {
7102 "content-type" : "application/json; charset=utf-8", 6682 "content-type" : "application/json; charset=utf-8",
7103 }; 6683 };
7104 var resp = convert.JSON.encode(buildGoals()); 6684 var resp = convert.JSON.encode(buildGoals());
7105 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6685 return new async.Future.value(stringResponse(200, h, resp));
7106 }), true); 6686 }), true);
7107 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Goal s response) { 6687 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Goal s response) {
7108 checkGoals(response); 6688 checkGoals(response);
7109 }))); 6689 })));
7110 }); 6690 });
7111 6691
7112 unittest.test("method--patch", () { 6692 unittest.test("method--patch", () {
7113 6693
7114 var mock = new common_test.HttpServerMock(); 6694 var mock = new HttpServerMock();
7115 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals; 6695 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals;
7116 var arg_request = buildGoal(); 6696 var arg_request = buildGoal();
7117 var arg_accountId = "foo"; 6697 var arg_accountId = "foo";
7118 var arg_webPropertyId = "foo"; 6698 var arg_webPropertyId = "foo";
7119 var arg_profileId = "foo"; 6699 var arg_profileId = "foo";
7120 var arg_goalId = "foo"; 6700 var arg_goalId = "foo";
7121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6701 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7122 var obj = new api.Goal.fromJson(json); 6702 var obj = new api.Goal.fromJson(json);
7123 checkGoal(obj); 6703 checkGoal(obj);
7124 6704
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7172 var keyvalue = part.split("="); 6752 var keyvalue = part.split("=");
7173 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6753 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7174 } 6754 }
7175 } 6755 }
7176 6756
7177 6757
7178 var h = { 6758 var h = {
7179 "content-type" : "application/json; charset=utf-8", 6759 "content-type" : "application/json; charset=utf-8",
7180 }; 6760 };
7181 var resp = convert.JSON.encode(buildGoal()); 6761 var resp = convert.JSON.encode(buildGoal());
7182 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6762 return new async.Future.value(stringResponse(200, h, resp));
7183 }), true); 6763 }), true);
7184 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar g_goalId).then(unittest.expectAsync(((api.Goal response) { 6764 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar g_goalId).then(unittest.expectAsync(((api.Goal response) {
7185 checkGoal(response); 6765 checkGoal(response);
7186 }))); 6766 })));
7187 }); 6767 });
7188 6768
7189 unittest.test("method--update", () { 6769 unittest.test("method--update", () {
7190 6770
7191 var mock = new common_test.HttpServerMock(); 6771 var mock = new HttpServerMock();
7192 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals; 6772 api.ManagementGoalsResourceApi res = new api.AnalyticsApi(mock).management .goals;
7193 var arg_request = buildGoal(); 6773 var arg_request = buildGoal();
7194 var arg_accountId = "foo"; 6774 var arg_accountId = "foo";
7195 var arg_webPropertyId = "foo"; 6775 var arg_webPropertyId = "foo";
7196 var arg_profileId = "foo"; 6776 var arg_profileId = "foo";
7197 var arg_goalId = "foo"; 6777 var arg_goalId = "foo";
7198 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6778 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7199 var obj = new api.Goal.fromJson(json); 6779 var obj = new api.Goal.fromJson(json);
7200 checkGoal(obj); 6780 checkGoal(obj);
7201 6781
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7249 var keyvalue = part.split("="); 6829 var keyvalue = part.split("=");
7250 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6830 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7251 } 6831 }
7252 } 6832 }
7253 6833
7254 6834
7255 var h = { 6835 var h = {
7256 "content-type" : "application/json; charset=utf-8", 6836 "content-type" : "application/json; charset=utf-8",
7257 }; 6837 };
7258 var resp = convert.JSON.encode(buildGoal()); 6838 var resp = convert.JSON.encode(buildGoal());
7259 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6839 return new async.Future.value(stringResponse(200, h, resp));
7260 }), true); 6840 }), true);
7261 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a rg_goalId).then(unittest.expectAsync(((api.Goal response) { 6841 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a rg_goalId).then(unittest.expectAsync(((api.Goal response) {
7262 checkGoal(response); 6842 checkGoal(response);
7263 }))); 6843 })));
7264 }); 6844 });
7265 6845
7266 }); 6846 });
7267 6847
7268 6848
7269 unittest.group("resource-ManagementProfileFilterLinksResourceApi", () { 6849 unittest.group("resource-ManagementProfileFilterLinksResourceApi", () {
7270 unittest.test("method--delete", () { 6850 unittest.test("method--delete", () {
7271 6851
7272 var mock = new common_test.HttpServerMock(); 6852 var mock = new HttpServerMock();
7273 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks; 6853 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks;
7274 var arg_accountId = "foo"; 6854 var arg_accountId = "foo";
7275 var arg_webPropertyId = "foo"; 6855 var arg_webPropertyId = "foo";
7276 var arg_profileId = "foo"; 6856 var arg_profileId = "foo";
7277 var arg_linkId = "foo"; 6857 var arg_linkId = "foo";
7278 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6858 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7279 var path = (req.url).path; 6859 var path = (req.url).path;
7280 var pathOffset = 0; 6860 var pathOffset = 0;
7281 var index; 6861 var index;
7282 var subPart; 6862 var subPart;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7326 var keyvalue = part.split("="); 6906 var keyvalue = part.split("=");
7327 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6907 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7328 } 6908 }
7329 } 6909 }
7330 6910
7331 6911
7332 var h = { 6912 var h = {
7333 "content-type" : "application/json; charset=utf-8", 6913 "content-type" : "application/json; charset=utf-8",
7334 }; 6914 };
7335 var resp = ""; 6915 var resp = "";
7336 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6916 return new async.Future.value(stringResponse(200, h, resp));
7337 }), true); 6917 }), true);
7338 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).th en(unittest.expectAsync((_) {})); 6918 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).th en(unittest.expectAsync((_) {}));
7339 }); 6919 });
7340 6920
7341 unittest.test("method--get", () { 6921 unittest.test("method--get", () {
7342 6922
7343 var mock = new common_test.HttpServerMock(); 6923 var mock = new HttpServerMock();
7344 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks; 6924 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks;
7345 var arg_accountId = "foo"; 6925 var arg_accountId = "foo";
7346 var arg_webPropertyId = "foo"; 6926 var arg_webPropertyId = "foo";
7347 var arg_profileId = "foo"; 6927 var arg_profileId = "foo";
7348 var arg_linkId = "foo"; 6928 var arg_linkId = "foo";
7349 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 6929 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7350 var path = (req.url).path; 6930 var path = (req.url).path;
7351 var pathOffset = 0; 6931 var pathOffset = 0;
7352 var index; 6932 var index;
7353 var subPart; 6933 var subPart;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7397 var keyvalue = part.split("="); 6977 var keyvalue = part.split("=");
7398 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 6978 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7399 } 6979 }
7400 } 6980 }
7401 6981
7402 6982
7403 var h = { 6983 var h = {
7404 "content-type" : "application/json; charset=utf-8", 6984 "content-type" : "application/json; charset=utf-8",
7405 }; 6985 };
7406 var resp = convert.JSON.encode(buildProfileFilterLink()); 6986 var resp = convert.JSON.encode(buildProfileFilterLink());
7407 return new async.Future.value(common_test.stringResponse(200, h, resp)); 6987 return new async.Future.value(stringResponse(200, h, resp));
7408 }), true); 6988 }), true);
7409 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then( unittest.expectAsync(((api.ProfileFilterLink response) { 6989 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).then( unittest.expectAsync(((api.ProfileFilterLink response) {
7410 checkProfileFilterLink(response); 6990 checkProfileFilterLink(response);
7411 }))); 6991 })));
7412 }); 6992 });
7413 6993
7414 unittest.test("method--insert", () { 6994 unittest.test("method--insert", () {
7415 6995
7416 var mock = new common_test.HttpServerMock(); 6996 var mock = new HttpServerMock();
7417 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks; 6997 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks;
7418 var arg_request = buildProfileFilterLink(); 6998 var arg_request = buildProfileFilterLink();
7419 var arg_accountId = "foo"; 6999 var arg_accountId = "foo";
7420 var arg_webPropertyId = "foo"; 7000 var arg_webPropertyId = "foo";
7421 var arg_profileId = "foo"; 7001 var arg_profileId = "foo";
7422 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7002 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7423 var obj = new api.ProfileFilterLink.fromJson(json); 7003 var obj = new api.ProfileFilterLink.fromJson(json);
7424 checkProfileFilterLink(obj); 7004 checkProfileFilterLink(obj);
7425 7005
7426 var path = (req.url).path; 7006 var path = (req.url).path;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7470 var keyvalue = part.split("="); 7050 var keyvalue = part.split("=");
7471 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7051 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7472 } 7052 }
7473 } 7053 }
7474 7054
7475 7055
7476 var h = { 7056 var h = {
7477 "content-type" : "application/json; charset=utf-8", 7057 "content-type" : "application/json; charset=utf-8",
7478 }; 7058 };
7479 var resp = convert.JSON.encode(buildProfileFilterLink()); 7059 var resp = convert.JSON.encode(buildProfileFilterLink());
7480 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7060 return new async.Future.value(stringResponse(200, h, resp));
7481 }), true); 7061 }), true);
7482 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.ProfileFilterLink response) { 7062 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.ProfileFilterLink response) {
7483 checkProfileFilterLink(response); 7063 checkProfileFilterLink(response);
7484 }))); 7064 })));
7485 }); 7065 });
7486 7066
7487 unittest.test("method--list", () { 7067 unittest.test("method--list", () {
7488 7068
7489 var mock = new common_test.HttpServerMock(); 7069 var mock = new HttpServerMock();
7490 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks; 7070 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks;
7491 var arg_accountId = "foo"; 7071 var arg_accountId = "foo";
7492 var arg_webPropertyId = "foo"; 7072 var arg_webPropertyId = "foo";
7493 var arg_profileId = "foo"; 7073 var arg_profileId = "foo";
7494 var arg_max_results = 42; 7074 var arg_max_results = 42;
7495 var arg_start_index = 42; 7075 var arg_start_index = 42;
7496 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7076 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7497 var path = (req.url).path; 7077 var path = (req.url).path;
7498 var pathOffset = 0; 7078 var pathOffset = 0;
7499 var index; 7079 var index;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7543 } 7123 }
7544 } 7124 }
7545 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 7125 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
7546 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 7126 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
7547 7127
7548 7128
7549 var h = { 7129 var h = {
7550 "content-type" : "application/json; charset=utf-8", 7130 "content-type" : "application/json; charset=utf-8",
7551 }; 7131 };
7552 var resp = convert.JSON.encode(buildProfileFilterLinks()); 7132 var resp = convert.JSON.encode(buildProfileFilterLinks());
7553 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7133 return new async.Future.value(stringResponse(200, h, resp));
7554 }), true); 7134 }), true);
7555 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Prof ileFilterLinks response) { 7135 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Prof ileFilterLinks response) {
7556 checkProfileFilterLinks(response); 7136 checkProfileFilterLinks(response);
7557 }))); 7137 })));
7558 }); 7138 });
7559 7139
7560 unittest.test("method--patch", () { 7140 unittest.test("method--patch", () {
7561 7141
7562 var mock = new common_test.HttpServerMock(); 7142 var mock = new HttpServerMock();
7563 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks; 7143 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks;
7564 var arg_request = buildProfileFilterLink(); 7144 var arg_request = buildProfileFilterLink();
7565 var arg_accountId = "foo"; 7145 var arg_accountId = "foo";
7566 var arg_webPropertyId = "foo"; 7146 var arg_webPropertyId = "foo";
7567 var arg_profileId = "foo"; 7147 var arg_profileId = "foo";
7568 var arg_linkId = "foo"; 7148 var arg_linkId = "foo";
7569 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7149 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7570 var obj = new api.ProfileFilterLink.fromJson(json); 7150 var obj = new api.ProfileFilterLink.fromJson(json);
7571 checkProfileFilterLink(obj); 7151 checkProfileFilterLink(obj);
7572 7152
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7620 var keyvalue = part.split("="); 7200 var keyvalue = part.split("=");
7621 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7201 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7622 } 7202 }
7623 } 7203 }
7624 7204
7625 7205
7626 var h = { 7206 var h = {
7627 "content-type" : "application/json; charset=utf-8", 7207 "content-type" : "application/json; charset=utf-8",
7628 }; 7208 };
7629 var resp = convert.JSON.encode(buildProfileFilterLink()); 7209 var resp = convert.JSON.encode(buildProfileFilterLink());
7630 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7210 return new async.Future.value(stringResponse(200, h, resp));
7631 }), true); 7211 }), true);
7632 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar g_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) { 7212 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, ar g_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) {
7633 checkProfileFilterLink(response); 7213 checkProfileFilterLink(response);
7634 }))); 7214 })));
7635 }); 7215 });
7636 7216
7637 unittest.test("method--update", () { 7217 unittest.test("method--update", () {
7638 7218
7639 var mock = new common_test.HttpServerMock(); 7219 var mock = new HttpServerMock();
7640 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks; 7220 api.ManagementProfileFilterLinksResourceApi res = new api.AnalyticsApi(moc k).management.profileFilterLinks;
7641 var arg_request = buildProfileFilterLink(); 7221 var arg_request = buildProfileFilterLink();
7642 var arg_accountId = "foo"; 7222 var arg_accountId = "foo";
7643 var arg_webPropertyId = "foo"; 7223 var arg_webPropertyId = "foo";
7644 var arg_profileId = "foo"; 7224 var arg_profileId = "foo";
7645 var arg_linkId = "foo"; 7225 var arg_linkId = "foo";
7646 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7226 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7647 var obj = new api.ProfileFilterLink.fromJson(json); 7227 var obj = new api.ProfileFilterLink.fromJson(json);
7648 checkProfileFilterLink(obj); 7228 checkProfileFilterLink(obj);
7649 7229
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7697 var keyvalue = part.split("="); 7277 var keyvalue = part.split("=");
7698 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7278 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7699 } 7279 }
7700 } 7280 }
7701 7281
7702 7282
7703 var h = { 7283 var h = {
7704 "content-type" : "application/json; charset=utf-8", 7284 "content-type" : "application/json; charset=utf-8",
7705 }; 7285 };
7706 var resp = convert.JSON.encode(buildProfileFilterLink()); 7286 var resp = convert.JSON.encode(buildProfileFilterLink());
7707 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7287 return new async.Future.value(stringResponse(200, h, resp));
7708 }), true); 7288 }), true);
7709 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a rg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) { 7289 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a rg_linkId).then(unittest.expectAsync(((api.ProfileFilterLink response) {
7710 checkProfileFilterLink(response); 7290 checkProfileFilterLink(response);
7711 }))); 7291 })));
7712 }); 7292 });
7713 7293
7714 }); 7294 });
7715 7295
7716 7296
7717 unittest.group("resource-ManagementProfileUserLinksResourceApi", () { 7297 unittest.group("resource-ManagementProfileUserLinksResourceApi", () {
7718 unittest.test("method--delete", () { 7298 unittest.test("method--delete", () {
7719 7299
7720 var mock = new common_test.HttpServerMock(); 7300 var mock = new HttpServerMock();
7721 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.profileUserLinks; 7301 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.profileUserLinks;
7722 var arg_accountId = "foo"; 7302 var arg_accountId = "foo";
7723 var arg_webPropertyId = "foo"; 7303 var arg_webPropertyId = "foo";
7724 var arg_profileId = "foo"; 7304 var arg_profileId = "foo";
7725 var arg_linkId = "foo"; 7305 var arg_linkId = "foo";
7726 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7306 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7727 var path = (req.url).path; 7307 var path = (req.url).path;
7728 var pathOffset = 0; 7308 var pathOffset = 0;
7729 var index; 7309 var index;
7730 var subPart; 7310 var subPart;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7774 var keyvalue = part.split("="); 7354 var keyvalue = part.split("=");
7775 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7355 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7776 } 7356 }
7777 } 7357 }
7778 7358
7779 7359
7780 var h = { 7360 var h = {
7781 "content-type" : "application/json; charset=utf-8", 7361 "content-type" : "application/json; charset=utf-8",
7782 }; 7362 };
7783 var resp = ""; 7363 var resp = "";
7784 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7364 return new async.Future.value(stringResponse(200, h, resp));
7785 }), true); 7365 }), true);
7786 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).th en(unittest.expectAsync((_) {})); 7366 res.delete(arg_accountId, arg_webPropertyId, arg_profileId, arg_linkId).th en(unittest.expectAsync((_) {}));
7787 }); 7367 });
7788 7368
7789 unittest.test("method--insert", () { 7369 unittest.test("method--insert", () {
7790 7370
7791 var mock = new common_test.HttpServerMock(); 7371 var mock = new HttpServerMock();
7792 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.profileUserLinks; 7372 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.profileUserLinks;
7793 var arg_request = buildEntityUserLink(); 7373 var arg_request = buildEntityUserLink();
7794 var arg_accountId = "foo"; 7374 var arg_accountId = "foo";
7795 var arg_webPropertyId = "foo"; 7375 var arg_webPropertyId = "foo";
7796 var arg_profileId = "foo"; 7376 var arg_profileId = "foo";
7797 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7377 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7798 var obj = new api.EntityUserLink.fromJson(json); 7378 var obj = new api.EntityUserLink.fromJson(json);
7799 checkEntityUserLink(obj); 7379 checkEntityUserLink(obj);
7800 7380
7801 var path = (req.url).path; 7381 var path = (req.url).path;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7845 var keyvalue = part.split("="); 7425 var keyvalue = part.split("=");
7846 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7426 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7847 } 7427 }
7848 } 7428 }
7849 7429
7850 7430
7851 var h = { 7431 var h = {
7852 "content-type" : "application/json; charset=utf-8", 7432 "content-type" : "application/json; charset=utf-8",
7853 }; 7433 };
7854 var resp = convert.JSON.encode(buildEntityUserLink()); 7434 var resp = convert.JSON.encode(buildEntityUserLink());
7855 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7435 return new async.Future.value(stringResponse(200, h, resp));
7856 }), true); 7436 }), true);
7857 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.EntityUserLink response) { 7437 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.EntityUserLink response) {
7858 checkEntityUserLink(response); 7438 checkEntityUserLink(response);
7859 }))); 7439 })));
7860 }); 7440 });
7861 7441
7862 unittest.test("method--list", () { 7442 unittest.test("method--list", () {
7863 7443
7864 var mock = new common_test.HttpServerMock(); 7444 var mock = new HttpServerMock();
7865 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.profileUserLinks; 7445 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.profileUserLinks;
7866 var arg_accountId = "foo"; 7446 var arg_accountId = "foo";
7867 var arg_webPropertyId = "foo"; 7447 var arg_webPropertyId = "foo";
7868 var arg_profileId = "foo"; 7448 var arg_profileId = "foo";
7869 var arg_max_results = 42; 7449 var arg_max_results = 42;
7870 var arg_start_index = 42; 7450 var arg_start_index = 42;
7871 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7451 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7872 var path = (req.url).path; 7452 var path = (req.url).path;
7873 var pathOffset = 0; 7453 var pathOffset = 0;
7874 var index; 7454 var index;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
7918 } 7498 }
7919 } 7499 }
7920 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 7500 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
7921 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 7501 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
7922 7502
7923 7503
7924 var h = { 7504 var h = {
7925 "content-type" : "application/json; charset=utf-8", 7505 "content-type" : "application/json; charset=utf-8",
7926 }; 7506 };
7927 var resp = convert.JSON.encode(buildEntityUserLinks()); 7507 var resp = convert.JSON.encode(buildEntityUserLinks());
7928 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7508 return new async.Future.value(stringResponse(200, h, resp));
7929 }), true); 7509 }), true);
7930 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Enti tyUserLinks response) { 7510 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Enti tyUserLinks response) {
7931 checkEntityUserLinks(response); 7511 checkEntityUserLinks(response);
7932 }))); 7512 })));
7933 }); 7513 });
7934 7514
7935 unittest.test("method--update", () { 7515 unittest.test("method--update", () {
7936 7516
7937 var mock = new common_test.HttpServerMock(); 7517 var mock = new HttpServerMock();
7938 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.profileUserLinks; 7518 api.ManagementProfileUserLinksResourceApi res = new api.AnalyticsApi(mock) .management.profileUserLinks;
7939 var arg_request = buildEntityUserLink(); 7519 var arg_request = buildEntityUserLink();
7940 var arg_accountId = "foo"; 7520 var arg_accountId = "foo";
7941 var arg_webPropertyId = "foo"; 7521 var arg_webPropertyId = "foo";
7942 var arg_profileId = "foo"; 7522 var arg_profileId = "foo";
7943 var arg_linkId = "foo"; 7523 var arg_linkId = "foo";
7944 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7524 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
7945 var obj = new api.EntityUserLink.fromJson(json); 7525 var obj = new api.EntityUserLink.fromJson(json);
7946 checkEntityUserLink(obj); 7526 checkEntityUserLink(obj);
7947 7527
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7995 var keyvalue = part.split("="); 7575 var keyvalue = part.split("=");
7996 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7576 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
7997 } 7577 }
7998 } 7578 }
7999 7579
8000 7580
8001 var h = { 7581 var h = {
8002 "content-type" : "application/json; charset=utf-8", 7582 "content-type" : "application/json; charset=utf-8",
8003 }; 7583 };
8004 var resp = convert.JSON.encode(buildEntityUserLink()); 7584 var resp = convert.JSON.encode(buildEntityUserLink());
8005 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7585 return new async.Future.value(stringResponse(200, h, resp));
8006 }), true); 7586 }), true);
8007 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a rg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) { 7587 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId, a rg_linkId).then(unittest.expectAsync(((api.EntityUserLink response) {
8008 checkEntityUserLink(response); 7588 checkEntityUserLink(response);
8009 }))); 7589 })));
8010 }); 7590 });
8011 7591
8012 }); 7592 });
8013 7593
8014 7594
8015 unittest.group("resource-ManagementProfilesResourceApi", () { 7595 unittest.group("resource-ManagementProfilesResourceApi", () {
8016 unittest.test("method--delete", () { 7596 unittest.test("method--delete", () {
8017 7597
8018 var mock = new common_test.HttpServerMock(); 7598 var mock = new HttpServerMock();
8019 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles; 7599 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles;
8020 var arg_accountId = "foo"; 7600 var arg_accountId = "foo";
8021 var arg_webPropertyId = "foo"; 7601 var arg_webPropertyId = "foo";
8022 var arg_profileId = "foo"; 7602 var arg_profileId = "foo";
8023 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7603 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8024 var path = (req.url).path; 7604 var path = (req.url).path;
8025 var pathOffset = 0; 7605 var pathOffset = 0;
8026 var index; 7606 var index;
8027 var subPart; 7607 var subPart;
8028 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7608 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
8064 var keyvalue = part.split("="); 7644 var keyvalue = part.split("=");
8065 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7645 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8066 } 7646 }
8067 } 7647 }
8068 7648
8069 7649
8070 var h = { 7650 var h = {
8071 "content-type" : "application/json; charset=utf-8", 7651 "content-type" : "application/json; charset=utf-8",
8072 }; 7652 };
8073 var resp = ""; 7653 var resp = "";
8074 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7654 return new async.Future.value(stringResponse(200, h, resp));
8075 }), true); 7655 }), true);
8076 res.delete(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest. expectAsync((_) {})); 7656 res.delete(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest. expectAsync((_) {}));
8077 }); 7657 });
8078 7658
8079 unittest.test("method--get", () { 7659 unittest.test("method--get", () {
8080 7660
8081 var mock = new common_test.HttpServerMock(); 7661 var mock = new HttpServerMock();
8082 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles; 7662 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles;
8083 var arg_accountId = "foo"; 7663 var arg_accountId = "foo";
8084 var arg_webPropertyId = "foo"; 7664 var arg_webPropertyId = "foo";
8085 var arg_profileId = "foo"; 7665 var arg_profileId = "foo";
8086 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7666 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8087 var path = (req.url).path; 7667 var path = (req.url).path;
8088 var pathOffset = 0; 7668 var pathOffset = 0;
8089 var index; 7669 var index;
8090 var subPart; 7670 var subPart;
8091 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 7671 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
8127 var keyvalue = part.split("="); 7707 var keyvalue = part.split("=");
8128 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7708 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8129 } 7709 }
8130 } 7710 }
8131 7711
8132 7712
8133 var h = { 7713 var h = {
8134 "content-type" : "application/json; charset=utf-8", 7714 "content-type" : "application/json; charset=utf-8",
8135 }; 7715 };
8136 var resp = convert.JSON.encode(buildProfile()); 7716 var resp = convert.JSON.encode(buildProfile());
8137 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7717 return new async.Future.value(stringResponse(200, h, resp));
8138 }), true); 7718 }), true);
8139 res.get(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.exp ectAsync(((api.Profile response) { 7719 res.get(arg_accountId, arg_webPropertyId, arg_profileId).then(unittest.exp ectAsync(((api.Profile response) {
8140 checkProfile(response); 7720 checkProfile(response);
8141 }))); 7721 })));
8142 }); 7722 });
8143 7723
8144 unittest.test("method--insert", () { 7724 unittest.test("method--insert", () {
8145 7725
8146 var mock = new common_test.HttpServerMock(); 7726 var mock = new HttpServerMock();
8147 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles; 7727 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles;
8148 var arg_request = buildProfile(); 7728 var arg_request = buildProfile();
8149 var arg_accountId = "foo"; 7729 var arg_accountId = "foo";
8150 var arg_webPropertyId = "foo"; 7730 var arg_webPropertyId = "foo";
8151 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7731 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8152 var obj = new api.Profile.fromJson(json); 7732 var obj = new api.Profile.fromJson(json);
8153 checkProfile(obj); 7733 checkProfile(obj);
8154 7734
8155 var path = (req.url).path; 7735 var path = (req.url).path;
8156 var pathOffset = 0; 7736 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
8192 var keyvalue = part.split("="); 7772 var keyvalue = part.split("=");
8193 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7773 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8194 } 7774 }
8195 } 7775 }
8196 7776
8197 7777
8198 var h = { 7778 var h = {
8199 "content-type" : "application/json; charset=utf-8", 7779 "content-type" : "application/json; charset=utf-8",
8200 }; 7780 };
8201 var resp = convert.JSON.encode(buildProfile()); 7781 var resp = convert.JSON.encode(buildProfile());
8202 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7782 return new async.Future.value(stringResponse(200, h, resp));
8203 }), true); 7783 }), true);
8204 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.Profile response) { 7784 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.Profile response) {
8205 checkProfile(response); 7785 checkProfile(response);
8206 }))); 7786 })));
8207 }); 7787 });
8208 7788
8209 unittest.test("method--list", () { 7789 unittest.test("method--list", () {
8210 7790
8211 var mock = new common_test.HttpServerMock(); 7791 var mock = new HttpServerMock();
8212 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles; 7792 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles;
8213 var arg_accountId = "foo"; 7793 var arg_accountId = "foo";
8214 var arg_webPropertyId = "foo"; 7794 var arg_webPropertyId = "foo";
8215 var arg_max_results = 42; 7795 var arg_max_results = 42;
8216 var arg_start_index = 42; 7796 var arg_start_index = 42;
8217 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7797 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8218 var path = (req.url).path; 7798 var path = (req.url).path;
8219 var pathOffset = 0; 7799 var pathOffset = 0;
8220 var index; 7800 var index;
8221 var subPart; 7801 var subPart;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
8257 } 7837 }
8258 } 7838 }
8259 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 7839 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
8260 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 7840 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
8261 7841
8262 7842
8263 var h = { 7843 var h = {
8264 "content-type" : "application/json; charset=utf-8", 7844 "content-type" : "application/json; charset=utf-8",
8265 }; 7845 };
8266 var resp = convert.JSON.encode(buildProfiles()); 7846 var resp = convert.JSON.encode(buildProfiles());
8267 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7847 return new async.Future.value(stringResponse(200, h, resp));
8268 }), true); 7848 }), true);
8269 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.Profiles response) { 7849 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.Profiles response) {
8270 checkProfiles(response); 7850 checkProfiles(response);
8271 }))); 7851 })));
8272 }); 7852 });
8273 7853
8274 unittest.test("method--patch", () { 7854 unittest.test("method--patch", () {
8275 7855
8276 var mock = new common_test.HttpServerMock(); 7856 var mock = new HttpServerMock();
8277 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles; 7857 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles;
8278 var arg_request = buildProfile(); 7858 var arg_request = buildProfile();
8279 var arg_accountId = "foo"; 7859 var arg_accountId = "foo";
8280 var arg_webPropertyId = "foo"; 7860 var arg_webPropertyId = "foo";
8281 var arg_profileId = "foo"; 7861 var arg_profileId = "foo";
8282 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7862 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8283 var obj = new api.Profile.fromJson(json); 7863 var obj = new api.Profile.fromJson(json);
8284 checkProfile(obj); 7864 checkProfile(obj);
8285 7865
8286 var path = (req.url).path; 7866 var path = (req.url).path;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
8326 var keyvalue = part.split("="); 7906 var keyvalue = part.split("=");
8327 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7907 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8328 } 7908 }
8329 } 7909 }
8330 7910
8331 7911
8332 var h = { 7912 var h = {
8333 "content-type" : "application/json; charset=utf-8", 7913 "content-type" : "application/json; charset=utf-8",
8334 }; 7914 };
8335 var resp = convert.JSON.encode(buildProfile()); 7915 var resp = convert.JSON.encode(buildProfile());
8336 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7916 return new async.Future.value(stringResponse(200, h, resp));
8337 }), true); 7917 }), true);
8338 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).th en(unittest.expectAsync(((api.Profile response) { 7918 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).th en(unittest.expectAsync(((api.Profile response) {
8339 checkProfile(response); 7919 checkProfile(response);
8340 }))); 7920 })));
8341 }); 7921 });
8342 7922
8343 unittest.test("method--update", () { 7923 unittest.test("method--update", () {
8344 7924
8345 var mock = new common_test.HttpServerMock(); 7925 var mock = new HttpServerMock();
8346 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles; 7926 api.ManagementProfilesResourceApi res = new api.AnalyticsApi(mock).managem ent.profiles;
8347 var arg_request = buildProfile(); 7927 var arg_request = buildProfile();
8348 var arg_accountId = "foo"; 7928 var arg_accountId = "foo";
8349 var arg_webPropertyId = "foo"; 7929 var arg_webPropertyId = "foo";
8350 var arg_profileId = "foo"; 7930 var arg_profileId = "foo";
8351 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 7931 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8352 var obj = new api.Profile.fromJson(json); 7932 var obj = new api.Profile.fromJson(json);
8353 checkProfile(obj); 7933 checkProfile(obj);
8354 7934
8355 var path = (req.url).path; 7935 var path = (req.url).path;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
8395 var keyvalue = part.split("="); 7975 var keyvalue = part.split("=");
8396 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 7976 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8397 } 7977 }
8398 } 7978 }
8399 7979
8400 7980
8401 var h = { 7981 var h = {
8402 "content-type" : "application/json; charset=utf-8", 7982 "content-type" : "application/json; charset=utf-8",
8403 }; 7983 };
8404 var resp = convert.JSON.encode(buildProfile()); 7984 var resp = convert.JSON.encode(buildProfile());
8405 return new async.Future.value(common_test.stringResponse(200, h, resp)); 7985 return new async.Future.value(stringResponse(200, h, resp));
8406 }), true); 7986 }), true);
8407 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.Profile response) { 7987 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.Profile response) {
8408 checkProfile(response); 7988 checkProfile(response);
8409 }))); 7989 })));
8410 }); 7990 });
8411 7991
8412 }); 7992 });
8413 7993
8414 7994
8415 unittest.group("resource-ManagementSegmentsResourceApi", () { 7995 unittest.group("resource-ManagementSegmentsResourceApi", () {
8416 unittest.test("method--list", () { 7996 unittest.test("method--list", () {
8417 7997
8418 var mock = new common_test.HttpServerMock(); 7998 var mock = new HttpServerMock();
8419 api.ManagementSegmentsResourceApi res = new api.AnalyticsApi(mock).managem ent.segments; 7999 api.ManagementSegmentsResourceApi res = new api.AnalyticsApi(mock).managem ent.segments;
8420 var arg_max_results = 42; 8000 var arg_max_results = 42;
8421 var arg_start_index = 42; 8001 var arg_start_index = 42;
8422 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8002 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8423 var path = (req.url).path; 8003 var path = (req.url).path;
8424 var pathOffset = 0; 8004 var pathOffset = 0;
8425 var index; 8005 var index;
8426 var subPart; 8006 var subPart;
8427 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8007 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8428 pathOffset += 1; 8008 pathOffset += 1;
(...skipping 19 matching lines...) Expand all
8448 } 8028 }
8449 } 8029 }
8450 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 8030 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
8451 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 8031 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
8452 8032
8453 8033
8454 var h = { 8034 var h = {
8455 "content-type" : "application/json; charset=utf-8", 8035 "content-type" : "application/json; charset=utf-8",
8456 }; 8036 };
8457 var resp = convert.JSON.encode(buildSegments()); 8037 var resp = convert.JSON.encode(buildSegments());
8458 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8038 return new async.Future.value(stringResponse(200, h, resp));
8459 }), true); 8039 }), true);
8460 res.list(max_results: arg_max_results, start_index: arg_start_index).then( unittest.expectAsync(((api.Segments response) { 8040 res.list(max_results: arg_max_results, start_index: arg_start_index).then( unittest.expectAsync(((api.Segments response) {
8461 checkSegments(response); 8041 checkSegments(response);
8462 }))); 8042 })));
8463 }); 8043 });
8464 8044
8465 }); 8045 });
8466 8046
8467 8047
8468 unittest.group("resource-ManagementUnsampledReportsResourceApi", () { 8048 unittest.group("resource-ManagementUnsampledReportsResourceApi", () {
8469 unittest.test("method--get", () { 8049 unittest.test("method--get", () {
8470 8050
8471 var mock = new common_test.HttpServerMock(); 8051 var mock = new HttpServerMock();
8472 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock) .management.unsampledReports; 8052 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock) .management.unsampledReports;
8473 var arg_accountId = "foo"; 8053 var arg_accountId = "foo";
8474 var arg_webPropertyId = "foo"; 8054 var arg_webPropertyId = "foo";
8475 var arg_profileId = "foo"; 8055 var arg_profileId = "foo";
8476 var arg_unsampledReportId = "foo"; 8056 var arg_unsampledReportId = "foo";
8477 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8057 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8478 var path = (req.url).path; 8058 var path = (req.url).path;
8479 var pathOffset = 0; 8059 var pathOffset = 0;
8480 var index; 8060 var index;
8481 var subPart; 8061 var subPart;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
8525 var keyvalue = part.split("="); 8105 var keyvalue = part.split("=");
8526 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8106 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8527 } 8107 }
8528 } 8108 }
8529 8109
8530 8110
8531 var h = { 8111 var h = {
8532 "content-type" : "application/json; charset=utf-8", 8112 "content-type" : "application/json; charset=utf-8",
8533 }; 8113 };
8534 var resp = convert.JSON.encode(buildUnsampledReport()); 8114 var resp = convert.JSON.encode(buildUnsampledReport());
8535 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8115 return new async.Future.value(stringResponse(200, h, resp));
8536 }), true); 8116 }), true);
8537 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledRepo rtId).then(unittest.expectAsync(((api.UnsampledReport response) { 8117 res.get(arg_accountId, arg_webPropertyId, arg_profileId, arg_unsampledRepo rtId).then(unittest.expectAsync(((api.UnsampledReport response) {
8538 checkUnsampledReport(response); 8118 checkUnsampledReport(response);
8539 }))); 8119 })));
8540 }); 8120 });
8541 8121
8542 unittest.test("method--insert", () { 8122 unittest.test("method--insert", () {
8543 8123
8544 var mock = new common_test.HttpServerMock(); 8124 var mock = new HttpServerMock();
8545 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock) .management.unsampledReports; 8125 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock) .management.unsampledReports;
8546 var arg_request = buildUnsampledReport(); 8126 var arg_request = buildUnsampledReport();
8547 var arg_accountId = "foo"; 8127 var arg_accountId = "foo";
8548 var arg_webPropertyId = "foo"; 8128 var arg_webPropertyId = "foo";
8549 var arg_profileId = "foo"; 8129 var arg_profileId = "foo";
8550 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8130 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8551 var obj = new api.UnsampledReport.fromJson(json); 8131 var obj = new api.UnsampledReport.fromJson(json);
8552 checkUnsampledReport(obj); 8132 checkUnsampledReport(obj);
8553 8133
8554 var path = (req.url).path; 8134 var path = (req.url).path;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
8598 var keyvalue = part.split("="); 8178 var keyvalue = part.split("=");
8599 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8179 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8600 } 8180 }
8601 } 8181 }
8602 8182
8603 8183
8604 var h = { 8184 var h = {
8605 "content-type" : "application/json; charset=utf-8", 8185 "content-type" : "application/json; charset=utf-8",
8606 }; 8186 };
8607 var resp = convert.JSON.encode(buildUnsampledReport()); 8187 var resp = convert.JSON.encode(buildUnsampledReport());
8608 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8188 return new async.Future.value(stringResponse(200, h, resp));
8609 }), true); 8189 }), true);
8610 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.UnsampledReport response) { 8190 res.insert(arg_request, arg_accountId, arg_webPropertyId, arg_profileId).t hen(unittest.expectAsync(((api.UnsampledReport response) {
8611 checkUnsampledReport(response); 8191 checkUnsampledReport(response);
8612 }))); 8192 })));
8613 }); 8193 });
8614 8194
8615 unittest.test("method--list", () { 8195 unittest.test("method--list", () {
8616 8196
8617 var mock = new common_test.HttpServerMock(); 8197 var mock = new HttpServerMock();
8618 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock) .management.unsampledReports; 8198 api.ManagementUnsampledReportsResourceApi res = new api.AnalyticsApi(mock) .management.unsampledReports;
8619 var arg_accountId = "foo"; 8199 var arg_accountId = "foo";
8620 var arg_webPropertyId = "foo"; 8200 var arg_webPropertyId = "foo";
8621 var arg_profileId = "foo"; 8201 var arg_profileId = "foo";
8622 var arg_max_results = 42; 8202 var arg_max_results = 42;
8623 var arg_start_index = 42; 8203 var arg_start_index = 42;
8624 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8204 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8625 var path = (req.url).path; 8205 var path = (req.url).path;
8626 var pathOffset = 0; 8206 var pathOffset = 0;
8627 var index; 8207 var index;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
8671 } 8251 }
8672 } 8252 }
8673 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 8253 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
8674 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 8254 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
8675 8255
8676 8256
8677 var h = { 8257 var h = {
8678 "content-type" : "application/json; charset=utf-8", 8258 "content-type" : "application/json; charset=utf-8",
8679 }; 8259 };
8680 var resp = convert.JSON.encode(buildUnsampledReports()); 8260 var resp = convert.JSON.encode(buildUnsampledReports());
8681 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8261 return new async.Future.value(stringResponse(200, h, resp));
8682 }), true); 8262 }), true);
8683 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Unsa mpledReports response) { 8263 res.list(arg_accountId, arg_webPropertyId, arg_profileId, max_results: arg _max_results, start_index: arg_start_index).then(unittest.expectAsync(((api.Unsa mpledReports response) {
8684 checkUnsampledReports(response); 8264 checkUnsampledReports(response);
8685 }))); 8265 })));
8686 }); 8266 });
8687 8267
8688 }); 8268 });
8689 8269
8690 8270
8691 unittest.group("resource-ManagementUploadsResourceApi", () { 8271 unittest.group("resource-ManagementUploadsResourceApi", () {
8692 unittest.test("method--deleteUploadData", () { 8272 unittest.test("method--deleteUploadData", () {
8693 8273
8694 var mock = new common_test.HttpServerMock(); 8274 var mock = new HttpServerMock();
8695 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads; 8275 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads;
8696 var arg_request = buildAnalyticsDataimportDeleteUploadDataRequest(); 8276 var arg_request = buildAnalyticsDataimportDeleteUploadDataRequest();
8697 var arg_accountId = "foo"; 8277 var arg_accountId = "foo";
8698 var arg_webPropertyId = "foo"; 8278 var arg_webPropertyId = "foo";
8699 var arg_customDataSourceId = "foo"; 8279 var arg_customDataSourceId = "foo";
8700 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8280 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8701 var obj = new api.AnalyticsDataimportDeleteUploadDataRequest.fromJson(js on); 8281 var obj = new api.AnalyticsDataimportDeleteUploadDataRequest.fromJson(js on);
8702 checkAnalyticsDataimportDeleteUploadDataRequest(obj); 8282 checkAnalyticsDataimportDeleteUploadDataRequest(obj);
8703 8283
8704 var path = (req.url).path; 8284 var path = (req.url).path;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
8748 var keyvalue = part.split("="); 8328 var keyvalue = part.split("=");
8749 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8329 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8750 } 8330 }
8751 } 8331 }
8752 8332
8753 8333
8754 var h = { 8334 var h = {
8755 "content-type" : "application/json; charset=utf-8", 8335 "content-type" : "application/json; charset=utf-8",
8756 }; 8336 };
8757 var resp = ""; 8337 var resp = "";
8758 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8338 return new async.Future.value(stringResponse(200, h, resp));
8759 }), true); 8339 }), true);
8760 res.deleteUploadData(arg_request, arg_accountId, arg_webPropertyId, arg_cu stomDataSourceId).then(unittest.expectAsync((_) {})); 8340 res.deleteUploadData(arg_request, arg_accountId, arg_webPropertyId, arg_cu stomDataSourceId).then(unittest.expectAsync((_) {}));
8761 }); 8341 });
8762 8342
8763 unittest.test("method--get", () { 8343 unittest.test("method--get", () {
8764 8344
8765 var mock = new common_test.HttpServerMock(); 8345 var mock = new HttpServerMock();
8766 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads; 8346 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads;
8767 var arg_accountId = "foo"; 8347 var arg_accountId = "foo";
8768 var arg_webPropertyId = "foo"; 8348 var arg_webPropertyId = "foo";
8769 var arg_customDataSourceId = "foo"; 8349 var arg_customDataSourceId = "foo";
8770 var arg_uploadId = "foo"; 8350 var arg_uploadId = "foo";
8771 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8351 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8772 var path = (req.url).path; 8352 var path = (req.url).path;
8773 var pathOffset = 0; 8353 var pathOffset = 0;
8774 var index; 8354 var index;
8775 var subPart; 8355 var subPart;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
8819 var keyvalue = part.split("="); 8399 var keyvalue = part.split("=");
8820 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8400 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8821 } 8401 }
8822 } 8402 }
8823 8403
8824 8404
8825 var h = { 8405 var h = {
8826 "content-type" : "application/json; charset=utf-8", 8406 "content-type" : "application/json; charset=utf-8",
8827 }; 8407 };
8828 var resp = convert.JSON.encode(buildUpload()); 8408 var resp = convert.JSON.encode(buildUpload());
8829 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8409 return new async.Future.value(stringResponse(200, h, resp));
8830 }), true); 8410 }), true);
8831 res.get(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_uplo adId).then(unittest.expectAsync(((api.Upload response) { 8411 res.get(arg_accountId, arg_webPropertyId, arg_customDataSourceId, arg_uplo adId).then(unittest.expectAsync(((api.Upload response) {
8832 checkUpload(response); 8412 checkUpload(response);
8833 }))); 8413 })));
8834 }); 8414 });
8835 8415
8836 unittest.test("method--list", () { 8416 unittest.test("method--list", () {
8837 8417
8838 var mock = new common_test.HttpServerMock(); 8418 var mock = new HttpServerMock();
8839 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads; 8419 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads;
8840 var arg_accountId = "foo"; 8420 var arg_accountId = "foo";
8841 var arg_webPropertyId = "foo"; 8421 var arg_webPropertyId = "foo";
8842 var arg_customDataSourceId = "foo"; 8422 var arg_customDataSourceId = "foo";
8843 var arg_max_results = 42; 8423 var arg_max_results = 42;
8844 var arg_start_index = 42; 8424 var arg_start_index = 42;
8845 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8425 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8846 var path = (req.url).path; 8426 var path = (req.url).path;
8847 var pathOffset = 0; 8427 var pathOffset = 0;
8848 var index; 8428 var index;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
8892 } 8472 }
8893 } 8473 }
8894 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 8474 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
8895 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 8475 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
8896 8476
8897 8477
8898 var h = { 8478 var h = {
8899 "content-type" : "application/json; charset=utf-8", 8479 "content-type" : "application/json; charset=utf-8",
8900 }; 8480 };
8901 var resp = convert.JSON.encode(buildUploads()); 8481 var resp = convert.JSON.encode(buildUploads());
8902 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8482 return new async.Future.value(stringResponse(200, h, resp));
8903 }), true); 8483 }), true);
8904 res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, max_res ults: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(( (api.Uploads response) { 8484 res.list(arg_accountId, arg_webPropertyId, arg_customDataSourceId, max_res ults: arg_max_results, start_index: arg_start_index).then(unittest.expectAsync(( (api.Uploads response) {
8905 checkUploads(response); 8485 checkUploads(response);
8906 }))); 8486 })));
8907 }); 8487 });
8908 8488
8909 unittest.test("method--migrateDataImport", () {
8910
8911 var mock = new common_test.HttpServerMock();
8912 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads;
8913 var arg_accountId = "foo";
8914 var arg_webPropertyId = "foo";
8915 var arg_customDataSourceId = "foo";
8916 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8917 var path = (req.url).path;
8918 var pathOffset = 0;
8919 var index;
8920 var subPart;
8921 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
8922 pathOffset += 1;
8923 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("analytics/v3/"));
8924 pathOffset += 13;
8925 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq uals("management/accounts/"));
8926 pathOffset += 20;
8927 index = path.indexOf("/webproperties/", pathOffset);
8928 unittest.expect(index >= 0, unittest.isTrue);
8929 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
8930 pathOffset = index;
8931 unittest.expect(subPart, unittest.equals("$arg_accountId"));
8932 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("/webproperties/"));
8933 pathOffset += 15;
8934 index = path.indexOf("/customDataSources/", pathOffset);
8935 unittest.expect(index >= 0, unittest.isTrue);
8936 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
8937 pathOffset = index;
8938 unittest.expect(subPart, unittest.equals("$arg_webPropertyId"));
8939 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq uals("/customDataSources/"));
8940 pathOffset += 19;
8941 index = path.indexOf("/migrateDataImport", pathOffset);
8942 unittest.expect(index >= 0, unittest.isTrue);
8943 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
8944 pathOffset = index;
8945 unittest.expect(subPart, unittest.equals("$arg_customDataSourceId"));
8946 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("/migrateDataImport"));
8947 pathOffset += 18;
8948
8949 var query = (req.url).query;
8950 var queryOffset = 0;
8951 var queryMap = {};
8952 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
8953 parseBool(n) {
8954 if (n == "true") return true;
8955 if (n == "false") return false;
8956 if (n == null) return null;
8957 throw new core.ArgumentError("Invalid boolean: $n");
8958 }
8959 if (query.length > 0) {
8960 for (var part in query.split("&")) {
8961 var keyvalue = part.split("=");
8962 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
8963 }
8964 }
8965
8966
8967 var h = {
8968 "content-type" : "application/json; charset=utf-8",
8969 };
8970 var resp = "";
8971 return new async.Future.value(common_test.stringResponse(200, h, resp));
8972 }), true);
8973 res.migrateDataImport(arg_accountId, arg_webPropertyId, arg_customDataSour ceId).then(unittest.expectAsync((_) {}));
8974 });
8975
8976 unittest.test("method--uploadData", () { 8489 unittest.test("method--uploadData", () {
8977 // TODO: Implement tests for media upload; 8490 // TODO: Implement tests for media upload;
8978 // TODO: Implement tests for media download; 8491 // TODO: Implement tests for media download;
8979 8492
8980 var mock = new common_test.HttpServerMock(); 8493 var mock = new HttpServerMock();
8981 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads; 8494 api.ManagementUploadsResourceApi res = new api.AnalyticsApi(mock).manageme nt.uploads;
8982 var arg_accountId = "foo"; 8495 var arg_accountId = "foo";
8983 var arg_webPropertyId = "foo"; 8496 var arg_webPropertyId = "foo";
8984 var arg_customDataSourceId = "foo"; 8497 var arg_customDataSourceId = "foo";
8985 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8498 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
8986 var path = (req.url).path; 8499 var path = (req.url).path;
8987 var pathOffset = 0; 8500 var pathOffset = 0;
8988 var index; 8501 var index;
8989 var subPart; 8502 var subPart;
8990 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8503 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
9030 var keyvalue = part.split("="); 8543 var keyvalue = part.split("=");
9031 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8544 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9032 } 8545 }
9033 } 8546 }
9034 8547
9035 8548
9036 var h = { 8549 var h = {
9037 "content-type" : "application/json; charset=utf-8", 8550 "content-type" : "application/json; charset=utf-8",
9038 }; 8551 };
9039 var resp = convert.JSON.encode(buildUpload()); 8552 var resp = convert.JSON.encode(buildUpload());
9040 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8553 return new async.Future.value(stringResponse(200, h, resp));
9041 }), true); 8554 }), true);
9042 res.uploadData(arg_accountId, arg_webPropertyId, arg_customDataSourceId).t hen(unittest.expectAsync(((api.Upload response) { 8555 res.uploadData(arg_accountId, arg_webPropertyId, arg_customDataSourceId).t hen(unittest.expectAsync(((api.Upload response) {
9043 checkUpload(response); 8556 checkUpload(response);
9044 }))); 8557 })));
9045 }); 8558 });
9046 8559
9047 }); 8560 });
9048 8561
9049 8562
9050 unittest.group("resource-ManagementWebPropertyAdWordsLinksResourceApi", () { 8563 unittest.group("resource-ManagementWebPropertyAdWordsLinksResourceApi", () {
9051 unittest.test("method--delete", () { 8564 unittest.test("method--delete", () {
9052 8565
9053 var mock = new common_test.HttpServerMock(); 8566 var mock = new HttpServerMock();
9054 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks; 8567 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks;
9055 var arg_accountId = "foo"; 8568 var arg_accountId = "foo";
9056 var arg_webPropertyId = "foo"; 8569 var arg_webPropertyId = "foo";
9057 var arg_webPropertyAdWordsLinkId = "foo"; 8570 var arg_webPropertyAdWordsLinkId = "foo";
9058 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8571 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9059 var path = (req.url).path; 8572 var path = (req.url).path;
9060 var pathOffset = 0; 8573 var pathOffset = 0;
9061 var index; 8574 var index;
9062 var subPart; 8575 var subPart;
9063 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8576 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
9099 var keyvalue = part.split("="); 8612 var keyvalue = part.split("=");
9100 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8613 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9101 } 8614 }
9102 } 8615 }
9103 8616
9104 8617
9105 var h = { 8618 var h = {
9106 "content-type" : "application/json; charset=utf-8", 8619 "content-type" : "application/json; charset=utf-8",
9107 }; 8620 };
9108 var resp = ""; 8621 var resp = "";
9109 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8622 return new async.Future.value(stringResponse(200, h, resp));
9110 }), true); 8623 }), true);
9111 res.delete(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId) .then(unittest.expectAsync((_) {})); 8624 res.delete(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId) .then(unittest.expectAsync((_) {}));
9112 }); 8625 });
9113 8626
9114 unittest.test("method--get", () { 8627 unittest.test("method--get", () {
9115 8628
9116 var mock = new common_test.HttpServerMock(); 8629 var mock = new HttpServerMock();
9117 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks; 8630 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks;
9118 var arg_accountId = "foo"; 8631 var arg_accountId = "foo";
9119 var arg_webPropertyId = "foo"; 8632 var arg_webPropertyId = "foo";
9120 var arg_webPropertyAdWordsLinkId = "foo"; 8633 var arg_webPropertyAdWordsLinkId = "foo";
9121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8634 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9122 var path = (req.url).path; 8635 var path = (req.url).path;
9123 var pathOffset = 0; 8636 var pathOffset = 0;
9124 var index; 8637 var index;
9125 var subPart; 8638 var subPart;
9126 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8639 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
9162 var keyvalue = part.split("="); 8675 var keyvalue = part.split("=");
9163 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8676 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9164 } 8677 }
9165 } 8678 }
9166 8679
9167 8680
9168 var h = { 8681 var h = {
9169 "content-type" : "application/json; charset=utf-8", 8682 "content-type" : "application/json; charset=utf-8",
9170 }; 8683 };
9171 var resp = convert.JSON.encode(buildEntityAdWordsLink()); 8684 var resp = convert.JSON.encode(buildEntityAdWordsLink());
9172 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8685 return new async.Future.value(stringResponse(200, h, resp));
9173 }), true); 8686 }), true);
9174 res.get(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).th en(unittest.expectAsync(((api.EntityAdWordsLink response) { 8687 res.get(arg_accountId, arg_webPropertyId, arg_webPropertyAdWordsLinkId).th en(unittest.expectAsync(((api.EntityAdWordsLink response) {
9175 checkEntityAdWordsLink(response); 8688 checkEntityAdWordsLink(response);
9176 }))); 8689 })));
9177 }); 8690 });
9178 8691
9179 unittest.test("method--insert", () { 8692 unittest.test("method--insert", () {
9180 8693
9181 var mock = new common_test.HttpServerMock(); 8694 var mock = new HttpServerMock();
9182 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks; 8695 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks;
9183 var arg_request = buildEntityAdWordsLink(); 8696 var arg_request = buildEntityAdWordsLink();
9184 var arg_accountId = "foo"; 8697 var arg_accountId = "foo";
9185 var arg_webPropertyId = "foo"; 8698 var arg_webPropertyId = "foo";
9186 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8699 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9187 var obj = new api.EntityAdWordsLink.fromJson(json); 8700 var obj = new api.EntityAdWordsLink.fromJson(json);
9188 checkEntityAdWordsLink(obj); 8701 checkEntityAdWordsLink(obj);
9189 8702
9190 var path = (req.url).path; 8703 var path = (req.url).path;
9191 var pathOffset = 0; 8704 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
9227 var keyvalue = part.split("="); 8740 var keyvalue = part.split("=");
9228 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8741 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9229 } 8742 }
9230 } 8743 }
9231 8744
9232 8745
9233 var h = { 8746 var h = {
9234 "content-type" : "application/json; charset=utf-8", 8747 "content-type" : "application/json; charset=utf-8",
9235 }; 8748 };
9236 var resp = convert.JSON.encode(buildEntityAdWordsLink()); 8749 var resp = convert.JSON.encode(buildEntityAdWordsLink());
9237 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8750 return new async.Future.value(stringResponse(200, h, resp));
9238 }), true); 8751 }), true);
9239 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.EntityAdWordsLink response) { 8752 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.EntityAdWordsLink response) {
9240 checkEntityAdWordsLink(response); 8753 checkEntityAdWordsLink(response);
9241 }))); 8754 })));
9242 }); 8755 });
9243 8756
9244 unittest.test("method--list", () { 8757 unittest.test("method--list", () {
9245 8758
9246 var mock = new common_test.HttpServerMock(); 8759 var mock = new HttpServerMock();
9247 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks; 8760 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks;
9248 var arg_accountId = "foo"; 8761 var arg_accountId = "foo";
9249 var arg_webPropertyId = "foo"; 8762 var arg_webPropertyId = "foo";
9250 var arg_max_results = 42; 8763 var arg_max_results = 42;
9251 var arg_start_index = 42; 8764 var arg_start_index = 42;
9252 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8765 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9253 var path = (req.url).path; 8766 var path = (req.url).path;
9254 var pathOffset = 0; 8767 var pathOffset = 0;
9255 var index; 8768 var index;
9256 var subPart; 8769 var subPart;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
9292 } 8805 }
9293 } 8806 }
9294 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 8807 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
9295 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 8808 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
9296 8809
9297 8810
9298 var h = { 8811 var h = {
9299 "content-type" : "application/json; charset=utf-8", 8812 "content-type" : "application/json; charset=utf-8",
9300 }; 8813 };
9301 var resp = convert.JSON.encode(buildEntityAdWordsLinks()); 8814 var resp = convert.JSON.encode(buildEntityAdWordsLinks());
9302 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8815 return new async.Future.value(stringResponse(200, h, resp));
9303 }), true); 8816 }), true);
9304 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.EntityAdWordsLinks response) { 8817 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.EntityAdWordsLinks response) {
9305 checkEntityAdWordsLinks(response); 8818 checkEntityAdWordsLinks(response);
9306 }))); 8819 })));
9307 }); 8820 });
9308 8821
9309 unittest.test("method--patch", () { 8822 unittest.test("method--patch", () {
9310 8823
9311 var mock = new common_test.HttpServerMock(); 8824 var mock = new HttpServerMock();
9312 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks; 8825 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks;
9313 var arg_request = buildEntityAdWordsLink(); 8826 var arg_request = buildEntityAdWordsLink();
9314 var arg_accountId = "foo"; 8827 var arg_accountId = "foo";
9315 var arg_webPropertyId = "foo"; 8828 var arg_webPropertyId = "foo";
9316 var arg_webPropertyAdWordsLinkId = "foo"; 8829 var arg_webPropertyAdWordsLinkId = "foo";
9317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8830 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9318 var obj = new api.EntityAdWordsLink.fromJson(json); 8831 var obj = new api.EntityAdWordsLink.fromJson(json);
9319 checkEntityAdWordsLink(obj); 8832 checkEntityAdWordsLink(obj);
9320 8833
9321 var path = (req.url).path; 8834 var path = (req.url).path;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
9361 var keyvalue = part.split("="); 8874 var keyvalue = part.split("=");
9362 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8875 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9363 } 8876 }
9364 } 8877 }
9365 8878
9366 8879
9367 var h = { 8880 var h = {
9368 "content-type" : "application/json; charset=utf-8", 8881 "content-type" : "application/json; charset=utf-8",
9369 }; 8882 };
9370 var resp = convert.JSON.encode(buildEntityAdWordsLink()); 8883 var resp = convert.JSON.encode(buildEntityAdWordsLink());
9371 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8884 return new async.Future.value(stringResponse(200, h, resp));
9372 }), true); 8885 }), true);
9373 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAd WordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) { 8886 res.patch(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyAd WordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) {
9374 checkEntityAdWordsLink(response); 8887 checkEntityAdWordsLink(response);
9375 }))); 8888 })));
9376 }); 8889 });
9377 8890
9378 unittest.test("method--update", () { 8891 unittest.test("method--update", () {
9379 8892
9380 var mock = new common_test.HttpServerMock(); 8893 var mock = new HttpServerMock();
9381 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks; 8894 api.ManagementWebPropertyAdWordsLinksResourceApi res = new api.AnalyticsAp i(mock).management.webPropertyAdWordsLinks;
9382 var arg_request = buildEntityAdWordsLink(); 8895 var arg_request = buildEntityAdWordsLink();
9383 var arg_accountId = "foo"; 8896 var arg_accountId = "foo";
9384 var arg_webPropertyId = "foo"; 8897 var arg_webPropertyId = "foo";
9385 var arg_webPropertyAdWordsLinkId = "foo"; 8898 var arg_webPropertyAdWordsLinkId = "foo";
9386 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8899 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9387 var obj = new api.EntityAdWordsLink.fromJson(json); 8900 var obj = new api.EntityAdWordsLink.fromJson(json);
9388 checkEntityAdWordsLink(obj); 8901 checkEntityAdWordsLink(obj);
9389 8902
9390 var path = (req.url).path; 8903 var path = (req.url).path;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
9430 var keyvalue = part.split("="); 8943 var keyvalue = part.split("=");
9431 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 8944 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9432 } 8945 }
9433 } 8946 }
9434 8947
9435 8948
9436 var h = { 8949 var h = {
9437 "content-type" : "application/json; charset=utf-8", 8950 "content-type" : "application/json; charset=utf-8",
9438 }; 8951 };
9439 var resp = convert.JSON.encode(buildEntityAdWordsLink()); 8952 var resp = convert.JSON.encode(buildEntityAdWordsLink());
9440 return new async.Future.value(common_test.stringResponse(200, h, resp)); 8953 return new async.Future.value(stringResponse(200, h, resp));
9441 }), true); 8954 }), true);
9442 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyA dWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) { 8955 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_webPropertyA dWordsLinkId).then(unittest.expectAsync(((api.EntityAdWordsLink response) {
9443 checkEntityAdWordsLink(response); 8956 checkEntityAdWordsLink(response);
9444 }))); 8957 })));
9445 }); 8958 });
9446 8959
9447 }); 8960 });
9448 8961
9449 8962
9450 unittest.group("resource-ManagementWebpropertiesResourceApi", () { 8963 unittest.group("resource-ManagementWebpropertiesResourceApi", () {
9451 unittest.test("method--get", () { 8964 unittest.test("method--get", () {
9452 8965
9453 var mock = new common_test.HttpServerMock(); 8966 var mock = new HttpServerMock();
9454 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties; 8967 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties;
9455 var arg_accountId = "foo"; 8968 var arg_accountId = "foo";
9456 var arg_webPropertyId = "foo"; 8969 var arg_webPropertyId = "foo";
9457 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 8970 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9458 var path = (req.url).path; 8971 var path = (req.url).path;
9459 var pathOffset = 0; 8972 var pathOffset = 0;
9460 var index; 8973 var index;
9461 var subPart; 8974 var subPart;
9462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 8975 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9463 pathOffset += 1; 8976 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
9491 var keyvalue = part.split("="); 9004 var keyvalue = part.split("=");
9492 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9005 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9493 } 9006 }
9494 } 9007 }
9495 9008
9496 9009
9497 var h = { 9010 var h = {
9498 "content-type" : "application/json; charset=utf-8", 9011 "content-type" : "application/json; charset=utf-8",
9499 }; 9012 };
9500 var resp = convert.JSON.encode(buildWebproperty()); 9013 var resp = convert.JSON.encode(buildWebproperty());
9501 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9014 return new async.Future.value(stringResponse(200, h, resp));
9502 }), true); 9015 }), true);
9503 res.get(arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api. Webproperty response) { 9016 res.get(arg_accountId, arg_webPropertyId).then(unittest.expectAsync(((api. Webproperty response) {
9504 checkWebproperty(response); 9017 checkWebproperty(response);
9505 }))); 9018 })));
9506 }); 9019 });
9507 9020
9508 unittest.test("method--insert", () { 9021 unittest.test("method--insert", () {
9509 9022
9510 var mock = new common_test.HttpServerMock(); 9023 var mock = new HttpServerMock();
9511 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties; 9024 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties;
9512 var arg_request = buildWebproperty(); 9025 var arg_request = buildWebproperty();
9513 var arg_accountId = "foo"; 9026 var arg_accountId = "foo";
9514 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9027 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9515 var obj = new api.Webproperty.fromJson(json); 9028 var obj = new api.Webproperty.fromJson(json);
9516 checkWebproperty(obj); 9029 checkWebproperty(obj);
9517 9030
9518 var path = (req.url).path; 9031 var path = (req.url).path;
9519 var pathOffset = 0; 9032 var pathOffset = 0;
9520 var index; 9033 var index;
(...skipping 27 matching lines...) Expand all
9548 var keyvalue = part.split("="); 9061 var keyvalue = part.split("=");
9549 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9062 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9550 } 9063 }
9551 } 9064 }
9552 9065
9553 9066
9554 var h = { 9067 var h = {
9555 "content-type" : "application/json; charset=utf-8", 9068 "content-type" : "application/json; charset=utf-8",
9556 }; 9069 };
9557 var resp = convert.JSON.encode(buildWebproperty()); 9070 var resp = convert.JSON.encode(buildWebproperty());
9558 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9071 return new async.Future.value(stringResponse(200, h, resp));
9559 }), true); 9072 }), true);
9560 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Web property response) { 9073 res.insert(arg_request, arg_accountId).then(unittest.expectAsync(((api.Web property response) {
9561 checkWebproperty(response); 9074 checkWebproperty(response);
9562 }))); 9075 })));
9563 }); 9076 });
9564 9077
9565 unittest.test("method--list", () { 9078 unittest.test("method--list", () {
9566 9079
9567 var mock = new common_test.HttpServerMock(); 9080 var mock = new HttpServerMock();
9568 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties; 9081 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties;
9569 var arg_accountId = "foo"; 9082 var arg_accountId = "foo";
9570 var arg_max_results = 42; 9083 var arg_max_results = 42;
9571 var arg_start_index = 42; 9084 var arg_start_index = 42;
9572 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9085 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9573 var path = (req.url).path; 9086 var path = (req.url).path;
9574 var pathOffset = 0; 9087 var pathOffset = 0;
9575 var index; 9088 var index;
9576 var subPart; 9089 var subPart;
9577 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9090 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 27 matching lines...) Expand all
9605 } 9118 }
9606 } 9119 }
9607 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 9120 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
9608 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 9121 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
9609 9122
9610 9123
9611 var h = { 9124 var h = {
9612 "content-type" : "application/json; charset=utf-8", 9125 "content-type" : "application/json; charset=utf-8",
9613 }; 9126 };
9614 var resp = convert.JSON.encode(buildWebproperties()); 9127 var resp = convert.JSON.encode(buildWebproperties());
9615 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9128 return new async.Future.value(stringResponse(200, h, resp));
9616 }), true); 9129 }), true);
9617 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta rt_index).then(unittest.expectAsync(((api.Webproperties response) { 9130 res.list(arg_accountId, max_results: arg_max_results, start_index: arg_sta rt_index).then(unittest.expectAsync(((api.Webproperties response) {
9618 checkWebproperties(response); 9131 checkWebproperties(response);
9619 }))); 9132 })));
9620 }); 9133 });
9621 9134
9622 unittest.test("method--patch", () { 9135 unittest.test("method--patch", () {
9623 9136
9624 var mock = new common_test.HttpServerMock(); 9137 var mock = new HttpServerMock();
9625 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties; 9138 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties;
9626 var arg_request = buildWebproperty(); 9139 var arg_request = buildWebproperty();
9627 var arg_accountId = "foo"; 9140 var arg_accountId = "foo";
9628 var arg_webPropertyId = "foo"; 9141 var arg_webPropertyId = "foo";
9629 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9142 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9630 var obj = new api.Webproperty.fromJson(json); 9143 var obj = new api.Webproperty.fromJson(json);
9631 checkWebproperty(obj); 9144 checkWebproperty(obj);
9632 9145
9633 var path = (req.url).path; 9146 var path = (req.url).path;
9634 var pathOffset = 0; 9147 var pathOffset = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
9666 var keyvalue = part.split("="); 9179 var keyvalue = part.split("=");
9667 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9180 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9668 } 9181 }
9669 } 9182 }
9670 9183
9671 9184
9672 var h = { 9185 var h = {
9673 "content-type" : "application/json; charset=utf-8", 9186 "content-type" : "application/json; charset=utf-8",
9674 }; 9187 };
9675 var resp = convert.JSON.encode(buildWebproperty()); 9188 var resp = convert.JSON.encode(buildWebproperty());
9676 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9189 return new async.Future.value(stringResponse(200, h, resp));
9677 }), true); 9190 }), true);
9678 res.patch(arg_request, arg_accountId, arg_webPropertyId).then(unittest.exp ectAsync(((api.Webproperty response) { 9191 res.patch(arg_request, arg_accountId, arg_webPropertyId).then(unittest.exp ectAsync(((api.Webproperty response) {
9679 checkWebproperty(response); 9192 checkWebproperty(response);
9680 }))); 9193 })));
9681 }); 9194 });
9682 9195
9683 unittest.test("method--update", () { 9196 unittest.test("method--update", () {
9684 9197
9685 var mock = new common_test.HttpServerMock(); 9198 var mock = new HttpServerMock();
9686 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties; 9199 api.ManagementWebpropertiesResourceApi res = new api.AnalyticsApi(mock).ma nagement.webproperties;
9687 var arg_request = buildWebproperty(); 9200 var arg_request = buildWebproperty();
9688 var arg_accountId = "foo"; 9201 var arg_accountId = "foo";
9689 var arg_webPropertyId = "foo"; 9202 var arg_webPropertyId = "foo";
9690 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9203 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9691 var obj = new api.Webproperty.fromJson(json); 9204 var obj = new api.Webproperty.fromJson(json);
9692 checkWebproperty(obj); 9205 checkWebproperty(obj);
9693 9206
9694 var path = (req.url).path; 9207 var path = (req.url).path;
9695 var pathOffset = 0; 9208 var pathOffset = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
9727 var keyvalue = part.split("="); 9240 var keyvalue = part.split("=");
9728 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9241 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9729 } 9242 }
9730 } 9243 }
9731 9244
9732 9245
9733 var h = { 9246 var h = {
9734 "content-type" : "application/json; charset=utf-8", 9247 "content-type" : "application/json; charset=utf-8",
9735 }; 9248 };
9736 var resp = convert.JSON.encode(buildWebproperty()); 9249 var resp = convert.JSON.encode(buildWebproperty());
9737 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9250 return new async.Future.value(stringResponse(200, h, resp));
9738 }), true); 9251 }), true);
9739 res.update(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.Webproperty response) { 9252 res.update(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.Webproperty response) {
9740 checkWebproperty(response); 9253 checkWebproperty(response);
9741 }))); 9254 })));
9742 }); 9255 });
9743 9256
9744 }); 9257 });
9745 9258
9746 9259
9747 unittest.group("resource-ManagementWebpropertyUserLinksResourceApi", () { 9260 unittest.group("resource-ManagementWebpropertyUserLinksResourceApi", () {
9748 unittest.test("method--delete", () { 9261 unittest.test("method--delete", () {
9749 9262
9750 var mock = new common_test.HttpServerMock(); 9263 var mock = new HttpServerMock();
9751 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m ock).management.webpropertyUserLinks; 9264 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m ock).management.webpropertyUserLinks;
9752 var arg_accountId = "foo"; 9265 var arg_accountId = "foo";
9753 var arg_webPropertyId = "foo"; 9266 var arg_webPropertyId = "foo";
9754 var arg_linkId = "foo"; 9267 var arg_linkId = "foo";
9755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9268 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9756 var path = (req.url).path; 9269 var path = (req.url).path;
9757 var pathOffset = 0; 9270 var pathOffset = 0;
9758 var index; 9271 var index;
9759 var subPart; 9272 var subPart;
9760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9273 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
9796 var keyvalue = part.split("="); 9309 var keyvalue = part.split("=");
9797 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9310 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9798 } 9311 }
9799 } 9312 }
9800 9313
9801 9314
9802 var h = { 9315 var h = {
9803 "content-type" : "application/json; charset=utf-8", 9316 "content-type" : "application/json; charset=utf-8",
9804 }; 9317 };
9805 var resp = ""; 9318 var resp = "";
9806 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9319 return new async.Future.value(stringResponse(200, h, resp));
9807 }), true); 9320 }), true);
9808 res.delete(arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.exp ectAsync((_) {})); 9321 res.delete(arg_accountId, arg_webPropertyId, arg_linkId).then(unittest.exp ectAsync((_) {}));
9809 }); 9322 });
9810 9323
9811 unittest.test("method--insert", () { 9324 unittest.test("method--insert", () {
9812 9325
9813 var mock = new common_test.HttpServerMock(); 9326 var mock = new HttpServerMock();
9814 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m ock).management.webpropertyUserLinks; 9327 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m ock).management.webpropertyUserLinks;
9815 var arg_request = buildEntityUserLink(); 9328 var arg_request = buildEntityUserLink();
9816 var arg_accountId = "foo"; 9329 var arg_accountId = "foo";
9817 var arg_webPropertyId = "foo"; 9330 var arg_webPropertyId = "foo";
9818 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9331 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9819 var obj = new api.EntityUserLink.fromJson(json); 9332 var obj = new api.EntityUserLink.fromJson(json);
9820 checkEntityUserLink(obj); 9333 checkEntityUserLink(obj);
9821 9334
9822 var path = (req.url).path; 9335 var path = (req.url).path;
9823 var pathOffset = 0; 9336 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
9859 var keyvalue = part.split("="); 9372 var keyvalue = part.split("=");
9860 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9373 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9861 } 9374 }
9862 } 9375 }
9863 9376
9864 9377
9865 var h = { 9378 var h = {
9866 "content-type" : "application/json; charset=utf-8", 9379 "content-type" : "application/json; charset=utf-8",
9867 }; 9380 };
9868 var resp = convert.JSON.encode(buildEntityUserLink()); 9381 var resp = convert.JSON.encode(buildEntityUserLink());
9869 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9382 return new async.Future.value(stringResponse(200, h, resp));
9870 }), true); 9383 }), true);
9871 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.EntityUserLink response) { 9384 res.insert(arg_request, arg_accountId, arg_webPropertyId).then(unittest.ex pectAsync(((api.EntityUserLink response) {
9872 checkEntityUserLink(response); 9385 checkEntityUserLink(response);
9873 }))); 9386 })));
9874 }); 9387 });
9875 9388
9876 unittest.test("method--list", () { 9389 unittest.test("method--list", () {
9877 9390
9878 var mock = new common_test.HttpServerMock(); 9391 var mock = new HttpServerMock();
9879 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m ock).management.webpropertyUserLinks; 9392 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m ock).management.webpropertyUserLinks;
9880 var arg_accountId = "foo"; 9393 var arg_accountId = "foo";
9881 var arg_webPropertyId = "foo"; 9394 var arg_webPropertyId = "foo";
9882 var arg_max_results = 42; 9395 var arg_max_results = 42;
9883 var arg_start_index = 42; 9396 var arg_start_index = 42;
9884 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9397 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9885 var path = (req.url).path; 9398 var path = (req.url).path;
9886 var pathOffset = 0; 9399 var pathOffset = 0;
9887 var index; 9400 var index;
9888 var subPart; 9401 var subPart;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
9924 } 9437 }
9925 } 9438 }
9926 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results)); 9439 unittest.expect(core.int.parse(queryMap["max-results"].first), unittest. equals(arg_max_results));
9927 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index)); 9440 unittest.expect(core.int.parse(queryMap["start-index"].first), unittest. equals(arg_start_index));
9928 9441
9929 9442
9930 var h = { 9443 var h = {
9931 "content-type" : "application/json; charset=utf-8", 9444 "content-type" : "application/json; charset=utf-8",
9932 }; 9445 };
9933 var resp = convert.JSON.encode(buildEntityUserLinks()); 9446 var resp = convert.JSON.encode(buildEntityUserLinks());
9934 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9447 return new async.Future.value(stringResponse(200, h, resp));
9935 }), true); 9448 }), true);
9936 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks res ponse) { 9449 res.list(arg_accountId, arg_webPropertyId, max_results: arg_max_results, s tart_index: arg_start_index).then(unittest.expectAsync(((api.EntityUserLinks res ponse) {
9937 checkEntityUserLinks(response); 9450 checkEntityUserLinks(response);
9938 }))); 9451 })));
9939 }); 9452 });
9940 9453
9941 unittest.test("method--update", () { 9454 unittest.test("method--update", () {
9942 9455
9943 var mock = new common_test.HttpServerMock(); 9456 var mock = new HttpServerMock();
9944 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m ock).management.webpropertyUserLinks; 9457 api.ManagementWebpropertyUserLinksResourceApi res = new api.AnalyticsApi(m ock).management.webpropertyUserLinks;
9945 var arg_request = buildEntityUserLink(); 9458 var arg_request = buildEntityUserLink();
9946 var arg_accountId = "foo"; 9459 var arg_accountId = "foo";
9947 var arg_webPropertyId = "foo"; 9460 var arg_webPropertyId = "foo";
9948 var arg_linkId = "foo"; 9461 var arg_linkId = "foo";
9949 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9462 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9950 var obj = new api.EntityUserLink.fromJson(json); 9463 var obj = new api.EntityUserLink.fromJson(json);
9951 checkEntityUserLink(obj); 9464 checkEntityUserLink(obj);
9952 9465
9953 var path = (req.url).path; 9466 var path = (req.url).path;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
9993 var keyvalue = part.split("="); 9506 var keyvalue = part.split("=");
9994 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9507 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9995 } 9508 }
9996 } 9509 }
9997 9510
9998 9511
9999 var h = { 9512 var h = {
10000 "content-type" : "application/json; charset=utf-8", 9513 "content-type" : "application/json; charset=utf-8",
10001 }; 9514 };
10002 var resp = convert.JSON.encode(buildEntityUserLink()); 9515 var resp = convert.JSON.encode(buildEntityUserLink());
10003 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9516 return new async.Future.value(stringResponse(200, h, resp));
10004 }), true); 9517 }), true);
10005 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_linkId).then (unittest.expectAsync(((api.EntityUserLink response) { 9518 res.update(arg_request, arg_accountId, arg_webPropertyId, arg_linkId).then (unittest.expectAsync(((api.EntityUserLink response) {
10006 checkEntityUserLink(response); 9519 checkEntityUserLink(response);
10007 }))); 9520 })));
10008 }); 9521 });
10009 9522
10010 }); 9523 });
10011 9524
10012 9525
10013 unittest.group("resource-MetadataColumnsResourceApi", () { 9526 unittest.group("resource-MetadataColumnsResourceApi", () {
10014 unittest.test("method--list", () { 9527 unittest.test("method--list", () {
10015 9528
10016 var mock = new common_test.HttpServerMock(); 9529 var mock = new HttpServerMock();
10017 api.MetadataColumnsResourceApi res = new api.AnalyticsApi(mock).metadata.c olumns; 9530 api.MetadataColumnsResourceApi res = new api.AnalyticsApi(mock).metadata.c olumns;
10018 var arg_reportType = "foo"; 9531 var arg_reportType = "foo";
10019 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9532 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10020 var path = (req.url).path; 9533 var path = (req.url).path;
10021 var pathOffset = 0; 9534 var pathOffset = 0;
10022 var index; 9535 var index;
10023 var subPart; 9536 var subPart;
10024 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9537 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10025 pathOffset += 1; 9538 pathOffset += 1;
10026 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("analytics/v3/")); 9539 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("analytics/v3/"));
(...skipping 23 matching lines...) Expand all
10050 var keyvalue = part.split("="); 9563 var keyvalue = part.split("=");
10051 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9564 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10052 } 9565 }
10053 } 9566 }
10054 9567
10055 9568
10056 var h = { 9569 var h = {
10057 "content-type" : "application/json; charset=utf-8", 9570 "content-type" : "application/json; charset=utf-8",
10058 }; 9571 };
10059 var resp = convert.JSON.encode(buildColumns()); 9572 var resp = convert.JSON.encode(buildColumns());
10060 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9573 return new async.Future.value(stringResponse(200, h, resp));
10061 }), true); 9574 }), true);
10062 res.list(arg_reportType).then(unittest.expectAsync(((api.Columns response) { 9575 res.list(arg_reportType).then(unittest.expectAsync(((api.Columns response) {
10063 checkColumns(response); 9576 checkColumns(response);
10064 }))); 9577 })));
10065 }); 9578 });
10066 9579
10067 }); 9580 });
10068 9581
10069 9582
10070 unittest.group("resource-ProvisioningResourceApi", () { 9583 unittest.group("resource-ProvisioningResourceApi", () {
10071 unittest.test("method--createAccountTicket", () { 9584 unittest.test("method--createAccountTicket", () {
10072 9585
10073 var mock = new common_test.HttpServerMock(); 9586 var mock = new HttpServerMock();
10074 api.ProvisioningResourceApi res = new api.AnalyticsApi(mock).provisioning; 9587 api.ProvisioningResourceApi res = new api.AnalyticsApi(mock).provisioning;
10075 var arg_request = buildAccountTicket(); 9588 var arg_request = buildAccountTicket();
10076 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9589 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10077 var obj = new api.AccountTicket.fromJson(json); 9590 var obj = new api.AccountTicket.fromJson(json);
10078 checkAccountTicket(obj); 9591 checkAccountTicket(obj);
10079 9592
10080 var path = (req.url).path; 9593 var path = (req.url).path;
10081 var pathOffset = 0; 9594 var pathOffset = 0;
10082 var index; 9595 var index;
10083 var subPart; 9596 var subPart;
(...skipping 19 matching lines...) Expand all
10103 var keyvalue = part.split("="); 9616 var keyvalue = part.split("=");
10104 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9617 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10105 } 9618 }
10106 } 9619 }
10107 9620
10108 9621
10109 var h = { 9622 var h = {
10110 "content-type" : "application/json; charset=utf-8", 9623 "content-type" : "application/json; charset=utf-8",
10111 }; 9624 };
10112 var resp = convert.JSON.encode(buildAccountTicket()); 9625 var resp = convert.JSON.encode(buildAccountTicket());
10113 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9626 return new async.Future.value(stringResponse(200, h, resp));
10114 }), true); 9627 }), true);
10115 res.createAccountTicket(arg_request).then(unittest.expectAsync(((api.Accou ntTicket response) { 9628 res.createAccountTicket(arg_request).then(unittest.expectAsync(((api.Accou ntTicket response) {
10116 checkAccountTicket(response); 9629 checkAccountTicket(response);
10117 }))); 9630 })));
10118 }); 9631 });
10119 9632
10120 }); 9633 });
10121 9634
10122 9635
10123 } 9636 }
10124 9637
OLDNEW
« no previous file with comments | « generated/googleapis/test/adsensehost/v4_1_test.dart ('k') | generated/googleapis/test/androidenterprise/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698