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

Side by Side Diff: generated/googleapis/test/dfareporting/v2_0_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.dfareporting.v2_0.test; 1 library googleapis.dfareporting.v2_0.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/dfareporting/v2_0.dart' as api; 12 import 'package:googleapis/dfareporting/v2_0.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 }
18 22
19 buildUnnamed284() { 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 }
53
54 buildUnnamed697() {
20 var o = new core.List<core.String>(); 55 var o = new core.List<core.String>();
21 o.add("foo"); 56 o.add("foo");
22 o.add("foo"); 57 o.add("foo");
23 return o; 58 return o;
24 } 59 }
25 60
26 checkUnnamed284(core.List<core.String> o) { 61 checkUnnamed697(core.List<core.String> o) {
27 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
28 unittest.expect(o[0], unittest.equals('foo')); 63 unittest.expect(o[0], unittest.equals('foo'));
29 unittest.expect(o[1], unittest.equals('foo')); 64 unittest.expect(o[1], unittest.equals('foo'));
30 } 65 }
31 66
32 buildUnnamed285() { 67 buildUnnamed698() {
33 var o = new core.List<core.String>(); 68 var o = new core.List<core.String>();
34 o.add("foo"); 69 o.add("foo");
35 o.add("foo"); 70 o.add("foo");
36 return o; 71 return o;
37 } 72 }
38 73
39 checkUnnamed285(core.List<core.String> o) { 74 checkUnnamed698(core.List<core.String> o) {
40 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
41 unittest.expect(o[0], unittest.equals('foo')); 76 unittest.expect(o[0], unittest.equals('foo'));
42 unittest.expect(o[1], unittest.equals('foo')); 77 unittest.expect(o[1], unittest.equals('foo'));
43 } 78 }
44 79
45 core.int buildCounterAccount = 0; 80 core.int buildCounterAccount = 0;
46 buildAccount() { 81 buildAccount() {
47 var o = new api.Account(); 82 var o = new api.Account();
48 buildCounterAccount++; 83 buildCounterAccount++;
49 if (buildCounterAccount < 3) { 84 if (buildCounterAccount < 3) {
50 o.accountPermissionIds = buildUnnamed284(); 85 o.accountPermissionIds = buildUnnamed697();
51 o.accountProfile = "foo"; 86 o.accountProfile = "foo";
52 o.active = true; 87 o.active = true;
53 o.activeAdsLimitTier = "foo"; 88 o.activeAdsLimitTier = "foo";
54 o.activeViewOptOut = true; 89 o.activeViewOptOut = true;
55 o.availablePermissionIds = buildUnnamed285(); 90 o.availablePermissionIds = buildUnnamed698();
56 o.comscoreVceEnabled = true; 91 o.comscoreVceEnabled = true;
57 o.countryId = "foo"; 92 o.countryId = "foo";
58 o.currencyId = "foo"; 93 o.currencyId = "foo";
59 o.defaultCreativeSizeId = "foo"; 94 o.defaultCreativeSizeId = "foo";
60 o.description = "foo"; 95 o.description = "foo";
61 o.id = "foo"; 96 o.id = "foo";
62 o.kind = "foo"; 97 o.kind = "foo";
63 o.locale = "foo"; 98 o.locale = "foo";
64 o.maximumImageSize = "foo"; 99 o.maximumImageSize = "foo";
65 o.name = "foo"; 100 o.name = "foo";
66 o.nielsenOcrEnabled = true; 101 o.nielsenOcrEnabled = true;
67 o.reportsConfiguration = buildReportsConfiguration(); 102 o.reportsConfiguration = buildReportsConfiguration();
68 o.teaserSizeLimit = "foo"; 103 o.teaserSizeLimit = "foo";
69 } 104 }
70 buildCounterAccount--; 105 buildCounterAccount--;
71 return o; 106 return o;
72 } 107 }
73 108
74 checkAccount(api.Account o) { 109 checkAccount(api.Account o) {
75 buildCounterAccount++; 110 buildCounterAccount++;
76 if (buildCounterAccount < 3) { 111 if (buildCounterAccount < 3) {
77 checkUnnamed284(o.accountPermissionIds); 112 checkUnnamed697(o.accountPermissionIds);
78 unittest.expect(o.accountProfile, unittest.equals('foo')); 113 unittest.expect(o.accountProfile, unittest.equals('foo'));
79 unittest.expect(o.active, unittest.isTrue); 114 unittest.expect(o.active, unittest.isTrue);
80 unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); 115 unittest.expect(o.activeAdsLimitTier, unittest.equals('foo'));
81 unittest.expect(o.activeViewOptOut, unittest.isTrue); 116 unittest.expect(o.activeViewOptOut, unittest.isTrue);
82 checkUnnamed285(o.availablePermissionIds); 117 checkUnnamed698(o.availablePermissionIds);
83 unittest.expect(o.comscoreVceEnabled, unittest.isTrue); 118 unittest.expect(o.comscoreVceEnabled, unittest.isTrue);
84 unittest.expect(o.countryId, unittest.equals('foo')); 119 unittest.expect(o.countryId, unittest.equals('foo'));
85 unittest.expect(o.currencyId, unittest.equals('foo')); 120 unittest.expect(o.currencyId, unittest.equals('foo'));
86 unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); 121 unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo'));
87 unittest.expect(o.description, unittest.equals('foo')); 122 unittest.expect(o.description, unittest.equals('foo'));
88 unittest.expect(o.id, unittest.equals('foo')); 123 unittest.expect(o.id, unittest.equals('foo'));
89 unittest.expect(o.kind, unittest.equals('foo')); 124 unittest.expect(o.kind, unittest.equals('foo'));
90 unittest.expect(o.locale, unittest.equals('foo')); 125 unittest.expect(o.locale, unittest.equals('foo'));
91 unittest.expect(o.maximumImageSize, unittest.equals('foo')); 126 unittest.expect(o.maximumImageSize, unittest.equals('foo'));
92 unittest.expect(o.name, unittest.equals('foo')); 127 unittest.expect(o.name, unittest.equals('foo'));
(...skipping 24 matching lines...) Expand all
117 if (buildCounterAccountActiveAdSummary < 3) { 152 if (buildCounterAccountActiveAdSummary < 3) {
118 unittest.expect(o.accountId, unittest.equals('foo')); 153 unittest.expect(o.accountId, unittest.equals('foo'));
119 unittest.expect(o.activeAds, unittest.equals('foo')); 154 unittest.expect(o.activeAds, unittest.equals('foo'));
120 unittest.expect(o.activeAdsLimitTier, unittest.equals('foo')); 155 unittest.expect(o.activeAdsLimitTier, unittest.equals('foo'));
121 unittest.expect(o.availableAds, unittest.equals('foo')); 156 unittest.expect(o.availableAds, unittest.equals('foo'));
122 unittest.expect(o.kind, unittest.equals('foo')); 157 unittest.expect(o.kind, unittest.equals('foo'));
123 } 158 }
124 buildCounterAccountActiveAdSummary--; 159 buildCounterAccountActiveAdSummary--;
125 } 160 }
126 161
127 buildUnnamed286() { 162 buildUnnamed699() {
128 var o = new core.List<core.String>(); 163 var o = new core.List<core.String>();
129 o.add("foo"); 164 o.add("foo");
130 o.add("foo"); 165 o.add("foo");
131 return o; 166 return o;
132 } 167 }
133 168
134 checkUnnamed286(core.List<core.String> o) { 169 checkUnnamed699(core.List<core.String> o) {
135 unittest.expect(o, unittest.hasLength(2)); 170 unittest.expect(o, unittest.hasLength(2));
136 unittest.expect(o[0], unittest.equals('foo')); 171 unittest.expect(o[0], unittest.equals('foo'));
137 unittest.expect(o[1], unittest.equals('foo')); 172 unittest.expect(o[1], unittest.equals('foo'));
138 } 173 }
139 174
140 core.int buildCounterAccountPermission = 0; 175 core.int buildCounterAccountPermission = 0;
141 buildAccountPermission() { 176 buildAccountPermission() {
142 var o = new api.AccountPermission(); 177 var o = new api.AccountPermission();
143 buildCounterAccountPermission++; 178 buildCounterAccountPermission++;
144 if (buildCounterAccountPermission < 3) { 179 if (buildCounterAccountPermission < 3) {
145 o.accountProfiles = buildUnnamed286(); 180 o.accountProfiles = buildUnnamed699();
146 o.id = "foo"; 181 o.id = "foo";
147 o.kind = "foo"; 182 o.kind = "foo";
148 o.level = "foo"; 183 o.level = "foo";
149 o.name = "foo"; 184 o.name = "foo";
150 o.permissionGroupId = "foo"; 185 o.permissionGroupId = "foo";
151 } 186 }
152 buildCounterAccountPermission--; 187 buildCounterAccountPermission--;
153 return o; 188 return o;
154 } 189 }
155 190
156 checkAccountPermission(api.AccountPermission o) { 191 checkAccountPermission(api.AccountPermission o) {
157 buildCounterAccountPermission++; 192 buildCounterAccountPermission++;
158 if (buildCounterAccountPermission < 3) { 193 if (buildCounterAccountPermission < 3) {
159 checkUnnamed286(o.accountProfiles); 194 checkUnnamed699(o.accountProfiles);
160 unittest.expect(o.id, unittest.equals('foo')); 195 unittest.expect(o.id, unittest.equals('foo'));
161 unittest.expect(o.kind, unittest.equals('foo')); 196 unittest.expect(o.kind, unittest.equals('foo'));
162 unittest.expect(o.level, unittest.equals('foo')); 197 unittest.expect(o.level, unittest.equals('foo'));
163 unittest.expect(o.name, unittest.equals('foo')); 198 unittest.expect(o.name, unittest.equals('foo'));
164 unittest.expect(o.permissionGroupId, unittest.equals('foo')); 199 unittest.expect(o.permissionGroupId, unittest.equals('foo'));
165 } 200 }
166 buildCounterAccountPermission--; 201 buildCounterAccountPermission--;
167 } 202 }
168 203
169 core.int buildCounterAccountPermissionGroup = 0; 204 core.int buildCounterAccountPermissionGroup = 0;
(...skipping 12 matching lines...) Expand all
182 checkAccountPermissionGroup(api.AccountPermissionGroup o) { 217 checkAccountPermissionGroup(api.AccountPermissionGroup o) {
183 buildCounterAccountPermissionGroup++; 218 buildCounterAccountPermissionGroup++;
184 if (buildCounterAccountPermissionGroup < 3) { 219 if (buildCounterAccountPermissionGroup < 3) {
185 unittest.expect(o.id, unittest.equals('foo')); 220 unittest.expect(o.id, unittest.equals('foo'));
186 unittest.expect(o.kind, unittest.equals('foo')); 221 unittest.expect(o.kind, unittest.equals('foo'));
187 unittest.expect(o.name, unittest.equals('foo')); 222 unittest.expect(o.name, unittest.equals('foo'));
188 } 223 }
189 buildCounterAccountPermissionGroup--; 224 buildCounterAccountPermissionGroup--;
190 } 225 }
191 226
192 buildUnnamed287() { 227 buildUnnamed700() {
193 var o = new core.List<api.AccountPermissionGroup>(); 228 var o = new core.List<api.AccountPermissionGroup>();
194 o.add(buildAccountPermissionGroup()); 229 o.add(buildAccountPermissionGroup());
195 o.add(buildAccountPermissionGroup()); 230 o.add(buildAccountPermissionGroup());
196 return o; 231 return o;
197 } 232 }
198 233
199 checkUnnamed287(core.List<api.AccountPermissionGroup> o) { 234 checkUnnamed700(core.List<api.AccountPermissionGroup> o) {
200 unittest.expect(o, unittest.hasLength(2)); 235 unittest.expect(o, unittest.hasLength(2));
201 checkAccountPermissionGroup(o[0]); 236 checkAccountPermissionGroup(o[0]);
202 checkAccountPermissionGroup(o[1]); 237 checkAccountPermissionGroup(o[1]);
203 } 238 }
204 239
205 core.int buildCounterAccountPermissionGroupsListResponse = 0; 240 core.int buildCounterAccountPermissionGroupsListResponse = 0;
206 buildAccountPermissionGroupsListResponse() { 241 buildAccountPermissionGroupsListResponse() {
207 var o = new api.AccountPermissionGroupsListResponse(); 242 var o = new api.AccountPermissionGroupsListResponse();
208 buildCounterAccountPermissionGroupsListResponse++; 243 buildCounterAccountPermissionGroupsListResponse++;
209 if (buildCounterAccountPermissionGroupsListResponse < 3) { 244 if (buildCounterAccountPermissionGroupsListResponse < 3) {
210 o.accountPermissionGroups = buildUnnamed287(); 245 o.accountPermissionGroups = buildUnnamed700();
211 o.kind = "foo"; 246 o.kind = "foo";
212 } 247 }
213 buildCounterAccountPermissionGroupsListResponse--; 248 buildCounterAccountPermissionGroupsListResponse--;
214 return o; 249 return o;
215 } 250 }
216 251
217 checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { 252 checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) {
218 buildCounterAccountPermissionGroupsListResponse++; 253 buildCounterAccountPermissionGroupsListResponse++;
219 if (buildCounterAccountPermissionGroupsListResponse < 3) { 254 if (buildCounterAccountPermissionGroupsListResponse < 3) {
220 checkUnnamed287(o.accountPermissionGroups); 255 checkUnnamed700(o.accountPermissionGroups);
221 unittest.expect(o.kind, unittest.equals('foo')); 256 unittest.expect(o.kind, unittest.equals('foo'));
222 } 257 }
223 buildCounterAccountPermissionGroupsListResponse--; 258 buildCounterAccountPermissionGroupsListResponse--;
224 } 259 }
225 260
226 buildUnnamed288() { 261 buildUnnamed701() {
227 var o = new core.List<api.AccountPermission>(); 262 var o = new core.List<api.AccountPermission>();
228 o.add(buildAccountPermission()); 263 o.add(buildAccountPermission());
229 o.add(buildAccountPermission()); 264 o.add(buildAccountPermission());
230 return o; 265 return o;
231 } 266 }
232 267
233 checkUnnamed288(core.List<api.AccountPermission> o) { 268 checkUnnamed701(core.List<api.AccountPermission> o) {
234 unittest.expect(o, unittest.hasLength(2)); 269 unittest.expect(o, unittest.hasLength(2));
235 checkAccountPermission(o[0]); 270 checkAccountPermission(o[0]);
236 checkAccountPermission(o[1]); 271 checkAccountPermission(o[1]);
237 } 272 }
238 273
239 core.int buildCounterAccountPermissionsListResponse = 0; 274 core.int buildCounterAccountPermissionsListResponse = 0;
240 buildAccountPermissionsListResponse() { 275 buildAccountPermissionsListResponse() {
241 var o = new api.AccountPermissionsListResponse(); 276 var o = new api.AccountPermissionsListResponse();
242 buildCounterAccountPermissionsListResponse++; 277 buildCounterAccountPermissionsListResponse++;
243 if (buildCounterAccountPermissionsListResponse < 3) { 278 if (buildCounterAccountPermissionsListResponse < 3) {
244 o.accountPermissions = buildUnnamed288(); 279 o.accountPermissions = buildUnnamed701();
245 o.kind = "foo"; 280 o.kind = "foo";
246 } 281 }
247 buildCounterAccountPermissionsListResponse--; 282 buildCounterAccountPermissionsListResponse--;
248 return o; 283 return o;
249 } 284 }
250 285
251 checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { 286 checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) {
252 buildCounterAccountPermissionsListResponse++; 287 buildCounterAccountPermissionsListResponse++;
253 if (buildCounterAccountPermissionsListResponse < 3) { 288 if (buildCounterAccountPermissionsListResponse < 3) {
254 checkUnnamed288(o.accountPermissions); 289 checkUnnamed701(o.accountPermissions);
255 unittest.expect(o.kind, unittest.equals('foo')); 290 unittest.expect(o.kind, unittest.equals('foo'));
256 } 291 }
257 buildCounterAccountPermissionsListResponse--; 292 buildCounterAccountPermissionsListResponse--;
258 } 293 }
259 294
260 core.int buildCounterAccountUserProfile = 0; 295 core.int buildCounterAccountUserProfile = 0;
261 buildAccountUserProfile() { 296 buildAccountUserProfile() {
262 var o = new api.AccountUserProfile(); 297 var o = new api.AccountUserProfile();
263 buildCounterAccountUserProfile++; 298 buildCounterAccountUserProfile++;
264 if (buildCounterAccountUserProfile < 3) { 299 if (buildCounterAccountUserProfile < 3) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 checkObjectFilter(o.siteFilter); 334 checkObjectFilter(o.siteFilter);
300 unittest.expect(o.subaccountId, unittest.equals('foo')); 335 unittest.expect(o.subaccountId, unittest.equals('foo'));
301 unittest.expect(o.traffickerType, unittest.equals('foo')); 336 unittest.expect(o.traffickerType, unittest.equals('foo'));
302 unittest.expect(o.userAccessType, unittest.equals('foo')); 337 unittest.expect(o.userAccessType, unittest.equals('foo'));
303 checkObjectFilter(o.userRoleFilter); 338 checkObjectFilter(o.userRoleFilter);
304 unittest.expect(o.userRoleId, unittest.equals('foo')); 339 unittest.expect(o.userRoleId, unittest.equals('foo'));
305 } 340 }
306 buildCounterAccountUserProfile--; 341 buildCounterAccountUserProfile--;
307 } 342 }
308 343
309 buildUnnamed289() { 344 buildUnnamed702() {
310 var o = new core.List<api.AccountUserProfile>(); 345 var o = new core.List<api.AccountUserProfile>();
311 o.add(buildAccountUserProfile()); 346 o.add(buildAccountUserProfile());
312 o.add(buildAccountUserProfile()); 347 o.add(buildAccountUserProfile());
313 return o; 348 return o;
314 } 349 }
315 350
316 checkUnnamed289(core.List<api.AccountUserProfile> o) { 351 checkUnnamed702(core.List<api.AccountUserProfile> o) {
317 unittest.expect(o, unittest.hasLength(2)); 352 unittest.expect(o, unittest.hasLength(2));
318 checkAccountUserProfile(o[0]); 353 checkAccountUserProfile(o[0]);
319 checkAccountUserProfile(o[1]); 354 checkAccountUserProfile(o[1]);
320 } 355 }
321 356
322 core.int buildCounterAccountUserProfilesListResponse = 0; 357 core.int buildCounterAccountUserProfilesListResponse = 0;
323 buildAccountUserProfilesListResponse() { 358 buildAccountUserProfilesListResponse() {
324 var o = new api.AccountUserProfilesListResponse(); 359 var o = new api.AccountUserProfilesListResponse();
325 buildCounterAccountUserProfilesListResponse++; 360 buildCounterAccountUserProfilesListResponse++;
326 if (buildCounterAccountUserProfilesListResponse < 3) { 361 if (buildCounterAccountUserProfilesListResponse < 3) {
327 o.accountUserProfiles = buildUnnamed289(); 362 o.accountUserProfiles = buildUnnamed702();
328 o.kind = "foo"; 363 o.kind = "foo";
329 o.nextPageToken = "foo"; 364 o.nextPageToken = "foo";
330 } 365 }
331 buildCounterAccountUserProfilesListResponse--; 366 buildCounterAccountUserProfilesListResponse--;
332 return o; 367 return o;
333 } 368 }
334 369
335 checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { 370 checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) {
336 buildCounterAccountUserProfilesListResponse++; 371 buildCounterAccountUserProfilesListResponse++;
337 if (buildCounterAccountUserProfilesListResponse < 3) { 372 if (buildCounterAccountUserProfilesListResponse < 3) {
338 checkUnnamed289(o.accountUserProfiles); 373 checkUnnamed702(o.accountUserProfiles);
339 unittest.expect(o.kind, unittest.equals('foo')); 374 unittest.expect(o.kind, unittest.equals('foo'));
340 unittest.expect(o.nextPageToken, unittest.equals('foo')); 375 unittest.expect(o.nextPageToken, unittest.equals('foo'));
341 } 376 }
342 buildCounterAccountUserProfilesListResponse--; 377 buildCounterAccountUserProfilesListResponse--;
343 } 378 }
344 379
345 buildUnnamed290() { 380 buildUnnamed703() {
346 var o = new core.List<api.Account>(); 381 var o = new core.List<api.Account>();
347 o.add(buildAccount()); 382 o.add(buildAccount());
348 o.add(buildAccount()); 383 o.add(buildAccount());
349 return o; 384 return o;
350 } 385 }
351 386
352 checkUnnamed290(core.List<api.Account> o) { 387 checkUnnamed703(core.List<api.Account> o) {
353 unittest.expect(o, unittest.hasLength(2)); 388 unittest.expect(o, unittest.hasLength(2));
354 checkAccount(o[0]); 389 checkAccount(o[0]);
355 checkAccount(o[1]); 390 checkAccount(o[1]);
356 } 391 }
357 392
358 core.int buildCounterAccountsListResponse = 0; 393 core.int buildCounterAccountsListResponse = 0;
359 buildAccountsListResponse() { 394 buildAccountsListResponse() {
360 var o = new api.AccountsListResponse(); 395 var o = new api.AccountsListResponse();
361 buildCounterAccountsListResponse++; 396 buildCounterAccountsListResponse++;
362 if (buildCounterAccountsListResponse < 3) { 397 if (buildCounterAccountsListResponse < 3) {
363 o.accounts = buildUnnamed290(); 398 o.accounts = buildUnnamed703();
364 o.kind = "foo"; 399 o.kind = "foo";
365 o.nextPageToken = "foo"; 400 o.nextPageToken = "foo";
366 } 401 }
367 buildCounterAccountsListResponse--; 402 buildCounterAccountsListResponse--;
368 return o; 403 return o;
369 } 404 }
370 405
371 checkAccountsListResponse(api.AccountsListResponse o) { 406 checkAccountsListResponse(api.AccountsListResponse o) {
372 buildCounterAccountsListResponse++; 407 buildCounterAccountsListResponse++;
373 if (buildCounterAccountsListResponse < 3) { 408 if (buildCounterAccountsListResponse < 3) {
374 checkUnnamed290(o.accounts); 409 checkUnnamed703(o.accounts);
375 unittest.expect(o.kind, unittest.equals('foo')); 410 unittest.expect(o.kind, unittest.equals('foo'));
376 unittest.expect(o.nextPageToken, unittest.equals('foo')); 411 unittest.expect(o.nextPageToken, unittest.equals('foo'));
377 } 412 }
378 buildCounterAccountsListResponse--; 413 buildCounterAccountsListResponse--;
379 } 414 }
380 415
381 buildUnnamed291() { 416 buildUnnamed704() {
382 var o = new core.List<api.DimensionValue>(); 417 var o = new core.List<api.DimensionValue>();
383 o.add(buildDimensionValue()); 418 o.add(buildDimensionValue());
384 o.add(buildDimensionValue()); 419 o.add(buildDimensionValue());
385 return o; 420 return o;
386 } 421 }
387 422
388 checkUnnamed291(core.List<api.DimensionValue> o) { 423 checkUnnamed704(core.List<api.DimensionValue> o) {
389 unittest.expect(o, unittest.hasLength(2)); 424 unittest.expect(o, unittest.hasLength(2));
390 checkDimensionValue(o[0]); 425 checkDimensionValue(o[0]);
391 checkDimensionValue(o[1]); 426 checkDimensionValue(o[1]);
392 } 427 }
393 428
394 buildUnnamed292() { 429 buildUnnamed705() {
395 var o = new core.List<core.String>(); 430 var o = new core.List<core.String>();
396 o.add("foo"); 431 o.add("foo");
397 o.add("foo"); 432 o.add("foo");
398 return o; 433 return o;
399 } 434 }
400 435
401 checkUnnamed292(core.List<core.String> o) { 436 checkUnnamed705(core.List<core.String> o) {
402 unittest.expect(o, unittest.hasLength(2)); 437 unittest.expect(o, unittest.hasLength(2));
403 unittest.expect(o[0], unittest.equals('foo')); 438 unittest.expect(o[0], unittest.equals('foo'));
404 unittest.expect(o[1], unittest.equals('foo')); 439 unittest.expect(o[1], unittest.equals('foo'));
405 } 440 }
406 441
407 core.int buildCounterActivities = 0; 442 core.int buildCounterActivities = 0;
408 buildActivities() { 443 buildActivities() {
409 var o = new api.Activities(); 444 var o = new api.Activities();
410 buildCounterActivities++; 445 buildCounterActivities++;
411 if (buildCounterActivities < 3) { 446 if (buildCounterActivities < 3) {
412 o.filters = buildUnnamed291(); 447 o.filters = buildUnnamed704();
413 o.kind = "foo"; 448 o.kind = "foo";
414 o.metricNames = buildUnnamed292(); 449 o.metricNames = buildUnnamed705();
415 } 450 }
416 buildCounterActivities--; 451 buildCounterActivities--;
417 return o; 452 return o;
418 } 453 }
419 454
420 checkActivities(api.Activities o) { 455 checkActivities(api.Activities o) {
421 buildCounterActivities++; 456 buildCounterActivities++;
422 if (buildCounterActivities < 3) { 457 if (buildCounterActivities < 3) {
423 checkUnnamed291(o.filters); 458 checkUnnamed704(o.filters);
424 unittest.expect(o.kind, unittest.equals('foo')); 459 unittest.expect(o.kind, unittest.equals('foo'));
425 checkUnnamed292(o.metricNames); 460 checkUnnamed705(o.metricNames);
426 } 461 }
427 buildCounterActivities--; 462 buildCounterActivities--;
428 } 463 }
429 464
430 buildUnnamed293() { 465 buildUnnamed706() {
431 var o = new core.List<api.CreativeGroupAssignment>(); 466 var o = new core.List<api.CreativeGroupAssignment>();
432 o.add(buildCreativeGroupAssignment()); 467 o.add(buildCreativeGroupAssignment());
433 o.add(buildCreativeGroupAssignment()); 468 o.add(buildCreativeGroupAssignment());
434 return o; 469 return o;
435 } 470 }
436 471
437 checkUnnamed293(core.List<api.CreativeGroupAssignment> o) { 472 checkUnnamed706(core.List<api.CreativeGroupAssignment> o) {
438 unittest.expect(o, unittest.hasLength(2)); 473 unittest.expect(o, unittest.hasLength(2));
439 checkCreativeGroupAssignment(o[0]); 474 checkCreativeGroupAssignment(o[0]);
440 checkCreativeGroupAssignment(o[1]); 475 checkCreativeGroupAssignment(o[1]);
441 } 476 }
442 477
443 buildUnnamed294() { 478 buildUnnamed707() {
444 var o = new core.List<api.EventTagOverride>(); 479 var o = new core.List<api.EventTagOverride>();
445 o.add(buildEventTagOverride()); 480 o.add(buildEventTagOverride());
446 o.add(buildEventTagOverride()); 481 o.add(buildEventTagOverride());
447 return o; 482 return o;
448 } 483 }
449 484
450 checkUnnamed294(core.List<api.EventTagOverride> o) { 485 checkUnnamed707(core.List<api.EventTagOverride> o) {
451 unittest.expect(o, unittest.hasLength(2)); 486 unittest.expect(o, unittest.hasLength(2));
452 checkEventTagOverride(o[0]); 487 checkEventTagOverride(o[0]);
453 checkEventTagOverride(o[1]); 488 checkEventTagOverride(o[1]);
454 } 489 }
455 490
456 buildUnnamed295() { 491 buildUnnamed708() {
457 var o = new core.List<api.PlacementAssignment>(); 492 var o = new core.List<api.PlacementAssignment>();
458 o.add(buildPlacementAssignment()); 493 o.add(buildPlacementAssignment());
459 o.add(buildPlacementAssignment()); 494 o.add(buildPlacementAssignment());
460 return o; 495 return o;
461 } 496 }
462 497
463 checkUnnamed295(core.List<api.PlacementAssignment> o) { 498 checkUnnamed708(core.List<api.PlacementAssignment> o) {
464 unittest.expect(o, unittest.hasLength(2)); 499 unittest.expect(o, unittest.hasLength(2));
465 checkPlacementAssignment(o[0]); 500 checkPlacementAssignment(o[0]);
466 checkPlacementAssignment(o[1]); 501 checkPlacementAssignment(o[1]);
467 } 502 }
468 503
469 core.int buildCounterAd = 0; 504 core.int buildCounterAd = 0;
470 buildAd() { 505 buildAd() {
471 var o = new api.Ad(); 506 var o = new api.Ad();
472 buildCounterAd++; 507 buildCounterAd++;
473 if (buildCounterAd < 3) { 508 if (buildCounterAd < 3) {
474 o.accountId = "foo"; 509 o.accountId = "foo";
475 o.active = true; 510 o.active = true;
476 o.advertiserId = "foo"; 511 o.advertiserId = "foo";
477 o.advertiserIdDimensionValue = buildDimensionValue(); 512 o.advertiserIdDimensionValue = buildDimensionValue();
478 o.archived = true; 513 o.archived = true;
479 o.audienceSegmentId = "foo"; 514 o.audienceSegmentId = "foo";
480 o.campaignId = "foo"; 515 o.campaignId = "foo";
481 o.campaignIdDimensionValue = buildDimensionValue(); 516 o.campaignIdDimensionValue = buildDimensionValue();
482 o.clickThroughUrl = buildClickThroughUrl(); 517 o.clickThroughUrl = buildClickThroughUrl();
483 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); 518 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties();
484 o.comments = "foo"; 519 o.comments = "foo";
485 o.compatibility = "foo"; 520 o.compatibility = "foo";
486 o.createInfo = buildLastModifiedInfo(); 521 o.createInfo = buildLastModifiedInfo();
487 o.creativeGroupAssignments = buildUnnamed293(); 522 o.creativeGroupAssignments = buildUnnamed706();
488 o.creativeRotation = buildCreativeRotation(); 523 o.creativeRotation = buildCreativeRotation();
489 o.dayPartTargeting = buildDayPartTargeting(); 524 o.dayPartTargeting = buildDayPartTargeting();
490 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr operties(); 525 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr operties();
491 o.deliverySchedule = buildDeliverySchedule(); 526 o.deliverySchedule = buildDeliverySchedule();
492 o.dynamicClickTracker = true; 527 o.dynamicClickTracker = true;
493 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); 528 o.endTime = core.DateTime.parse("2002-02-27T14:01:02");
494 o.eventTagOverrides = buildUnnamed294(); 529 o.eventTagOverrides = buildUnnamed707();
495 o.geoTargeting = buildGeoTargeting(); 530 o.geoTargeting = buildGeoTargeting();
496 o.id = "foo"; 531 o.id = "foo";
497 o.idDimensionValue = buildDimensionValue(); 532 o.idDimensionValue = buildDimensionValue();
498 o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); 533 o.keyValueTargetingExpression = buildKeyValueTargetingExpression();
499 o.kind = "foo"; 534 o.kind = "foo";
500 o.lastModifiedInfo = buildLastModifiedInfo(); 535 o.lastModifiedInfo = buildLastModifiedInfo();
501 o.name = "foo"; 536 o.name = "foo";
502 o.placementAssignments = buildUnnamed295(); 537 o.placementAssignments = buildUnnamed708();
503 o.remarketingListExpression = buildListTargetingExpression(); 538 o.remarketingListExpression = buildListTargetingExpression();
504 o.size = buildSize(); 539 o.size = buildSize();
505 o.sslCompliant = true; 540 o.sslCompliant = true;
506 o.sslRequired = true; 541 o.sslRequired = true;
507 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); 542 o.startTime = core.DateTime.parse("2002-02-27T14:01:02");
508 o.subaccountId = "foo"; 543 o.subaccountId = "foo";
509 o.technologyTargeting = buildTechnologyTargeting(); 544 o.technologyTargeting = buildTechnologyTargeting();
510 o.type = "foo"; 545 o.type = "foo";
511 } 546 }
512 buildCounterAd--; 547 buildCounterAd--;
513 return o; 548 return o;
514 } 549 }
515 550
516 checkAd(api.Ad o) { 551 checkAd(api.Ad o) {
517 buildCounterAd++; 552 buildCounterAd++;
518 if (buildCounterAd < 3) { 553 if (buildCounterAd < 3) {
519 unittest.expect(o.accountId, unittest.equals('foo')); 554 unittest.expect(o.accountId, unittest.equals('foo'));
520 unittest.expect(o.active, unittest.isTrue); 555 unittest.expect(o.active, unittest.isTrue);
521 unittest.expect(o.advertiserId, unittest.equals('foo')); 556 unittest.expect(o.advertiserId, unittest.equals('foo'));
522 checkDimensionValue(o.advertiserIdDimensionValue); 557 checkDimensionValue(o.advertiserIdDimensionValue);
523 unittest.expect(o.archived, unittest.isTrue); 558 unittest.expect(o.archived, unittest.isTrue);
524 unittest.expect(o.audienceSegmentId, unittest.equals('foo')); 559 unittest.expect(o.audienceSegmentId, unittest.equals('foo'));
525 unittest.expect(o.campaignId, unittest.equals('foo')); 560 unittest.expect(o.campaignId, unittest.equals('foo'));
526 checkDimensionValue(o.campaignIdDimensionValue); 561 checkDimensionValue(o.campaignIdDimensionValue);
527 checkClickThroughUrl(o.clickThroughUrl); 562 checkClickThroughUrl(o.clickThroughUrl);
528 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); 563 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties);
529 unittest.expect(o.comments, unittest.equals('foo')); 564 unittest.expect(o.comments, unittest.equals('foo'));
530 unittest.expect(o.compatibility, unittest.equals('foo')); 565 unittest.expect(o.compatibility, unittest.equals('foo'));
531 checkLastModifiedInfo(o.createInfo); 566 checkLastModifiedInfo(o.createInfo);
532 checkUnnamed293(o.creativeGroupAssignments); 567 checkUnnamed706(o.creativeGroupAssignments);
533 checkCreativeRotation(o.creativeRotation); 568 checkCreativeRotation(o.creativeRotation);
534 checkDayPartTargeting(o.dayPartTargeting); 569 checkDayPartTargeting(o.dayPartTargeting);
535 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp erties); 570 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp erties);
536 checkDeliverySchedule(o.deliverySchedule); 571 checkDeliverySchedule(o.deliverySchedule);
537 unittest.expect(o.dynamicClickTracker, unittest.isTrue); 572 unittest.expect(o.dynamicClickTracker, unittest.isTrue);
538 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 573 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
539 checkUnnamed294(o.eventTagOverrides); 574 checkUnnamed707(o.eventTagOverrides);
540 checkGeoTargeting(o.geoTargeting); 575 checkGeoTargeting(o.geoTargeting);
541 unittest.expect(o.id, unittest.equals('foo')); 576 unittest.expect(o.id, unittest.equals('foo'));
542 checkDimensionValue(o.idDimensionValue); 577 checkDimensionValue(o.idDimensionValue);
543 checkKeyValueTargetingExpression(o.keyValueTargetingExpression); 578 checkKeyValueTargetingExpression(o.keyValueTargetingExpression);
544 unittest.expect(o.kind, unittest.equals('foo')); 579 unittest.expect(o.kind, unittest.equals('foo'));
545 checkLastModifiedInfo(o.lastModifiedInfo); 580 checkLastModifiedInfo(o.lastModifiedInfo);
546 unittest.expect(o.name, unittest.equals('foo')); 581 unittest.expect(o.name, unittest.equals('foo'));
547 checkUnnamed295(o.placementAssignments); 582 checkUnnamed708(o.placementAssignments);
548 checkListTargetingExpression(o.remarketingListExpression); 583 checkListTargetingExpression(o.remarketingListExpression);
549 checkSize(o.size); 584 checkSize(o.size);
550 unittest.expect(o.sslCompliant, unittest.isTrue); 585 unittest.expect(o.sslCompliant, unittest.isTrue);
551 unittest.expect(o.sslRequired, unittest.isTrue); 586 unittest.expect(o.sslRequired, unittest.isTrue);
552 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 587 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
553 unittest.expect(o.subaccountId, unittest.equals('foo')); 588 unittest.expect(o.subaccountId, unittest.equals('foo'));
554 checkTechnologyTargeting(o.technologyTargeting); 589 checkTechnologyTargeting(o.technologyTargeting);
555 unittest.expect(o.type, unittest.equals('foo')); 590 unittest.expect(o.type, unittest.equals('foo'));
556 } 591 }
557 buildCounterAd--; 592 buildCounterAd--;
558 } 593 }
559 594
560 buildUnnamed296() { 595 buildUnnamed709() {
561 var o = new core.List<api.Ad>(); 596 var o = new core.List<api.Ad>();
562 o.add(buildAd()); 597 o.add(buildAd());
563 o.add(buildAd()); 598 o.add(buildAd());
564 return o; 599 return o;
565 } 600 }
566 601
567 checkUnnamed296(core.List<api.Ad> o) { 602 checkUnnamed709(core.List<api.Ad> o) {
568 unittest.expect(o, unittest.hasLength(2)); 603 unittest.expect(o, unittest.hasLength(2));
569 checkAd(o[0]); 604 checkAd(o[0]);
570 checkAd(o[1]); 605 checkAd(o[1]);
571 } 606 }
572 607
573 core.int buildCounterAdsListResponse = 0; 608 core.int buildCounterAdsListResponse = 0;
574 buildAdsListResponse() { 609 buildAdsListResponse() {
575 var o = new api.AdsListResponse(); 610 var o = new api.AdsListResponse();
576 buildCounterAdsListResponse++; 611 buildCounterAdsListResponse++;
577 if (buildCounterAdsListResponse < 3) { 612 if (buildCounterAdsListResponse < 3) {
578 o.ads = buildUnnamed296(); 613 o.ads = buildUnnamed709();
579 o.kind = "foo"; 614 o.kind = "foo";
580 o.nextPageToken = "foo"; 615 o.nextPageToken = "foo";
581 } 616 }
582 buildCounterAdsListResponse--; 617 buildCounterAdsListResponse--;
583 return o; 618 return o;
584 } 619 }
585 620
586 checkAdsListResponse(api.AdsListResponse o) { 621 checkAdsListResponse(api.AdsListResponse o) {
587 buildCounterAdsListResponse++; 622 buildCounterAdsListResponse++;
588 if (buildCounterAdsListResponse < 3) { 623 if (buildCounterAdsListResponse < 3) {
589 checkUnnamed296(o.ads); 624 checkUnnamed709(o.ads);
590 unittest.expect(o.kind, unittest.equals('foo')); 625 unittest.expect(o.kind, unittest.equals('foo'));
591 unittest.expect(o.nextPageToken, unittest.equals('foo')); 626 unittest.expect(o.nextPageToken, unittest.equals('foo'));
592 } 627 }
593 buildCounterAdsListResponse--; 628 buildCounterAdsListResponse--;
594 } 629 }
595 630
596 core.int buildCounterAdvertiser = 0; 631 core.int buildCounterAdvertiser = 0;
597 buildAdvertiser() { 632 buildAdvertiser() {
598 var o = new api.Advertiser(); 633 var o = new api.Advertiser();
599 buildCounterAdvertiser++; 634 buildCounterAdvertiser++;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 buildCounterAdvertiserGroup++; 689 buildCounterAdvertiserGroup++;
655 if (buildCounterAdvertiserGroup < 3) { 690 if (buildCounterAdvertiserGroup < 3) {
656 unittest.expect(o.accountId, unittest.equals('foo')); 691 unittest.expect(o.accountId, unittest.equals('foo'));
657 unittest.expect(o.id, unittest.equals('foo')); 692 unittest.expect(o.id, unittest.equals('foo'));
658 unittest.expect(o.kind, unittest.equals('foo')); 693 unittest.expect(o.kind, unittest.equals('foo'));
659 unittest.expect(o.name, unittest.equals('foo')); 694 unittest.expect(o.name, unittest.equals('foo'));
660 } 695 }
661 buildCounterAdvertiserGroup--; 696 buildCounterAdvertiserGroup--;
662 } 697 }
663 698
664 buildUnnamed297() { 699 buildUnnamed710() {
665 var o = new core.List<api.AdvertiserGroup>(); 700 var o = new core.List<api.AdvertiserGroup>();
666 o.add(buildAdvertiserGroup()); 701 o.add(buildAdvertiserGroup());
667 o.add(buildAdvertiserGroup()); 702 o.add(buildAdvertiserGroup());
668 return o; 703 return o;
669 } 704 }
670 705
671 checkUnnamed297(core.List<api.AdvertiserGroup> o) { 706 checkUnnamed710(core.List<api.AdvertiserGroup> o) {
672 unittest.expect(o, unittest.hasLength(2)); 707 unittest.expect(o, unittest.hasLength(2));
673 checkAdvertiserGroup(o[0]); 708 checkAdvertiserGroup(o[0]);
674 checkAdvertiserGroup(o[1]); 709 checkAdvertiserGroup(o[1]);
675 } 710 }
676 711
677 core.int buildCounterAdvertiserGroupsListResponse = 0; 712 core.int buildCounterAdvertiserGroupsListResponse = 0;
678 buildAdvertiserGroupsListResponse() { 713 buildAdvertiserGroupsListResponse() {
679 var o = new api.AdvertiserGroupsListResponse(); 714 var o = new api.AdvertiserGroupsListResponse();
680 buildCounterAdvertiserGroupsListResponse++; 715 buildCounterAdvertiserGroupsListResponse++;
681 if (buildCounterAdvertiserGroupsListResponse < 3) { 716 if (buildCounterAdvertiserGroupsListResponse < 3) {
682 o.advertiserGroups = buildUnnamed297(); 717 o.advertiserGroups = buildUnnamed710();
683 o.kind = "foo"; 718 o.kind = "foo";
684 o.nextPageToken = "foo"; 719 o.nextPageToken = "foo";
685 } 720 }
686 buildCounterAdvertiserGroupsListResponse--; 721 buildCounterAdvertiserGroupsListResponse--;
687 return o; 722 return o;
688 } 723 }
689 724
690 checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { 725 checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) {
691 buildCounterAdvertiserGroupsListResponse++; 726 buildCounterAdvertiserGroupsListResponse++;
692 if (buildCounterAdvertiserGroupsListResponse < 3) { 727 if (buildCounterAdvertiserGroupsListResponse < 3) {
693 checkUnnamed297(o.advertiserGroups); 728 checkUnnamed710(o.advertiserGroups);
694 unittest.expect(o.kind, unittest.equals('foo')); 729 unittest.expect(o.kind, unittest.equals('foo'));
695 unittest.expect(o.nextPageToken, unittest.equals('foo')); 730 unittest.expect(o.nextPageToken, unittest.equals('foo'));
696 } 731 }
697 buildCounterAdvertiserGroupsListResponse--; 732 buildCounterAdvertiserGroupsListResponse--;
698 } 733 }
699 734
700 buildUnnamed298() { 735 buildUnnamed711() {
701 var o = new core.List<api.Advertiser>(); 736 var o = new core.List<api.Advertiser>();
702 o.add(buildAdvertiser()); 737 o.add(buildAdvertiser());
703 o.add(buildAdvertiser()); 738 o.add(buildAdvertiser());
704 return o; 739 return o;
705 } 740 }
706 741
707 checkUnnamed298(core.List<api.Advertiser> o) { 742 checkUnnamed711(core.List<api.Advertiser> o) {
708 unittest.expect(o, unittest.hasLength(2)); 743 unittest.expect(o, unittest.hasLength(2));
709 checkAdvertiser(o[0]); 744 checkAdvertiser(o[0]);
710 checkAdvertiser(o[1]); 745 checkAdvertiser(o[1]);
711 } 746 }
712 747
713 core.int buildCounterAdvertisersListResponse = 0; 748 core.int buildCounterAdvertisersListResponse = 0;
714 buildAdvertisersListResponse() { 749 buildAdvertisersListResponse() {
715 var o = new api.AdvertisersListResponse(); 750 var o = new api.AdvertisersListResponse();
716 buildCounterAdvertisersListResponse++; 751 buildCounterAdvertisersListResponse++;
717 if (buildCounterAdvertisersListResponse < 3) { 752 if (buildCounterAdvertisersListResponse < 3) {
718 o.advertisers = buildUnnamed298(); 753 o.advertisers = buildUnnamed711();
719 o.kind = "foo"; 754 o.kind = "foo";
720 o.nextPageToken = "foo"; 755 o.nextPageToken = "foo";
721 } 756 }
722 buildCounterAdvertisersListResponse--; 757 buildCounterAdvertisersListResponse--;
723 return o; 758 return o;
724 } 759 }
725 760
726 checkAdvertisersListResponse(api.AdvertisersListResponse o) { 761 checkAdvertisersListResponse(api.AdvertisersListResponse o) {
727 buildCounterAdvertisersListResponse++; 762 buildCounterAdvertisersListResponse++;
728 if (buildCounterAdvertisersListResponse < 3) { 763 if (buildCounterAdvertisersListResponse < 3) {
729 checkUnnamed298(o.advertisers); 764 checkUnnamed711(o.advertisers);
730 unittest.expect(o.kind, unittest.equals('foo')); 765 unittest.expect(o.kind, unittest.equals('foo'));
731 unittest.expect(o.nextPageToken, unittest.equals('foo')); 766 unittest.expect(o.nextPageToken, unittest.equals('foo'));
732 } 767 }
733 buildCounterAdvertisersListResponse--; 768 buildCounterAdvertisersListResponse--;
734 } 769 }
735 770
736 core.int buildCounterAudienceSegment = 0; 771 core.int buildCounterAudienceSegment = 0;
737 buildAudienceSegment() { 772 buildAudienceSegment() {
738 var o = new api.AudienceSegment(); 773 var o = new api.AudienceSegment();
739 buildCounterAudienceSegment++; 774 buildCounterAudienceSegment++;
740 if (buildCounterAudienceSegment < 3) { 775 if (buildCounterAudienceSegment < 3) {
741 o.allocation = 42; 776 o.allocation = 42;
742 o.id = "foo"; 777 o.id = "foo";
743 o.name = "foo"; 778 o.name = "foo";
744 } 779 }
745 buildCounterAudienceSegment--; 780 buildCounterAudienceSegment--;
746 return o; 781 return o;
747 } 782 }
748 783
749 checkAudienceSegment(api.AudienceSegment o) { 784 checkAudienceSegment(api.AudienceSegment o) {
750 buildCounterAudienceSegment++; 785 buildCounterAudienceSegment++;
751 if (buildCounterAudienceSegment < 3) { 786 if (buildCounterAudienceSegment < 3) {
752 unittest.expect(o.allocation, unittest.equals(42)); 787 unittest.expect(o.allocation, unittest.equals(42));
753 unittest.expect(o.id, unittest.equals('foo')); 788 unittest.expect(o.id, unittest.equals('foo'));
754 unittest.expect(o.name, unittest.equals('foo')); 789 unittest.expect(o.name, unittest.equals('foo'));
755 } 790 }
756 buildCounterAudienceSegment--; 791 buildCounterAudienceSegment--;
757 } 792 }
758 793
759 buildUnnamed299() { 794 buildUnnamed712() {
760 var o = new core.List<api.AudienceSegment>(); 795 var o = new core.List<api.AudienceSegment>();
761 o.add(buildAudienceSegment()); 796 o.add(buildAudienceSegment());
762 o.add(buildAudienceSegment()); 797 o.add(buildAudienceSegment());
763 return o; 798 return o;
764 } 799 }
765 800
766 checkUnnamed299(core.List<api.AudienceSegment> o) { 801 checkUnnamed712(core.List<api.AudienceSegment> o) {
767 unittest.expect(o, unittest.hasLength(2)); 802 unittest.expect(o, unittest.hasLength(2));
768 checkAudienceSegment(o[0]); 803 checkAudienceSegment(o[0]);
769 checkAudienceSegment(o[1]); 804 checkAudienceSegment(o[1]);
770 } 805 }
771 806
772 core.int buildCounterAudienceSegmentGroup = 0; 807 core.int buildCounterAudienceSegmentGroup = 0;
773 buildAudienceSegmentGroup() { 808 buildAudienceSegmentGroup() {
774 var o = new api.AudienceSegmentGroup(); 809 var o = new api.AudienceSegmentGroup();
775 buildCounterAudienceSegmentGroup++; 810 buildCounterAudienceSegmentGroup++;
776 if (buildCounterAudienceSegmentGroup < 3) { 811 if (buildCounterAudienceSegmentGroup < 3) {
777 o.audienceSegments = buildUnnamed299(); 812 o.audienceSegments = buildUnnamed712();
778 o.id = "foo"; 813 o.id = "foo";
779 o.name = "foo"; 814 o.name = "foo";
780 } 815 }
781 buildCounterAudienceSegmentGroup--; 816 buildCounterAudienceSegmentGroup--;
782 return o; 817 return o;
783 } 818 }
784 819
785 checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { 820 checkAudienceSegmentGroup(api.AudienceSegmentGroup o) {
786 buildCounterAudienceSegmentGroup++; 821 buildCounterAudienceSegmentGroup++;
787 if (buildCounterAudienceSegmentGroup < 3) { 822 if (buildCounterAudienceSegmentGroup < 3) {
788 checkUnnamed299(o.audienceSegments); 823 checkUnnamed712(o.audienceSegments);
789 unittest.expect(o.id, unittest.equals('foo')); 824 unittest.expect(o.id, unittest.equals('foo'));
790 unittest.expect(o.name, unittest.equals('foo')); 825 unittest.expect(o.name, unittest.equals('foo'));
791 } 826 }
792 buildCounterAudienceSegmentGroup--; 827 buildCounterAudienceSegmentGroup--;
793 } 828 }
794 829
795 core.int buildCounterBrowser = 0; 830 core.int buildCounterBrowser = 0;
796 buildBrowser() { 831 buildBrowser() {
797 var o = new api.Browser(); 832 var o = new api.Browser();
798 buildCounterBrowser++; 833 buildCounterBrowser++;
(...skipping 15 matching lines...) Expand all
814 unittest.expect(o.browserVersionId, unittest.equals('foo')); 849 unittest.expect(o.browserVersionId, unittest.equals('foo'));
815 unittest.expect(o.dartId, unittest.equals('foo')); 850 unittest.expect(o.dartId, unittest.equals('foo'));
816 unittest.expect(o.kind, unittest.equals('foo')); 851 unittest.expect(o.kind, unittest.equals('foo'));
817 unittest.expect(o.majorVersion, unittest.equals('foo')); 852 unittest.expect(o.majorVersion, unittest.equals('foo'));
818 unittest.expect(o.minorVersion, unittest.equals('foo')); 853 unittest.expect(o.minorVersion, unittest.equals('foo'));
819 unittest.expect(o.name, unittest.equals('foo')); 854 unittest.expect(o.name, unittest.equals('foo'));
820 } 855 }
821 buildCounterBrowser--; 856 buildCounterBrowser--;
822 } 857 }
823 858
824 buildUnnamed300() { 859 buildUnnamed713() {
825 var o = new core.List<api.Browser>(); 860 var o = new core.List<api.Browser>();
826 o.add(buildBrowser()); 861 o.add(buildBrowser());
827 o.add(buildBrowser()); 862 o.add(buildBrowser());
828 return o; 863 return o;
829 } 864 }
830 865
831 checkUnnamed300(core.List<api.Browser> o) { 866 checkUnnamed713(core.List<api.Browser> o) {
832 unittest.expect(o, unittest.hasLength(2)); 867 unittest.expect(o, unittest.hasLength(2));
833 checkBrowser(o[0]); 868 checkBrowser(o[0]);
834 checkBrowser(o[1]); 869 checkBrowser(o[1]);
835 } 870 }
836 871
837 core.int buildCounterBrowsersListResponse = 0; 872 core.int buildCounterBrowsersListResponse = 0;
838 buildBrowsersListResponse() { 873 buildBrowsersListResponse() {
839 var o = new api.BrowsersListResponse(); 874 var o = new api.BrowsersListResponse();
840 buildCounterBrowsersListResponse++; 875 buildCounterBrowsersListResponse++;
841 if (buildCounterBrowsersListResponse < 3) { 876 if (buildCounterBrowsersListResponse < 3) {
842 o.browsers = buildUnnamed300(); 877 o.browsers = buildUnnamed713();
843 o.kind = "foo"; 878 o.kind = "foo";
844 } 879 }
845 buildCounterBrowsersListResponse--; 880 buildCounterBrowsersListResponse--;
846 return o; 881 return o;
847 } 882 }
848 883
849 checkBrowsersListResponse(api.BrowsersListResponse o) { 884 checkBrowsersListResponse(api.BrowsersListResponse o) {
850 buildCounterBrowsersListResponse++; 885 buildCounterBrowsersListResponse++;
851 if (buildCounterBrowsersListResponse < 3) { 886 if (buildCounterBrowsersListResponse < 3) {
852 checkUnnamed300(o.browsers); 887 checkUnnamed713(o.browsers);
853 unittest.expect(o.kind, unittest.equals('foo')); 888 unittest.expect(o.kind, unittest.equals('foo'));
854 } 889 }
855 buildCounterBrowsersListResponse--; 890 buildCounterBrowsersListResponse--;
856 } 891 }
857 892
858 buildUnnamed301() { 893 buildUnnamed714() {
859 var o = new core.List<api.CreativeOptimizationConfiguration>(); 894 var o = new core.List<api.CreativeOptimizationConfiguration>();
860 o.add(buildCreativeOptimizationConfiguration()); 895 o.add(buildCreativeOptimizationConfiguration());
861 o.add(buildCreativeOptimizationConfiguration()); 896 o.add(buildCreativeOptimizationConfiguration());
862 return o; 897 return o;
863 } 898 }
864 899
865 checkUnnamed301(core.List<api.CreativeOptimizationConfiguration> o) { 900 checkUnnamed714(core.List<api.CreativeOptimizationConfiguration> o) {
866 unittest.expect(o, unittest.hasLength(2)); 901 unittest.expect(o, unittest.hasLength(2));
867 checkCreativeOptimizationConfiguration(o[0]); 902 checkCreativeOptimizationConfiguration(o[0]);
868 checkCreativeOptimizationConfiguration(o[1]); 903 checkCreativeOptimizationConfiguration(o[1]);
869 } 904 }
870 905
871 buildUnnamed302() { 906 buildUnnamed715() {
872 var o = new core.List<api.AudienceSegmentGroup>(); 907 var o = new core.List<api.AudienceSegmentGroup>();
873 o.add(buildAudienceSegmentGroup()); 908 o.add(buildAudienceSegmentGroup());
874 o.add(buildAudienceSegmentGroup()); 909 o.add(buildAudienceSegmentGroup());
875 return o; 910 return o;
876 } 911 }
877 912
878 checkUnnamed302(core.List<api.AudienceSegmentGroup> o) { 913 checkUnnamed715(core.List<api.AudienceSegmentGroup> o) {
879 unittest.expect(o, unittest.hasLength(2)); 914 unittest.expect(o, unittest.hasLength(2));
880 checkAudienceSegmentGroup(o[0]); 915 checkAudienceSegmentGroup(o[0]);
881 checkAudienceSegmentGroup(o[1]); 916 checkAudienceSegmentGroup(o[1]);
882 } 917 }
883 918
884 buildUnnamed303() { 919 buildUnnamed716() {
885 var o = new core.List<core.String>(); 920 var o = new core.List<core.String>();
886 o.add("foo"); 921 o.add("foo");
887 o.add("foo"); 922 o.add("foo");
888 return o; 923 return o;
889 } 924 }
890 925
891 checkUnnamed303(core.List<core.String> o) { 926 checkUnnamed716(core.List<core.String> o) {
892 unittest.expect(o, unittest.hasLength(2)); 927 unittest.expect(o, unittest.hasLength(2));
893 unittest.expect(o[0], unittest.equals('foo')); 928 unittest.expect(o[0], unittest.equals('foo'));
894 unittest.expect(o[1], unittest.equals('foo')); 929 unittest.expect(o[1], unittest.equals('foo'));
895 } 930 }
896 931
897 buildUnnamed304() { 932 buildUnnamed717() {
898 var o = new core.List<api.EventTagOverride>(); 933 var o = new core.List<api.EventTagOverride>();
899 o.add(buildEventTagOverride()); 934 o.add(buildEventTagOverride());
900 o.add(buildEventTagOverride()); 935 o.add(buildEventTagOverride());
901 return o; 936 return o;
902 } 937 }
903 938
904 checkUnnamed304(core.List<api.EventTagOverride> o) { 939 checkUnnamed717(core.List<api.EventTagOverride> o) {
905 unittest.expect(o, unittest.hasLength(2)); 940 unittest.expect(o, unittest.hasLength(2));
906 checkEventTagOverride(o[0]); 941 checkEventTagOverride(o[0]);
907 checkEventTagOverride(o[1]); 942 checkEventTagOverride(o[1]);
908 } 943 }
909 944
910 buildUnnamed305() { 945 buildUnnamed718() {
911 var o = new core.List<core.String>(); 946 var o = new core.List<core.String>();
912 o.add("foo"); 947 o.add("foo");
913 o.add("foo"); 948 o.add("foo");
914 return o; 949 return o;
915 } 950 }
916 951
917 checkUnnamed305(core.List<core.String> o) { 952 checkUnnamed718(core.List<core.String> o) {
918 unittest.expect(o, unittest.hasLength(2)); 953 unittest.expect(o, unittest.hasLength(2));
919 unittest.expect(o[0], unittest.equals('foo')); 954 unittest.expect(o[0], unittest.equals('foo'));
920 unittest.expect(o[1], unittest.equals('foo')); 955 unittest.expect(o[1], unittest.equals('foo'));
921 } 956 }
922 957
923 core.int buildCounterCampaign = 0; 958 core.int buildCounterCampaign = 0;
924 buildCampaign() { 959 buildCampaign() {
925 var o = new api.Campaign(); 960 var o = new api.Campaign();
926 buildCounterCampaign++; 961 buildCounterCampaign++;
927 if (buildCounterCampaign < 3) { 962 if (buildCounterCampaign < 3) {
928 o.accountId = "foo"; 963 o.accountId = "foo";
929 o.additionalCreativeOptimizationConfigurations = buildUnnamed301(); 964 o.additionalCreativeOptimizationConfigurations = buildUnnamed714();
930 o.advertiserGroupId = "foo"; 965 o.advertiserGroupId = "foo";
931 o.advertiserId = "foo"; 966 o.advertiserId = "foo";
932 o.advertiserIdDimensionValue = buildDimensionValue(); 967 o.advertiserIdDimensionValue = buildDimensionValue();
933 o.archived = true; 968 o.archived = true;
934 o.audienceSegmentGroups = buildUnnamed302(); 969 o.audienceSegmentGroups = buildUnnamed715();
935 o.billingInvoiceCode = "foo"; 970 o.billingInvoiceCode = "foo";
936 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); 971 o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties();
937 o.comment = "foo"; 972 o.comment = "foo";
938 o.comscoreVceEnabled = true; 973 o.comscoreVceEnabled = true;
939 o.createInfo = buildLastModifiedInfo(); 974 o.createInfo = buildLastModifiedInfo();
940 o.creativeGroupIds = buildUnnamed303(); 975 o.creativeGroupIds = buildUnnamed716();
941 o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration (); 976 o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration ();
942 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr operties(); 977 o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagPr operties();
943 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 978 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
944 o.eventTagOverrides = buildUnnamed304(); 979 o.eventTagOverrides = buildUnnamed717();
945 o.externalId = "foo"; 980 o.externalId = "foo";
946 o.id = "foo"; 981 o.id = "foo";
947 o.idDimensionValue = buildDimensionValue(); 982 o.idDimensionValue = buildDimensionValue();
948 o.kind = "foo"; 983 o.kind = "foo";
949 o.lastModifiedInfo = buildLastModifiedInfo(); 984 o.lastModifiedInfo = buildLastModifiedInfo();
950 o.lookbackConfiguration = buildLookbackConfiguration(); 985 o.lookbackConfiguration = buildLookbackConfiguration();
951 o.name = "foo"; 986 o.name = "foo";
952 o.nielsenOcrEnabled = true; 987 o.nielsenOcrEnabled = true;
953 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 988 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
954 o.subaccountId = "foo"; 989 o.subaccountId = "foo";
955 o.traffickerEmails = buildUnnamed305(); 990 o.traffickerEmails = buildUnnamed718();
956 } 991 }
957 buildCounterCampaign--; 992 buildCounterCampaign--;
958 return o; 993 return o;
959 } 994 }
960 995
961 checkCampaign(api.Campaign o) { 996 checkCampaign(api.Campaign o) {
962 buildCounterCampaign++; 997 buildCounterCampaign++;
963 if (buildCounterCampaign < 3) { 998 if (buildCounterCampaign < 3) {
964 unittest.expect(o.accountId, unittest.equals('foo')); 999 unittest.expect(o.accountId, unittest.equals('foo'));
965 checkUnnamed301(o.additionalCreativeOptimizationConfigurations); 1000 checkUnnamed714(o.additionalCreativeOptimizationConfigurations);
966 unittest.expect(o.advertiserGroupId, unittest.equals('foo')); 1001 unittest.expect(o.advertiserGroupId, unittest.equals('foo'));
967 unittest.expect(o.advertiserId, unittest.equals('foo')); 1002 unittest.expect(o.advertiserId, unittest.equals('foo'));
968 checkDimensionValue(o.advertiserIdDimensionValue); 1003 checkDimensionValue(o.advertiserIdDimensionValue);
969 unittest.expect(o.archived, unittest.isTrue); 1004 unittest.expect(o.archived, unittest.isTrue);
970 checkUnnamed302(o.audienceSegmentGroups); 1005 checkUnnamed715(o.audienceSegmentGroups);
971 unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); 1006 unittest.expect(o.billingInvoiceCode, unittest.equals('foo'));
972 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); 1007 checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties);
973 unittest.expect(o.comment, unittest.equals('foo')); 1008 unittest.expect(o.comment, unittest.equals('foo'));
974 unittest.expect(o.comscoreVceEnabled, unittest.isTrue); 1009 unittest.expect(o.comscoreVceEnabled, unittest.isTrue);
975 checkLastModifiedInfo(o.createInfo); 1010 checkLastModifiedInfo(o.createInfo);
976 checkUnnamed303(o.creativeGroupIds); 1011 checkUnnamed716(o.creativeGroupIds);
977 checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); 1012 checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration);
978 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp erties); 1013 checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProp erties);
979 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00"))); 1014 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00")));
980 checkUnnamed304(o.eventTagOverrides); 1015 checkUnnamed717(o.eventTagOverrides);
981 unittest.expect(o.externalId, unittest.equals('foo')); 1016 unittest.expect(o.externalId, unittest.equals('foo'));
982 unittest.expect(o.id, unittest.equals('foo')); 1017 unittest.expect(o.id, unittest.equals('foo'));
983 checkDimensionValue(o.idDimensionValue); 1018 checkDimensionValue(o.idDimensionValue);
984 unittest.expect(o.kind, unittest.equals('foo')); 1019 unittest.expect(o.kind, unittest.equals('foo'));
985 checkLastModifiedInfo(o.lastModifiedInfo); 1020 checkLastModifiedInfo(o.lastModifiedInfo);
986 checkLookbackConfiguration(o.lookbackConfiguration); 1021 checkLookbackConfiguration(o.lookbackConfiguration);
987 unittest.expect(o.name, unittest.equals('foo')); 1022 unittest.expect(o.name, unittest.equals('foo'));
988 unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); 1023 unittest.expect(o.nielsenOcrEnabled, unittest.isTrue);
989 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00"))); 1024 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00")));
990 unittest.expect(o.subaccountId, unittest.equals('foo')); 1025 unittest.expect(o.subaccountId, unittest.equals('foo'));
991 checkUnnamed305(o.traffickerEmails); 1026 checkUnnamed718(o.traffickerEmails);
992 } 1027 }
993 buildCounterCampaign--; 1028 buildCounterCampaign--;
994 } 1029 }
995 1030
996 core.int buildCounterCampaignCreativeAssociation = 0; 1031 core.int buildCounterCampaignCreativeAssociation = 0;
997 buildCampaignCreativeAssociation() { 1032 buildCampaignCreativeAssociation() {
998 var o = new api.CampaignCreativeAssociation(); 1033 var o = new api.CampaignCreativeAssociation();
999 buildCounterCampaignCreativeAssociation++; 1034 buildCounterCampaignCreativeAssociation++;
1000 if (buildCounterCampaignCreativeAssociation < 3) { 1035 if (buildCounterCampaignCreativeAssociation < 3) {
1001 o.creativeId = "foo"; 1036 o.creativeId = "foo";
1002 o.kind = "foo"; 1037 o.kind = "foo";
1003 } 1038 }
1004 buildCounterCampaignCreativeAssociation--; 1039 buildCounterCampaignCreativeAssociation--;
1005 return o; 1040 return o;
1006 } 1041 }
1007 1042
1008 checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) { 1043 checkCampaignCreativeAssociation(api.CampaignCreativeAssociation o) {
1009 buildCounterCampaignCreativeAssociation++; 1044 buildCounterCampaignCreativeAssociation++;
1010 if (buildCounterCampaignCreativeAssociation < 3) { 1045 if (buildCounterCampaignCreativeAssociation < 3) {
1011 unittest.expect(o.creativeId, unittest.equals('foo')); 1046 unittest.expect(o.creativeId, unittest.equals('foo'));
1012 unittest.expect(o.kind, unittest.equals('foo')); 1047 unittest.expect(o.kind, unittest.equals('foo'));
1013 } 1048 }
1014 buildCounterCampaignCreativeAssociation--; 1049 buildCounterCampaignCreativeAssociation--;
1015 } 1050 }
1016 1051
1017 buildUnnamed306() { 1052 buildUnnamed719() {
1018 var o = new core.List<api.CampaignCreativeAssociation>(); 1053 var o = new core.List<api.CampaignCreativeAssociation>();
1019 o.add(buildCampaignCreativeAssociation()); 1054 o.add(buildCampaignCreativeAssociation());
1020 o.add(buildCampaignCreativeAssociation()); 1055 o.add(buildCampaignCreativeAssociation());
1021 return o; 1056 return o;
1022 } 1057 }
1023 1058
1024 checkUnnamed306(core.List<api.CampaignCreativeAssociation> o) { 1059 checkUnnamed719(core.List<api.CampaignCreativeAssociation> o) {
1025 unittest.expect(o, unittest.hasLength(2)); 1060 unittest.expect(o, unittest.hasLength(2));
1026 checkCampaignCreativeAssociation(o[0]); 1061 checkCampaignCreativeAssociation(o[0]);
1027 checkCampaignCreativeAssociation(o[1]); 1062 checkCampaignCreativeAssociation(o[1]);
1028 } 1063 }
1029 1064
1030 core.int buildCounterCampaignCreativeAssociationsListResponse = 0; 1065 core.int buildCounterCampaignCreativeAssociationsListResponse = 0;
1031 buildCampaignCreativeAssociationsListResponse() { 1066 buildCampaignCreativeAssociationsListResponse() {
1032 var o = new api.CampaignCreativeAssociationsListResponse(); 1067 var o = new api.CampaignCreativeAssociationsListResponse();
1033 buildCounterCampaignCreativeAssociationsListResponse++; 1068 buildCounterCampaignCreativeAssociationsListResponse++;
1034 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { 1069 if (buildCounterCampaignCreativeAssociationsListResponse < 3) {
1035 o.campaignCreativeAssociations = buildUnnamed306(); 1070 o.campaignCreativeAssociations = buildUnnamed719();
1036 o.kind = "foo"; 1071 o.kind = "foo";
1037 o.nextPageToken = "foo"; 1072 o.nextPageToken = "foo";
1038 } 1073 }
1039 buildCounterCampaignCreativeAssociationsListResponse--; 1074 buildCounterCampaignCreativeAssociationsListResponse--;
1040 return o; 1075 return o;
1041 } 1076 }
1042 1077
1043 checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsLi stResponse o) { 1078 checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsLi stResponse o) {
1044 buildCounterCampaignCreativeAssociationsListResponse++; 1079 buildCounterCampaignCreativeAssociationsListResponse++;
1045 if (buildCounterCampaignCreativeAssociationsListResponse < 3) { 1080 if (buildCounterCampaignCreativeAssociationsListResponse < 3) {
1046 checkUnnamed306(o.campaignCreativeAssociations); 1081 checkUnnamed719(o.campaignCreativeAssociations);
1047 unittest.expect(o.kind, unittest.equals('foo')); 1082 unittest.expect(o.kind, unittest.equals('foo'));
1048 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1083 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1049 } 1084 }
1050 buildCounterCampaignCreativeAssociationsListResponse--; 1085 buildCounterCampaignCreativeAssociationsListResponse--;
1051 } 1086 }
1052 1087
1053 buildUnnamed307() { 1088 buildUnnamed720() {
1054 var o = new core.List<api.Campaign>(); 1089 var o = new core.List<api.Campaign>();
1055 o.add(buildCampaign()); 1090 o.add(buildCampaign());
1056 o.add(buildCampaign()); 1091 o.add(buildCampaign());
1057 return o; 1092 return o;
1058 } 1093 }
1059 1094
1060 checkUnnamed307(core.List<api.Campaign> o) { 1095 checkUnnamed720(core.List<api.Campaign> o) {
1061 unittest.expect(o, unittest.hasLength(2)); 1096 unittest.expect(o, unittest.hasLength(2));
1062 checkCampaign(o[0]); 1097 checkCampaign(o[0]);
1063 checkCampaign(o[1]); 1098 checkCampaign(o[1]);
1064 } 1099 }
1065 1100
1066 core.int buildCounterCampaignsListResponse = 0; 1101 core.int buildCounterCampaignsListResponse = 0;
1067 buildCampaignsListResponse() { 1102 buildCampaignsListResponse() {
1068 var o = new api.CampaignsListResponse(); 1103 var o = new api.CampaignsListResponse();
1069 buildCounterCampaignsListResponse++; 1104 buildCounterCampaignsListResponse++;
1070 if (buildCounterCampaignsListResponse < 3) { 1105 if (buildCounterCampaignsListResponse < 3) {
1071 o.campaigns = buildUnnamed307(); 1106 o.campaigns = buildUnnamed720();
1072 o.kind = "foo"; 1107 o.kind = "foo";
1073 o.nextPageToken = "foo"; 1108 o.nextPageToken = "foo";
1074 } 1109 }
1075 buildCounterCampaignsListResponse--; 1110 buildCounterCampaignsListResponse--;
1076 return o; 1111 return o;
1077 } 1112 }
1078 1113
1079 checkCampaignsListResponse(api.CampaignsListResponse o) { 1114 checkCampaignsListResponse(api.CampaignsListResponse o) {
1080 buildCounterCampaignsListResponse++; 1115 buildCounterCampaignsListResponse++;
1081 if (buildCounterCampaignsListResponse < 3) { 1116 if (buildCounterCampaignsListResponse < 3) {
1082 checkUnnamed307(o.campaigns); 1117 checkUnnamed720(o.campaigns);
1083 unittest.expect(o.kind, unittest.equals('foo')); 1118 unittest.expect(o.kind, unittest.equals('foo'));
1084 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1119 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1085 } 1120 }
1086 buildCounterCampaignsListResponse--; 1121 buildCounterCampaignsListResponse--;
1087 } 1122 }
1088 1123
1089 core.int buildCounterChangeLog = 0; 1124 core.int buildCounterChangeLog = 0;
1090 buildChangeLog() { 1125 buildChangeLog() {
1091 var o = new api.ChangeLog(); 1126 var o = new api.ChangeLog();
1092 buildCounterChangeLog++; 1127 buildCounterChangeLog++;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 unittest.expect(o.objectType, unittest.equals('foo')); 1159 unittest.expect(o.objectType, unittest.equals('foo'));
1125 unittest.expect(o.oldValue, unittest.equals('foo')); 1160 unittest.expect(o.oldValue, unittest.equals('foo'));
1126 unittest.expect(o.subaccountId, unittest.equals('foo')); 1161 unittest.expect(o.subaccountId, unittest.equals('foo'));
1127 unittest.expect(o.transactionId, unittest.equals('foo')); 1162 unittest.expect(o.transactionId, unittest.equals('foo'));
1128 unittest.expect(o.userProfileId, unittest.equals('foo')); 1163 unittest.expect(o.userProfileId, unittest.equals('foo'));
1129 unittest.expect(o.userProfileName, unittest.equals('foo')); 1164 unittest.expect(o.userProfileName, unittest.equals('foo'));
1130 } 1165 }
1131 buildCounterChangeLog--; 1166 buildCounterChangeLog--;
1132 } 1167 }
1133 1168
1134 buildUnnamed308() { 1169 buildUnnamed721() {
1135 var o = new core.List<api.ChangeLog>(); 1170 var o = new core.List<api.ChangeLog>();
1136 o.add(buildChangeLog()); 1171 o.add(buildChangeLog());
1137 o.add(buildChangeLog()); 1172 o.add(buildChangeLog());
1138 return o; 1173 return o;
1139 } 1174 }
1140 1175
1141 checkUnnamed308(core.List<api.ChangeLog> o) { 1176 checkUnnamed721(core.List<api.ChangeLog> o) {
1142 unittest.expect(o, unittest.hasLength(2)); 1177 unittest.expect(o, unittest.hasLength(2));
1143 checkChangeLog(o[0]); 1178 checkChangeLog(o[0]);
1144 checkChangeLog(o[1]); 1179 checkChangeLog(o[1]);
1145 } 1180 }
1146 1181
1147 core.int buildCounterChangeLogsListResponse = 0; 1182 core.int buildCounterChangeLogsListResponse = 0;
1148 buildChangeLogsListResponse() { 1183 buildChangeLogsListResponse() {
1149 var o = new api.ChangeLogsListResponse(); 1184 var o = new api.ChangeLogsListResponse();
1150 buildCounterChangeLogsListResponse++; 1185 buildCounterChangeLogsListResponse++;
1151 if (buildCounterChangeLogsListResponse < 3) { 1186 if (buildCounterChangeLogsListResponse < 3) {
1152 o.changeLogs = buildUnnamed308(); 1187 o.changeLogs = buildUnnamed721();
1153 o.kind = "foo"; 1188 o.kind = "foo";
1154 o.nextPageToken = "foo"; 1189 o.nextPageToken = "foo";
1155 } 1190 }
1156 buildCounterChangeLogsListResponse--; 1191 buildCounterChangeLogsListResponse--;
1157 return o; 1192 return o;
1158 } 1193 }
1159 1194
1160 checkChangeLogsListResponse(api.ChangeLogsListResponse o) { 1195 checkChangeLogsListResponse(api.ChangeLogsListResponse o) {
1161 buildCounterChangeLogsListResponse++; 1196 buildCounterChangeLogsListResponse++;
1162 if (buildCounterChangeLogsListResponse < 3) { 1197 if (buildCounterChangeLogsListResponse < 3) {
1163 checkUnnamed308(o.changeLogs); 1198 checkUnnamed721(o.changeLogs);
1164 unittest.expect(o.kind, unittest.equals('foo')); 1199 unittest.expect(o.kind, unittest.equals('foo'));
1165 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1200 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1166 } 1201 }
1167 buildCounterChangeLogsListResponse--; 1202 buildCounterChangeLogsListResponse--;
1168 } 1203 }
1169 1204
1170 buildUnnamed309() { 1205 buildUnnamed722() {
1171 var o = new core.List<api.City>(); 1206 var o = new core.List<api.City>();
1172 o.add(buildCity()); 1207 o.add(buildCity());
1173 o.add(buildCity()); 1208 o.add(buildCity());
1174 return o; 1209 return o;
1175 } 1210 }
1176 1211
1177 checkUnnamed309(core.List<api.City> o) { 1212 checkUnnamed722(core.List<api.City> o) {
1178 unittest.expect(o, unittest.hasLength(2)); 1213 unittest.expect(o, unittest.hasLength(2));
1179 checkCity(o[0]); 1214 checkCity(o[0]);
1180 checkCity(o[1]); 1215 checkCity(o[1]);
1181 } 1216 }
1182 1217
1183 core.int buildCounterCitiesListResponse = 0; 1218 core.int buildCounterCitiesListResponse = 0;
1184 buildCitiesListResponse() { 1219 buildCitiesListResponse() {
1185 var o = new api.CitiesListResponse(); 1220 var o = new api.CitiesListResponse();
1186 buildCounterCitiesListResponse++; 1221 buildCounterCitiesListResponse++;
1187 if (buildCounterCitiesListResponse < 3) { 1222 if (buildCounterCitiesListResponse < 3) {
1188 o.cities = buildUnnamed309(); 1223 o.cities = buildUnnamed722();
1189 o.kind = "foo"; 1224 o.kind = "foo";
1190 } 1225 }
1191 buildCounterCitiesListResponse--; 1226 buildCounterCitiesListResponse--;
1192 return o; 1227 return o;
1193 } 1228 }
1194 1229
1195 checkCitiesListResponse(api.CitiesListResponse o) { 1230 checkCitiesListResponse(api.CitiesListResponse o) {
1196 buildCounterCitiesListResponse++; 1231 buildCounterCitiesListResponse++;
1197 if (buildCounterCitiesListResponse < 3) { 1232 if (buildCounterCitiesListResponse < 3) {
1198 checkUnnamed309(o.cities); 1233 checkUnnamed722(o.cities);
1199 unittest.expect(o.kind, unittest.equals('foo')); 1234 unittest.expect(o.kind, unittest.equals('foo'));
1200 } 1235 }
1201 buildCounterCitiesListResponse--; 1236 buildCounterCitiesListResponse--;
1202 } 1237 }
1203 1238
1204 core.int buildCounterCity = 0; 1239 core.int buildCounterCity = 0;
1205 buildCity() { 1240 buildCity() {
1206 var o = new api.City(); 1241 var o = new api.City();
1207 buildCounterCity++; 1242 buildCounterCity++;
1208 if (buildCounterCity < 3) { 1243 if (buildCounterCity < 3) {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1369 checkConnectionType(api.ConnectionType o) { 1404 checkConnectionType(api.ConnectionType o) {
1370 buildCounterConnectionType++; 1405 buildCounterConnectionType++;
1371 if (buildCounterConnectionType < 3) { 1406 if (buildCounterConnectionType < 3) {
1372 unittest.expect(o.id, unittest.equals('foo')); 1407 unittest.expect(o.id, unittest.equals('foo'));
1373 unittest.expect(o.kind, unittest.equals('foo')); 1408 unittest.expect(o.kind, unittest.equals('foo'));
1374 unittest.expect(o.name, unittest.equals('foo')); 1409 unittest.expect(o.name, unittest.equals('foo'));
1375 } 1410 }
1376 buildCounterConnectionType--; 1411 buildCounterConnectionType--;
1377 } 1412 }
1378 1413
1379 buildUnnamed310() { 1414 buildUnnamed723() {
1380 var o = new core.List<api.ConnectionType>(); 1415 var o = new core.List<api.ConnectionType>();
1381 o.add(buildConnectionType()); 1416 o.add(buildConnectionType());
1382 o.add(buildConnectionType()); 1417 o.add(buildConnectionType());
1383 return o; 1418 return o;
1384 } 1419 }
1385 1420
1386 checkUnnamed310(core.List<api.ConnectionType> o) { 1421 checkUnnamed723(core.List<api.ConnectionType> o) {
1387 unittest.expect(o, unittest.hasLength(2)); 1422 unittest.expect(o, unittest.hasLength(2));
1388 checkConnectionType(o[0]); 1423 checkConnectionType(o[0]);
1389 checkConnectionType(o[1]); 1424 checkConnectionType(o[1]);
1390 } 1425 }
1391 1426
1392 core.int buildCounterConnectionTypesListResponse = 0; 1427 core.int buildCounterConnectionTypesListResponse = 0;
1393 buildConnectionTypesListResponse() { 1428 buildConnectionTypesListResponse() {
1394 var o = new api.ConnectionTypesListResponse(); 1429 var o = new api.ConnectionTypesListResponse();
1395 buildCounterConnectionTypesListResponse++; 1430 buildCounterConnectionTypesListResponse++;
1396 if (buildCounterConnectionTypesListResponse < 3) { 1431 if (buildCounterConnectionTypesListResponse < 3) {
1397 o.connectionTypes = buildUnnamed310(); 1432 o.connectionTypes = buildUnnamed723();
1398 o.kind = "foo"; 1433 o.kind = "foo";
1399 } 1434 }
1400 buildCounterConnectionTypesListResponse--; 1435 buildCounterConnectionTypesListResponse--;
1401 return o; 1436 return o;
1402 } 1437 }
1403 1438
1404 checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { 1439 checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) {
1405 buildCounterConnectionTypesListResponse++; 1440 buildCounterConnectionTypesListResponse++;
1406 if (buildCounterConnectionTypesListResponse < 3) { 1441 if (buildCounterConnectionTypesListResponse < 3) {
1407 checkUnnamed310(o.connectionTypes); 1442 checkUnnamed723(o.connectionTypes);
1408 unittest.expect(o.kind, unittest.equals('foo')); 1443 unittest.expect(o.kind, unittest.equals('foo'));
1409 } 1444 }
1410 buildCounterConnectionTypesListResponse--; 1445 buildCounterConnectionTypesListResponse--;
1411 } 1446 }
1412 1447
1413 buildUnnamed311() { 1448 buildUnnamed724() {
1414 var o = new core.List<api.ContentCategory>(); 1449 var o = new core.List<api.ContentCategory>();
1415 o.add(buildContentCategory()); 1450 o.add(buildContentCategory());
1416 o.add(buildContentCategory()); 1451 o.add(buildContentCategory());
1417 return o; 1452 return o;
1418 } 1453 }
1419 1454
1420 checkUnnamed311(core.List<api.ContentCategory> o) { 1455 checkUnnamed724(core.List<api.ContentCategory> o) {
1421 unittest.expect(o, unittest.hasLength(2)); 1456 unittest.expect(o, unittest.hasLength(2));
1422 checkContentCategory(o[0]); 1457 checkContentCategory(o[0]);
1423 checkContentCategory(o[1]); 1458 checkContentCategory(o[1]);
1424 } 1459 }
1425 1460
1426 core.int buildCounterContentCategoriesListResponse = 0; 1461 core.int buildCounterContentCategoriesListResponse = 0;
1427 buildContentCategoriesListResponse() { 1462 buildContentCategoriesListResponse() {
1428 var o = new api.ContentCategoriesListResponse(); 1463 var o = new api.ContentCategoriesListResponse();
1429 buildCounterContentCategoriesListResponse++; 1464 buildCounterContentCategoriesListResponse++;
1430 if (buildCounterContentCategoriesListResponse < 3) { 1465 if (buildCounterContentCategoriesListResponse < 3) {
1431 o.contentCategories = buildUnnamed311(); 1466 o.contentCategories = buildUnnamed724();
1432 o.kind = "foo"; 1467 o.kind = "foo";
1433 o.nextPageToken = "foo"; 1468 o.nextPageToken = "foo";
1434 } 1469 }
1435 buildCounterContentCategoriesListResponse--; 1470 buildCounterContentCategoriesListResponse--;
1436 return o; 1471 return o;
1437 } 1472 }
1438 1473
1439 checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { 1474 checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) {
1440 buildCounterContentCategoriesListResponse++; 1475 buildCounterContentCategoriesListResponse++;
1441 if (buildCounterContentCategoriesListResponse < 3) { 1476 if (buildCounterContentCategoriesListResponse < 3) {
1442 checkUnnamed311(o.contentCategories); 1477 checkUnnamed724(o.contentCategories);
1443 unittest.expect(o.kind, unittest.equals('foo')); 1478 unittest.expect(o.kind, unittest.equals('foo'));
1444 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1479 unittest.expect(o.nextPageToken, unittest.equals('foo'));
1445 } 1480 }
1446 buildCounterContentCategoriesListResponse--; 1481 buildCounterContentCategoriesListResponse--;
1447 } 1482 }
1448 1483
1449 core.int buildCounterContentCategory = 0; 1484 core.int buildCounterContentCategory = 0;
1450 buildContentCategory() { 1485 buildContentCategory() {
1451 var o = new api.ContentCategory(); 1486 var o = new api.ContentCategory();
1452 buildCounterContentCategory++; 1487 buildCounterContentCategory++;
(...skipping 13 matching lines...) Expand all
1466 if (buildCounterContentCategory < 3) { 1501 if (buildCounterContentCategory < 3) {
1467 unittest.expect(o.accountId, unittest.equals('foo')); 1502 unittest.expect(o.accountId, unittest.equals('foo'));
1468 unittest.expect(o.description, unittest.equals('foo')); 1503 unittest.expect(o.description, unittest.equals('foo'));
1469 unittest.expect(o.id, unittest.equals('foo')); 1504 unittest.expect(o.id, unittest.equals('foo'));
1470 unittest.expect(o.kind, unittest.equals('foo')); 1505 unittest.expect(o.kind, unittest.equals('foo'));
1471 unittest.expect(o.name, unittest.equals('foo')); 1506 unittest.expect(o.name, unittest.equals('foo'));
1472 } 1507 }
1473 buildCounterContentCategory--; 1508 buildCounterContentCategory--;
1474 } 1509 }
1475 1510
1476 buildUnnamed312() { 1511 buildUnnamed725() {
1477 var o = new core.List<api.Country>(); 1512 var o = new core.List<api.Country>();
1478 o.add(buildCountry()); 1513 o.add(buildCountry());
1479 o.add(buildCountry()); 1514 o.add(buildCountry());
1480 return o; 1515 return o;
1481 } 1516 }
1482 1517
1483 checkUnnamed312(core.List<api.Country> o) { 1518 checkUnnamed725(core.List<api.Country> o) {
1484 unittest.expect(o, unittest.hasLength(2)); 1519 unittest.expect(o, unittest.hasLength(2));
1485 checkCountry(o[0]); 1520 checkCountry(o[0]);
1486 checkCountry(o[1]); 1521 checkCountry(o[1]);
1487 } 1522 }
1488 1523
1489 core.int buildCounterCountriesListResponse = 0; 1524 core.int buildCounterCountriesListResponse = 0;
1490 buildCountriesListResponse() { 1525 buildCountriesListResponse() {
1491 var o = new api.CountriesListResponse(); 1526 var o = new api.CountriesListResponse();
1492 buildCounterCountriesListResponse++; 1527 buildCounterCountriesListResponse++;
1493 if (buildCounterCountriesListResponse < 3) { 1528 if (buildCounterCountriesListResponse < 3) {
1494 o.countries = buildUnnamed312(); 1529 o.countries = buildUnnamed725();
1495 o.kind = "foo"; 1530 o.kind = "foo";
1496 } 1531 }
1497 buildCounterCountriesListResponse--; 1532 buildCounterCountriesListResponse--;
1498 return o; 1533 return o;
1499 } 1534 }
1500 1535
1501 checkCountriesListResponse(api.CountriesListResponse o) { 1536 checkCountriesListResponse(api.CountriesListResponse o) {
1502 buildCounterCountriesListResponse++; 1537 buildCounterCountriesListResponse++;
1503 if (buildCounterCountriesListResponse < 3) { 1538 if (buildCounterCountriesListResponse < 3) {
1504 checkUnnamed312(o.countries); 1539 checkUnnamed725(o.countries);
1505 unittest.expect(o.kind, unittest.equals('foo')); 1540 unittest.expect(o.kind, unittest.equals('foo'));
1506 } 1541 }
1507 buildCounterCountriesListResponse--; 1542 buildCounterCountriesListResponse--;
1508 } 1543 }
1509 1544
1510 core.int buildCounterCountry = 0; 1545 core.int buildCounterCountry = 0;
1511 buildCountry() { 1546 buildCountry() {
1512 var o = new api.Country(); 1547 var o = new api.Country();
1513 buildCounterCountry++; 1548 buildCounterCountry++;
1514 if (buildCounterCountry < 3) { 1549 if (buildCounterCountry < 3) {
(...skipping 12 matching lines...) Expand all
1527 if (buildCounterCountry < 3) { 1562 if (buildCounterCountry < 3) {
1528 unittest.expect(o.countryCode, unittest.equals('foo')); 1563 unittest.expect(o.countryCode, unittest.equals('foo'));
1529 unittest.expect(o.dartId, unittest.equals('foo')); 1564 unittest.expect(o.dartId, unittest.equals('foo'));
1530 unittest.expect(o.kind, unittest.equals('foo')); 1565 unittest.expect(o.kind, unittest.equals('foo'));
1531 unittest.expect(o.name, unittest.equals('foo')); 1566 unittest.expect(o.name, unittest.equals('foo'));
1532 unittest.expect(o.sslEnabled, unittest.isTrue); 1567 unittest.expect(o.sslEnabled, unittest.isTrue);
1533 } 1568 }
1534 buildCounterCountry--; 1569 buildCounterCountry--;
1535 } 1570 }
1536 1571
1537 buildUnnamed313() { 1572 buildUnnamed726() {
1538 var o = new core.List<core.String>(); 1573 var o = new core.List<core.String>();
1539 o.add("foo"); 1574 o.add("foo");
1540 o.add("foo"); 1575 o.add("foo");
1541 return o; 1576 return o;
1542 } 1577 }
1543 1578
1544 checkUnnamed313(core.List<core.String> o) { 1579 checkUnnamed726(core.List<core.String> o) {
1545 unittest.expect(o, unittest.hasLength(2)); 1580 unittest.expect(o, unittest.hasLength(2));
1546 unittest.expect(o[0], unittest.equals('foo')); 1581 unittest.expect(o[0], unittest.equals('foo'));
1547 unittest.expect(o[1], unittest.equals('foo')); 1582 unittest.expect(o[1], unittest.equals('foo'));
1548 } 1583 }
1549 1584
1550 buildUnnamed314() { 1585 buildUnnamed727() {
1551 var o = new core.List<core.String>(); 1586 var o = new core.List<core.String>();
1552 o.add("foo"); 1587 o.add("foo");
1553 o.add("foo"); 1588 o.add("foo");
1554 return o; 1589 return o;
1555 } 1590 }
1556 1591
1557 checkUnnamed314(core.List<core.String> o) { 1592 checkUnnamed727(core.List<core.String> o) {
1558 unittest.expect(o, unittest.hasLength(2)); 1593 unittest.expect(o, unittest.hasLength(2));
1559 unittest.expect(o[0], unittest.equals('foo')); 1594 unittest.expect(o[0], unittest.equals('foo'));
1560 unittest.expect(o[1], unittest.equals('foo')); 1595 unittest.expect(o[1], unittest.equals('foo'));
1561 } 1596 }
1562 1597
1563 buildUnnamed315() { 1598 buildUnnamed728() {
1564 var o = new core.List<api.ClickTag>(); 1599 var o = new core.List<api.ClickTag>();
1565 o.add(buildClickTag()); 1600 o.add(buildClickTag());
1566 o.add(buildClickTag()); 1601 o.add(buildClickTag());
1567 return o; 1602 return o;
1568 } 1603 }
1569 1604
1570 checkUnnamed315(core.List<api.ClickTag> o) { 1605 checkUnnamed728(core.List<api.ClickTag> o) {
1571 unittest.expect(o, unittest.hasLength(2)); 1606 unittest.expect(o, unittest.hasLength(2));
1572 checkClickTag(o[0]); 1607 checkClickTag(o[0]);
1573 checkClickTag(o[1]); 1608 checkClickTag(o[1]);
1574 } 1609 }
1575 1610
1576 buildUnnamed316() { 1611 buildUnnamed729() {
1577 var o = new core.List<core.String>(); 1612 var o = new core.List<core.String>();
1578 o.add("foo"); 1613 o.add("foo");
1579 o.add("foo"); 1614 o.add("foo");
1580 return o; 1615 return o;
1581 } 1616 }
1582 1617
1583 checkUnnamed316(core.List<core.String> o) { 1618 checkUnnamed729(core.List<core.String> o) {
1584 unittest.expect(o, unittest.hasLength(2)); 1619 unittest.expect(o, unittest.hasLength(2));
1585 unittest.expect(o[0], unittest.equals('foo')); 1620 unittest.expect(o[0], unittest.equals('foo'));
1586 unittest.expect(o[1], unittest.equals('foo')); 1621 unittest.expect(o[1], unittest.equals('foo'));
1587 } 1622 }
1588 1623
1589 buildUnnamed317() { 1624 buildUnnamed730() {
1590 var o = new core.List<core.String>(); 1625 var o = new core.List<core.String>();
1591 o.add("foo"); 1626 o.add("foo");
1592 o.add("foo"); 1627 o.add("foo");
1593 return o; 1628 return o;
1594 } 1629 }
1595 1630
1596 checkUnnamed317(core.List<core.String> o) { 1631 checkUnnamed730(core.List<core.String> o) {
1597 unittest.expect(o, unittest.hasLength(2)); 1632 unittest.expect(o, unittest.hasLength(2));
1598 unittest.expect(o[0], unittest.equals('foo')); 1633 unittest.expect(o[0], unittest.equals('foo'));
1599 unittest.expect(o[1], unittest.equals('foo')); 1634 unittest.expect(o[1], unittest.equals('foo'));
1600 } 1635 }
1601 1636
1602 buildUnnamed318() { 1637 buildUnnamed731() {
1603 var o = new core.List<api.CreativeCustomEvent>(); 1638 var o = new core.List<api.CreativeCustomEvent>();
1604 o.add(buildCreativeCustomEvent()); 1639 o.add(buildCreativeCustomEvent());
1605 o.add(buildCreativeCustomEvent()); 1640 o.add(buildCreativeCustomEvent());
1606 return o; 1641 return o;
1607 } 1642 }
1608 1643
1609 checkUnnamed318(core.List<api.CreativeCustomEvent> o) { 1644 checkUnnamed731(core.List<api.CreativeCustomEvent> o) {
1610 unittest.expect(o, unittest.hasLength(2)); 1645 unittest.expect(o, unittest.hasLength(2));
1611 checkCreativeCustomEvent(o[0]); 1646 checkCreativeCustomEvent(o[0]);
1612 checkCreativeCustomEvent(o[1]); 1647 checkCreativeCustomEvent(o[1]);
1613 } 1648 }
1614 1649
1615 buildUnnamed319() { 1650 buildUnnamed732() {
1616 var o = new core.List<api.CreativeAsset>(); 1651 var o = new core.List<api.CreativeAsset>();
1617 o.add(buildCreativeAsset()); 1652 o.add(buildCreativeAsset());
1618 o.add(buildCreativeAsset()); 1653 o.add(buildCreativeAsset());
1619 return o; 1654 return o;
1620 } 1655 }
1621 1656
1622 checkUnnamed319(core.List<api.CreativeAsset> o) { 1657 checkUnnamed732(core.List<api.CreativeAsset> o) {
1623 unittest.expect(o, unittest.hasLength(2)); 1658 unittest.expect(o, unittest.hasLength(2));
1624 checkCreativeAsset(o[0]); 1659 checkCreativeAsset(o[0]);
1625 checkCreativeAsset(o[1]); 1660 checkCreativeAsset(o[1]);
1626 } 1661 }
1627 1662
1628 buildUnnamed320() { 1663 buildUnnamed733() {
1629 var o = new core.List<api.CreativeFieldAssignment>(); 1664 var o = new core.List<api.CreativeFieldAssignment>();
1630 o.add(buildCreativeFieldAssignment()); 1665 o.add(buildCreativeFieldAssignment());
1631 o.add(buildCreativeFieldAssignment()); 1666 o.add(buildCreativeFieldAssignment());
1632 return o; 1667 return o;
1633 } 1668 }
1634 1669
1635 checkUnnamed320(core.List<api.CreativeFieldAssignment> o) { 1670 checkUnnamed733(core.List<api.CreativeFieldAssignment> o) {
1636 unittest.expect(o, unittest.hasLength(2)); 1671 unittest.expect(o, unittest.hasLength(2));
1637 checkCreativeFieldAssignment(o[0]); 1672 checkCreativeFieldAssignment(o[0]);
1638 checkCreativeFieldAssignment(o[1]); 1673 checkCreativeFieldAssignment(o[1]);
1639 } 1674 }
1640 1675
1641 buildUnnamed321() { 1676 buildUnnamed734() {
1642 var o = new core.List<core.String>(); 1677 var o = new core.List<core.String>();
1643 o.add("foo"); 1678 o.add("foo");
1644 o.add("foo"); 1679 o.add("foo");
1645 return o; 1680 return o;
1646 } 1681 }
1647 1682
1648 checkUnnamed321(core.List<core.String> o) { 1683 checkUnnamed734(core.List<core.String> o) {
1649 unittest.expect(o, unittest.hasLength(2)); 1684 unittest.expect(o, unittest.hasLength(2));
1650 unittest.expect(o[0], unittest.equals('foo')); 1685 unittest.expect(o[0], unittest.equals('foo'));
1651 unittest.expect(o[1], unittest.equals('foo')); 1686 unittest.expect(o[1], unittest.equals('foo'));
1652 } 1687 }
1653 1688
1654 buildUnnamed322() { 1689 buildUnnamed735() {
1655 var o = new core.List<api.CreativeCustomEvent>(); 1690 var o = new core.List<api.CreativeCustomEvent>();
1656 o.add(buildCreativeCustomEvent()); 1691 o.add(buildCreativeCustomEvent());
1657 o.add(buildCreativeCustomEvent()); 1692 o.add(buildCreativeCustomEvent());
1658 return o; 1693 return o;
1659 } 1694 }
1660 1695
1661 checkUnnamed322(core.List<api.CreativeCustomEvent> o) { 1696 checkUnnamed735(core.List<api.CreativeCustomEvent> o) {
1662 unittest.expect(o, unittest.hasLength(2)); 1697 unittest.expect(o, unittest.hasLength(2));
1663 checkCreativeCustomEvent(o[0]); 1698 checkCreativeCustomEvent(o[0]);
1664 checkCreativeCustomEvent(o[1]); 1699 checkCreativeCustomEvent(o[1]);
1665 } 1700 }
1666 1701
1667 buildUnnamed323() { 1702 buildUnnamed736() {
1668 var o = new core.List<api.ThirdPartyTrackingUrl>(); 1703 var o = new core.List<api.ThirdPartyTrackingUrl>();
1669 o.add(buildThirdPartyTrackingUrl()); 1704 o.add(buildThirdPartyTrackingUrl());
1670 o.add(buildThirdPartyTrackingUrl()); 1705 o.add(buildThirdPartyTrackingUrl());
1671 return o; 1706 return o;
1672 } 1707 }
1673 1708
1674 checkUnnamed323(core.List<api.ThirdPartyTrackingUrl> o) { 1709 checkUnnamed736(core.List<api.ThirdPartyTrackingUrl> o) {
1675 unittest.expect(o, unittest.hasLength(2)); 1710 unittest.expect(o, unittest.hasLength(2));
1676 checkThirdPartyTrackingUrl(o[0]); 1711 checkThirdPartyTrackingUrl(o[0]);
1677 checkThirdPartyTrackingUrl(o[1]); 1712 checkThirdPartyTrackingUrl(o[1]);
1678 } 1713 }
1679 1714
1680 buildUnnamed324() { 1715 buildUnnamed737() {
1681 var o = new core.List<api.CreativeCustomEvent>(); 1716 var o = new core.List<api.CreativeCustomEvent>();
1682 o.add(buildCreativeCustomEvent()); 1717 o.add(buildCreativeCustomEvent());
1683 o.add(buildCreativeCustomEvent()); 1718 o.add(buildCreativeCustomEvent());
1684 return o; 1719 return o;
1685 } 1720 }
1686 1721
1687 checkUnnamed324(core.List<api.CreativeCustomEvent> o) { 1722 checkUnnamed737(core.List<api.CreativeCustomEvent> o) {
1688 unittest.expect(o, unittest.hasLength(2)); 1723 unittest.expect(o, unittest.hasLength(2));
1689 checkCreativeCustomEvent(o[0]); 1724 checkCreativeCustomEvent(o[0]);
1690 checkCreativeCustomEvent(o[1]); 1725 checkCreativeCustomEvent(o[1]);
1691 } 1726 }
1692 1727
1693 core.int buildCounterCreative = 0; 1728 core.int buildCounterCreative = 0;
1694 buildCreative() { 1729 buildCreative() {
1695 var o = new api.Creative(); 1730 var o = new api.Creative();
1696 buildCounterCreative++; 1731 buildCounterCreative++;
1697 if (buildCounterCreative < 3) { 1732 if (buildCounterCreative < 3) {
1698 o.accountId = "foo"; 1733 o.accountId = "foo";
1699 o.active = true; 1734 o.active = true;
1700 o.adParameters = "foo"; 1735 o.adParameters = "foo";
1701 o.adTagKeys = buildUnnamed313(); 1736 o.adTagKeys = buildUnnamed726();
1702 o.advertiserId = "foo"; 1737 o.advertiserId = "foo";
1703 o.allowScriptAccess = true; 1738 o.allowScriptAccess = true;
1704 o.archived = true; 1739 o.archived = true;
1705 o.artworkType = "foo"; 1740 o.artworkType = "foo";
1706 o.authoringTool = "foo"; 1741 o.authoringTool = "foo";
1707 o.autoAdvanceImages = true; 1742 o.autoAdvanceImages = true;
1708 o.backgroundColor = "foo"; 1743 o.backgroundColor = "foo";
1709 o.backupImageClickThroughUrl = "foo"; 1744 o.backupImageClickThroughUrl = "foo";
1710 o.backupImageFeatures = buildUnnamed314(); 1745 o.backupImageFeatures = buildUnnamed727();
1711 o.backupImageReportingLabel = "foo"; 1746 o.backupImageReportingLabel = "foo";
1712 o.backupImageTargetWindow = buildTargetWindow(); 1747 o.backupImageTargetWindow = buildTargetWindow();
1713 o.clickTags = buildUnnamed315(); 1748 o.clickTags = buildUnnamed728();
1714 o.commercialId = "foo"; 1749 o.commercialId = "foo";
1715 o.companionCreatives = buildUnnamed316(); 1750 o.companionCreatives = buildUnnamed729();
1716 o.compatibility = buildUnnamed317(); 1751 o.compatibility = buildUnnamed730();
1717 o.counterCustomEvents = buildUnnamed318(); 1752 o.counterCustomEvents = buildUnnamed731();
1718 o.creativeAssets = buildUnnamed319(); 1753 o.creativeAssets = buildUnnamed732();
1719 o.creativeFieldAssignments = buildUnnamed320(); 1754 o.creativeFieldAssignments = buildUnnamed733();
1720 o.customKeyValues = buildUnnamed321(); 1755 o.customKeyValues = buildUnnamed734();
1721 o.exitCustomEvents = buildUnnamed322(); 1756 o.exitCustomEvents = buildUnnamed735();
1722 o.fsCommand = buildFsCommand(); 1757 o.fsCommand = buildFsCommand();
1723 o.htmlCode = "foo"; 1758 o.htmlCode = "foo";
1724 o.htmlCodeLocked = true; 1759 o.htmlCodeLocked = true;
1725 o.id = "foo"; 1760 o.id = "foo";
1726 o.idDimensionValue = buildDimensionValue(); 1761 o.idDimensionValue = buildDimensionValue();
1727 o.kind = "foo"; 1762 o.kind = "foo";
1728 o.lastModifiedInfo = buildLastModifiedInfo(); 1763 o.lastModifiedInfo = buildLastModifiedInfo();
1729 o.latestTraffickedCreativeId = "foo"; 1764 o.latestTraffickedCreativeId = "foo";
1730 o.name = "foo"; 1765 o.name = "foo";
1731 o.overrideCss = "foo"; 1766 o.overrideCss = "foo";
1732 o.redirectUrl = "foo"; 1767 o.redirectUrl = "foo";
1733 o.renderingId = "foo"; 1768 o.renderingId = "foo";
1734 o.renderingIdDimensionValue = buildDimensionValue(); 1769 o.renderingIdDimensionValue = buildDimensionValue();
1735 o.requiredFlashPluginVersion = "foo"; 1770 o.requiredFlashPluginVersion = "foo";
1736 o.requiredFlashVersion = 42; 1771 o.requiredFlashVersion = 42;
1737 o.size = buildSize(); 1772 o.size = buildSize();
1738 o.skippable = true; 1773 o.skippable = true;
1739 o.sslCompliant = true; 1774 o.sslCompliant = true;
1740 o.studioAdvertiserId = "foo"; 1775 o.studioAdvertiserId = "foo";
1741 o.studioCreativeId = "foo"; 1776 o.studioCreativeId = "foo";
1742 o.studioTraffickedCreativeId = "foo"; 1777 o.studioTraffickedCreativeId = "foo";
1743 o.subaccountId = "foo"; 1778 o.subaccountId = "foo";
1744 o.thirdPartyBackupImageImpressionsUrl = "foo"; 1779 o.thirdPartyBackupImageImpressionsUrl = "foo";
1745 o.thirdPartyRichMediaImpressionsUrl = "foo"; 1780 o.thirdPartyRichMediaImpressionsUrl = "foo";
1746 o.thirdPartyUrls = buildUnnamed323(); 1781 o.thirdPartyUrls = buildUnnamed736();
1747 o.timerCustomEvents = buildUnnamed324(); 1782 o.timerCustomEvents = buildUnnamed737();
1748 o.totalFileSize = "foo"; 1783 o.totalFileSize = "foo";
1749 o.type = "foo"; 1784 o.type = "foo";
1750 o.version = 42; 1785 o.version = 42;
1751 o.videoDescription = "foo"; 1786 o.videoDescription = "foo";
1752 o.videoDuration = 42.0; 1787 o.videoDuration = 42.0;
1753 } 1788 }
1754 buildCounterCreative--; 1789 buildCounterCreative--;
1755 return o; 1790 return o;
1756 } 1791 }
1757 1792
1758 checkCreative(api.Creative o) { 1793 checkCreative(api.Creative o) {
1759 buildCounterCreative++; 1794 buildCounterCreative++;
1760 if (buildCounterCreative < 3) { 1795 if (buildCounterCreative < 3) {
1761 unittest.expect(o.accountId, unittest.equals('foo')); 1796 unittest.expect(o.accountId, unittest.equals('foo'));
1762 unittest.expect(o.active, unittest.isTrue); 1797 unittest.expect(o.active, unittest.isTrue);
1763 unittest.expect(o.adParameters, unittest.equals('foo')); 1798 unittest.expect(o.adParameters, unittest.equals('foo'));
1764 checkUnnamed313(o.adTagKeys); 1799 checkUnnamed726(o.adTagKeys);
1765 unittest.expect(o.advertiserId, unittest.equals('foo')); 1800 unittest.expect(o.advertiserId, unittest.equals('foo'));
1766 unittest.expect(o.allowScriptAccess, unittest.isTrue); 1801 unittest.expect(o.allowScriptAccess, unittest.isTrue);
1767 unittest.expect(o.archived, unittest.isTrue); 1802 unittest.expect(o.archived, unittest.isTrue);
1768 unittest.expect(o.artworkType, unittest.equals('foo')); 1803 unittest.expect(o.artworkType, unittest.equals('foo'));
1769 unittest.expect(o.authoringTool, unittest.equals('foo')); 1804 unittest.expect(o.authoringTool, unittest.equals('foo'));
1770 unittest.expect(o.autoAdvanceImages, unittest.isTrue); 1805 unittest.expect(o.autoAdvanceImages, unittest.isTrue);
1771 unittest.expect(o.backgroundColor, unittest.equals('foo')); 1806 unittest.expect(o.backgroundColor, unittest.equals('foo'));
1772 unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); 1807 unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo'));
1773 checkUnnamed314(o.backupImageFeatures); 1808 checkUnnamed727(o.backupImageFeatures);
1774 unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); 1809 unittest.expect(o.backupImageReportingLabel, unittest.equals('foo'));
1775 checkTargetWindow(o.backupImageTargetWindow); 1810 checkTargetWindow(o.backupImageTargetWindow);
1776 checkUnnamed315(o.clickTags); 1811 checkUnnamed728(o.clickTags);
1777 unittest.expect(o.commercialId, unittest.equals('foo')); 1812 unittest.expect(o.commercialId, unittest.equals('foo'));
1778 checkUnnamed316(o.companionCreatives); 1813 checkUnnamed729(o.companionCreatives);
1779 checkUnnamed317(o.compatibility); 1814 checkUnnamed730(o.compatibility);
1780 checkUnnamed318(o.counterCustomEvents); 1815 checkUnnamed731(o.counterCustomEvents);
1781 checkUnnamed319(o.creativeAssets); 1816 checkUnnamed732(o.creativeAssets);
1782 checkUnnamed320(o.creativeFieldAssignments); 1817 checkUnnamed733(o.creativeFieldAssignments);
1783 checkUnnamed321(o.customKeyValues); 1818 checkUnnamed734(o.customKeyValues);
1784 checkUnnamed322(o.exitCustomEvents); 1819 checkUnnamed735(o.exitCustomEvents);
1785 checkFsCommand(o.fsCommand); 1820 checkFsCommand(o.fsCommand);
1786 unittest.expect(o.htmlCode, unittest.equals('foo')); 1821 unittest.expect(o.htmlCode, unittest.equals('foo'));
1787 unittest.expect(o.htmlCodeLocked, unittest.isTrue); 1822 unittest.expect(o.htmlCodeLocked, unittest.isTrue);
1788 unittest.expect(o.id, unittest.equals('foo')); 1823 unittest.expect(o.id, unittest.equals('foo'));
1789 checkDimensionValue(o.idDimensionValue); 1824 checkDimensionValue(o.idDimensionValue);
1790 unittest.expect(o.kind, unittest.equals('foo')); 1825 unittest.expect(o.kind, unittest.equals('foo'));
1791 checkLastModifiedInfo(o.lastModifiedInfo); 1826 checkLastModifiedInfo(o.lastModifiedInfo);
1792 unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); 1827 unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo'));
1793 unittest.expect(o.name, unittest.equals('foo')); 1828 unittest.expect(o.name, unittest.equals('foo'));
1794 unittest.expect(o.overrideCss, unittest.equals('foo')); 1829 unittest.expect(o.overrideCss, unittest.equals('foo'));
1795 unittest.expect(o.redirectUrl, unittest.equals('foo')); 1830 unittest.expect(o.redirectUrl, unittest.equals('foo'));
1796 unittest.expect(o.renderingId, unittest.equals('foo')); 1831 unittest.expect(o.renderingId, unittest.equals('foo'));
1797 checkDimensionValue(o.renderingIdDimensionValue); 1832 checkDimensionValue(o.renderingIdDimensionValue);
1798 unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo')); 1833 unittest.expect(o.requiredFlashPluginVersion, unittest.equals('foo'));
1799 unittest.expect(o.requiredFlashVersion, unittest.equals(42)); 1834 unittest.expect(o.requiredFlashVersion, unittest.equals(42));
1800 checkSize(o.size); 1835 checkSize(o.size);
1801 unittest.expect(o.skippable, unittest.isTrue); 1836 unittest.expect(o.skippable, unittest.isTrue);
1802 unittest.expect(o.sslCompliant, unittest.isTrue); 1837 unittest.expect(o.sslCompliant, unittest.isTrue);
1803 unittest.expect(o.studioAdvertiserId, unittest.equals('foo')); 1838 unittest.expect(o.studioAdvertiserId, unittest.equals('foo'));
1804 unittest.expect(o.studioCreativeId, unittest.equals('foo')); 1839 unittest.expect(o.studioCreativeId, unittest.equals('foo'));
1805 unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo')); 1840 unittest.expect(o.studioTraffickedCreativeId, unittest.equals('foo'));
1806 unittest.expect(o.subaccountId, unittest.equals('foo')); 1841 unittest.expect(o.subaccountId, unittest.equals('foo'));
1807 unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo' )); 1842 unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo' ));
1808 unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')) ; 1843 unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')) ;
1809 checkUnnamed323(o.thirdPartyUrls); 1844 checkUnnamed736(o.thirdPartyUrls);
1810 checkUnnamed324(o.timerCustomEvents); 1845 checkUnnamed737(o.timerCustomEvents);
1811 unittest.expect(o.totalFileSize, unittest.equals('foo')); 1846 unittest.expect(o.totalFileSize, unittest.equals('foo'));
1812 unittest.expect(o.type, unittest.equals('foo')); 1847 unittest.expect(o.type, unittest.equals('foo'));
1813 unittest.expect(o.version, unittest.equals(42)); 1848 unittest.expect(o.version, unittest.equals(42));
1814 unittest.expect(o.videoDescription, unittest.equals('foo')); 1849 unittest.expect(o.videoDescription, unittest.equals('foo'));
1815 unittest.expect(o.videoDuration, unittest.equals(42.0)); 1850 unittest.expect(o.videoDuration, unittest.equals(42.0));
1816 } 1851 }
1817 buildCounterCreative--; 1852 buildCounterCreative--;
1818 } 1853 }
1819 1854
1820 buildUnnamed325() { 1855 buildUnnamed738() {
1821 var o = new core.List<core.String>(); 1856 var o = new core.List<core.String>();
1822 o.add("foo"); 1857 o.add("foo");
1823 o.add("foo"); 1858 o.add("foo");
1824 return o; 1859 return o;
1825 } 1860 }
1826 1861
1827 checkUnnamed325(core.List<core.String> o) { 1862 checkUnnamed738(core.List<core.String> o) {
1828 unittest.expect(o, unittest.hasLength(2)); 1863 unittest.expect(o, unittest.hasLength(2));
1829 unittest.expect(o[0], unittest.equals('foo')); 1864 unittest.expect(o[0], unittest.equals('foo'));
1830 unittest.expect(o[1], unittest.equals('foo')); 1865 unittest.expect(o[1], unittest.equals('foo'));
1831 } 1866 }
1832 1867
1833 core.int buildCounterCreativeAsset = 0; 1868 core.int buildCounterCreativeAsset = 0;
1834 buildCreativeAsset() { 1869 buildCreativeAsset() {
1835 var o = new api.CreativeAsset(); 1870 var o = new api.CreativeAsset();
1836 buildCounterCreativeAsset++; 1871 buildCounterCreativeAsset++;
1837 if (buildCounterCreativeAsset < 3) { 1872 if (buildCounterCreativeAsset < 3) {
1838 o.actionScript3 = true; 1873 o.actionScript3 = true;
1839 o.active = true; 1874 o.active = true;
1840 o.alignment = "foo"; 1875 o.alignment = "foo";
1841 o.artworkType = "foo"; 1876 o.artworkType = "foo";
1842 o.assetIdentifier = buildCreativeAssetId(); 1877 o.assetIdentifier = buildCreativeAssetId();
1843 o.backupImageExit = buildCreativeCustomEvent(); 1878 o.backupImageExit = buildCreativeCustomEvent();
1844 o.bitRate = 42; 1879 o.bitRate = 42;
1845 o.childAssetType = "foo"; 1880 o.childAssetType = "foo";
1846 o.collapsedSize = buildSize(); 1881 o.collapsedSize = buildSize();
1847 o.customStartTimeValue = 42; 1882 o.customStartTimeValue = 42;
1848 o.detectedFeatures = buildUnnamed325(); 1883 o.detectedFeatures = buildUnnamed738();
1849 o.displayType = "foo"; 1884 o.displayType = "foo";
1850 o.duration = 42; 1885 o.duration = 42;
1851 o.durationType = "foo"; 1886 o.durationType = "foo";
1852 o.expandedDimension = buildSize(); 1887 o.expandedDimension = buildSize();
1853 o.fileSize = "foo"; 1888 o.fileSize = "foo";
1854 o.flashVersion = 42; 1889 o.flashVersion = 42;
1855 o.hideFlashObjects = true; 1890 o.hideFlashObjects = true;
1856 o.hideSelectionBoxes = true; 1891 o.hideSelectionBoxes = true;
1857 o.horizontallyLocked = true; 1892 o.horizontallyLocked = true;
1858 o.id = "foo"; 1893 o.id = "foo";
(...skipping 29 matching lines...) Expand all
1888 unittest.expect(o.actionScript3, unittest.isTrue); 1923 unittest.expect(o.actionScript3, unittest.isTrue);
1889 unittest.expect(o.active, unittest.isTrue); 1924 unittest.expect(o.active, unittest.isTrue);
1890 unittest.expect(o.alignment, unittest.equals('foo')); 1925 unittest.expect(o.alignment, unittest.equals('foo'));
1891 unittest.expect(o.artworkType, unittest.equals('foo')); 1926 unittest.expect(o.artworkType, unittest.equals('foo'));
1892 checkCreativeAssetId(o.assetIdentifier); 1927 checkCreativeAssetId(o.assetIdentifier);
1893 checkCreativeCustomEvent(o.backupImageExit); 1928 checkCreativeCustomEvent(o.backupImageExit);
1894 unittest.expect(o.bitRate, unittest.equals(42)); 1929 unittest.expect(o.bitRate, unittest.equals(42));
1895 unittest.expect(o.childAssetType, unittest.equals('foo')); 1930 unittest.expect(o.childAssetType, unittest.equals('foo'));
1896 checkSize(o.collapsedSize); 1931 checkSize(o.collapsedSize);
1897 unittest.expect(o.customStartTimeValue, unittest.equals(42)); 1932 unittest.expect(o.customStartTimeValue, unittest.equals(42));
1898 checkUnnamed325(o.detectedFeatures); 1933 checkUnnamed738(o.detectedFeatures);
1899 unittest.expect(o.displayType, unittest.equals('foo')); 1934 unittest.expect(o.displayType, unittest.equals('foo'));
1900 unittest.expect(o.duration, unittest.equals(42)); 1935 unittest.expect(o.duration, unittest.equals(42));
1901 unittest.expect(o.durationType, unittest.equals('foo')); 1936 unittest.expect(o.durationType, unittest.equals('foo'));
1902 checkSize(o.expandedDimension); 1937 checkSize(o.expandedDimension);
1903 unittest.expect(o.fileSize, unittest.equals('foo')); 1938 unittest.expect(o.fileSize, unittest.equals('foo'));
1904 unittest.expect(o.flashVersion, unittest.equals(42)); 1939 unittest.expect(o.flashVersion, unittest.equals(42));
1905 unittest.expect(o.hideFlashObjects, unittest.isTrue); 1940 unittest.expect(o.hideFlashObjects, unittest.isTrue);
1906 unittest.expect(o.hideSelectionBoxes, unittest.isTrue); 1941 unittest.expect(o.hideSelectionBoxes, unittest.isTrue);
1907 unittest.expect(o.horizontallyLocked, unittest.isTrue); 1942 unittest.expect(o.horizontallyLocked, unittest.isTrue);
1908 unittest.expect(o.id, unittest.equals('foo')); 1943 unittest.expect(o.id, unittest.equals('foo'));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1945 1980
1946 checkCreativeAssetId(api.CreativeAssetId o) { 1981 checkCreativeAssetId(api.CreativeAssetId o) {
1947 buildCounterCreativeAssetId++; 1982 buildCounterCreativeAssetId++;
1948 if (buildCounterCreativeAssetId < 3) { 1983 if (buildCounterCreativeAssetId < 3) {
1949 unittest.expect(o.name, unittest.equals('foo')); 1984 unittest.expect(o.name, unittest.equals('foo'));
1950 unittest.expect(o.type, unittest.equals('foo')); 1985 unittest.expect(o.type, unittest.equals('foo'));
1951 } 1986 }
1952 buildCounterCreativeAssetId--; 1987 buildCounterCreativeAssetId--;
1953 } 1988 }
1954 1989
1955 buildUnnamed326() { 1990 buildUnnamed739() {
1956 var o = new core.List<api.ClickTag>(); 1991 var o = new core.List<api.ClickTag>();
1957 o.add(buildClickTag()); 1992 o.add(buildClickTag());
1958 o.add(buildClickTag()); 1993 o.add(buildClickTag());
1959 return o; 1994 return o;
1960 } 1995 }
1961 1996
1962 checkUnnamed326(core.List<api.ClickTag> o) { 1997 checkUnnamed739(core.List<api.ClickTag> o) {
1963 unittest.expect(o, unittest.hasLength(2)); 1998 unittest.expect(o, unittest.hasLength(2));
1964 checkClickTag(o[0]); 1999 checkClickTag(o[0]);
1965 checkClickTag(o[1]); 2000 checkClickTag(o[1]);
1966 } 2001 }
1967 2002
1968 buildUnnamed327() { 2003 buildUnnamed740() {
1969 var o = new core.List<core.String>(); 2004 var o = new core.List<core.String>();
1970 o.add("foo"); 2005 o.add("foo");
1971 o.add("foo"); 2006 o.add("foo");
1972 return o; 2007 return o;
1973 } 2008 }
1974 2009
1975 checkUnnamed327(core.List<core.String> o) { 2010 checkUnnamed740(core.List<core.String> o) {
1976 unittest.expect(o, unittest.hasLength(2)); 2011 unittest.expect(o, unittest.hasLength(2));
1977 unittest.expect(o[0], unittest.equals('foo')); 2012 unittest.expect(o[0], unittest.equals('foo'));
1978 unittest.expect(o[1], unittest.equals('foo')); 2013 unittest.expect(o[1], unittest.equals('foo'));
1979 } 2014 }
1980 2015
1981 buildUnnamed328() { 2016 buildUnnamed741() {
1982 var o = new core.List<core.String>(); 2017 var o = new core.List<core.String>();
1983 o.add("foo"); 2018 o.add("foo");
1984 o.add("foo"); 2019 o.add("foo");
1985 return o; 2020 return o;
1986 } 2021 }
1987 2022
1988 checkUnnamed328(core.List<core.String> o) { 2023 checkUnnamed741(core.List<core.String> o) {
1989 unittest.expect(o, unittest.hasLength(2)); 2024 unittest.expect(o, unittest.hasLength(2));
1990 unittest.expect(o[0], unittest.equals('foo')); 2025 unittest.expect(o[0], unittest.equals('foo'));
1991 unittest.expect(o[1], unittest.equals('foo')); 2026 unittest.expect(o[1], unittest.equals('foo'));
1992 } 2027 }
1993 2028
1994 core.int buildCounterCreativeAssetMetadata = 0; 2029 core.int buildCounterCreativeAssetMetadata = 0;
1995 buildCreativeAssetMetadata() { 2030 buildCreativeAssetMetadata() {
1996 var o = new api.CreativeAssetMetadata(); 2031 var o = new api.CreativeAssetMetadata();
1997 buildCounterCreativeAssetMetadata++; 2032 buildCounterCreativeAssetMetadata++;
1998 if (buildCounterCreativeAssetMetadata < 3) { 2033 if (buildCounterCreativeAssetMetadata < 3) {
1999 o.assetIdentifier = buildCreativeAssetId(); 2034 o.assetIdentifier = buildCreativeAssetId();
2000 o.clickTags = buildUnnamed326(); 2035 o.clickTags = buildUnnamed739();
2001 o.detectedFeatures = buildUnnamed327(); 2036 o.detectedFeatures = buildUnnamed740();
2002 o.kind = "foo"; 2037 o.kind = "foo";
2003 o.warnedValidationRules = buildUnnamed328(); 2038 o.warnedValidationRules = buildUnnamed741();
2004 } 2039 }
2005 buildCounterCreativeAssetMetadata--; 2040 buildCounterCreativeAssetMetadata--;
2006 return o; 2041 return o;
2007 } 2042 }
2008 2043
2009 checkCreativeAssetMetadata(api.CreativeAssetMetadata o) { 2044 checkCreativeAssetMetadata(api.CreativeAssetMetadata o) {
2010 buildCounterCreativeAssetMetadata++; 2045 buildCounterCreativeAssetMetadata++;
2011 if (buildCounterCreativeAssetMetadata < 3) { 2046 if (buildCounterCreativeAssetMetadata < 3) {
2012 checkCreativeAssetId(o.assetIdentifier); 2047 checkCreativeAssetId(o.assetIdentifier);
2013 checkUnnamed326(o.clickTags); 2048 checkUnnamed739(o.clickTags);
2014 checkUnnamed327(o.detectedFeatures); 2049 checkUnnamed740(o.detectedFeatures);
2015 unittest.expect(o.kind, unittest.equals('foo')); 2050 unittest.expect(o.kind, unittest.equals('foo'));
2016 checkUnnamed328(o.warnedValidationRules); 2051 checkUnnamed741(o.warnedValidationRules);
2017 } 2052 }
2018 buildCounterCreativeAssetMetadata--; 2053 buildCounterCreativeAssetMetadata--;
2019 } 2054 }
2020 2055
2021 buildUnnamed329() { 2056 buildUnnamed742() {
2022 var o = new core.List<api.CompanionClickThroughOverride>(); 2057 var o = new core.List<api.CompanionClickThroughOverride>();
2023 o.add(buildCompanionClickThroughOverride()); 2058 o.add(buildCompanionClickThroughOverride());
2024 o.add(buildCompanionClickThroughOverride()); 2059 o.add(buildCompanionClickThroughOverride());
2025 return o; 2060 return o;
2026 } 2061 }
2027 2062
2028 checkUnnamed329(core.List<api.CompanionClickThroughOverride> o) { 2063 checkUnnamed742(core.List<api.CompanionClickThroughOverride> o) {
2029 unittest.expect(o, unittest.hasLength(2)); 2064 unittest.expect(o, unittest.hasLength(2));
2030 checkCompanionClickThroughOverride(o[0]); 2065 checkCompanionClickThroughOverride(o[0]);
2031 checkCompanionClickThroughOverride(o[1]); 2066 checkCompanionClickThroughOverride(o[1]);
2032 } 2067 }
2033 2068
2034 buildUnnamed330() { 2069 buildUnnamed743() {
2035 var o = new core.List<api.CreativeGroupAssignment>(); 2070 var o = new core.List<api.CreativeGroupAssignment>();
2036 o.add(buildCreativeGroupAssignment()); 2071 o.add(buildCreativeGroupAssignment());
2037 o.add(buildCreativeGroupAssignment()); 2072 o.add(buildCreativeGroupAssignment());
2038 return o; 2073 return o;
2039 } 2074 }
2040 2075
2041 checkUnnamed330(core.List<api.CreativeGroupAssignment> o) { 2076 checkUnnamed743(core.List<api.CreativeGroupAssignment> o) {
2042 unittest.expect(o, unittest.hasLength(2)); 2077 unittest.expect(o, unittest.hasLength(2));
2043 checkCreativeGroupAssignment(o[0]); 2078 checkCreativeGroupAssignment(o[0]);
2044 checkCreativeGroupAssignment(o[1]); 2079 checkCreativeGroupAssignment(o[1]);
2045 } 2080 }
2046 2081
2047 buildUnnamed331() { 2082 buildUnnamed744() {
2048 var o = new core.List<api.RichMediaExitOverride>(); 2083 var o = new core.List<api.RichMediaExitOverride>();
2049 o.add(buildRichMediaExitOverride()); 2084 o.add(buildRichMediaExitOverride());
2050 o.add(buildRichMediaExitOverride()); 2085 o.add(buildRichMediaExitOverride());
2051 return o; 2086 return o;
2052 } 2087 }
2053 2088
2054 checkUnnamed331(core.List<api.RichMediaExitOverride> o) { 2089 checkUnnamed744(core.List<api.RichMediaExitOverride> o) {
2055 unittest.expect(o, unittest.hasLength(2)); 2090 unittest.expect(o, unittest.hasLength(2));
2056 checkRichMediaExitOverride(o[0]); 2091 checkRichMediaExitOverride(o[0]);
2057 checkRichMediaExitOverride(o[1]); 2092 checkRichMediaExitOverride(o[1]);
2058 } 2093 }
2059 2094
2060 core.int buildCounterCreativeAssignment = 0; 2095 core.int buildCounterCreativeAssignment = 0;
2061 buildCreativeAssignment() { 2096 buildCreativeAssignment() {
2062 var o = new api.CreativeAssignment(); 2097 var o = new api.CreativeAssignment();
2063 buildCounterCreativeAssignment++; 2098 buildCounterCreativeAssignment++;
2064 if (buildCounterCreativeAssignment < 3) { 2099 if (buildCounterCreativeAssignment < 3) {
2065 o.active = true; 2100 o.active = true;
2066 o.applyEventTags = true; 2101 o.applyEventTags = true;
2067 o.clickThroughUrl = buildClickThroughUrl(); 2102 o.clickThroughUrl = buildClickThroughUrl();
2068 o.companionCreativeOverrides = buildUnnamed329(); 2103 o.companionCreativeOverrides = buildUnnamed742();
2069 o.creativeGroupAssignments = buildUnnamed330(); 2104 o.creativeGroupAssignments = buildUnnamed743();
2070 o.creativeId = "foo"; 2105 o.creativeId = "foo";
2071 o.creativeIdDimensionValue = buildDimensionValue(); 2106 o.creativeIdDimensionValue = buildDimensionValue();
2072 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); 2107 o.endTime = core.DateTime.parse("2002-02-27T14:01:02");
2073 o.richMediaExitOverrides = buildUnnamed331(); 2108 o.richMediaExitOverrides = buildUnnamed744();
2074 o.sequence = 42; 2109 o.sequence = 42;
2075 o.sslCompliant = true; 2110 o.sslCompliant = true;
2076 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); 2111 o.startTime = core.DateTime.parse("2002-02-27T14:01:02");
2077 o.weight = 42; 2112 o.weight = 42;
2078 } 2113 }
2079 buildCounterCreativeAssignment--; 2114 buildCounterCreativeAssignment--;
2080 return o; 2115 return o;
2081 } 2116 }
2082 2117
2083 checkCreativeAssignment(api.CreativeAssignment o) { 2118 checkCreativeAssignment(api.CreativeAssignment o) {
2084 buildCounterCreativeAssignment++; 2119 buildCounterCreativeAssignment++;
2085 if (buildCounterCreativeAssignment < 3) { 2120 if (buildCounterCreativeAssignment < 3) {
2086 unittest.expect(o.active, unittest.isTrue); 2121 unittest.expect(o.active, unittest.isTrue);
2087 unittest.expect(o.applyEventTags, unittest.isTrue); 2122 unittest.expect(o.applyEventTags, unittest.isTrue);
2088 checkClickThroughUrl(o.clickThroughUrl); 2123 checkClickThroughUrl(o.clickThroughUrl);
2089 checkUnnamed329(o.companionCreativeOverrides); 2124 checkUnnamed742(o.companionCreativeOverrides);
2090 checkUnnamed330(o.creativeGroupAssignments); 2125 checkUnnamed743(o.creativeGroupAssignments);
2091 unittest.expect(o.creativeId, unittest.equals('foo')); 2126 unittest.expect(o.creativeId, unittest.equals('foo'));
2092 checkDimensionValue(o.creativeIdDimensionValue); 2127 checkDimensionValue(o.creativeIdDimensionValue);
2093 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02"))); 2128 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
2094 checkUnnamed331(o.richMediaExitOverrides); 2129 checkUnnamed744(o.richMediaExitOverrides);
2095 unittest.expect(o.sequence, unittest.equals(42)); 2130 unittest.expect(o.sequence, unittest.equals(42));
2096 unittest.expect(o.sslCompliant, unittest.isTrue); 2131 unittest.expect(o.sslCompliant, unittest.isTrue);
2097 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02"))); 2132 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
2098 unittest.expect(o.weight, unittest.equals(42)); 2133 unittest.expect(o.weight, unittest.equals(42));
2099 } 2134 }
2100 buildCounterCreativeAssignment--; 2135 buildCounterCreativeAssignment--;
2101 } 2136 }
2102 2137
2103 core.int buildCounterCreativeCustomEvent = 0; 2138 core.int buildCounterCreativeCustomEvent = 0;
2104 buildCreativeCustomEvent() { 2139 buildCreativeCustomEvent() {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 checkCreativeFieldValue(api.CreativeFieldValue o) { 2240 checkCreativeFieldValue(api.CreativeFieldValue o) {
2206 buildCounterCreativeFieldValue++; 2241 buildCounterCreativeFieldValue++;
2207 if (buildCounterCreativeFieldValue < 3) { 2242 if (buildCounterCreativeFieldValue < 3) {
2208 unittest.expect(o.id, unittest.equals('foo')); 2243 unittest.expect(o.id, unittest.equals('foo'));
2209 unittest.expect(o.kind, unittest.equals('foo')); 2244 unittest.expect(o.kind, unittest.equals('foo'));
2210 unittest.expect(o.value, unittest.equals('foo')); 2245 unittest.expect(o.value, unittest.equals('foo'));
2211 } 2246 }
2212 buildCounterCreativeFieldValue--; 2247 buildCounterCreativeFieldValue--;
2213 } 2248 }
2214 2249
2215 buildUnnamed332() { 2250 buildUnnamed745() {
2216 var o = new core.List<api.CreativeFieldValue>(); 2251 var o = new core.List<api.CreativeFieldValue>();
2217 o.add(buildCreativeFieldValue()); 2252 o.add(buildCreativeFieldValue());
2218 o.add(buildCreativeFieldValue()); 2253 o.add(buildCreativeFieldValue());
2219 return o; 2254 return o;
2220 } 2255 }
2221 2256
2222 checkUnnamed332(core.List<api.CreativeFieldValue> o) { 2257 checkUnnamed745(core.List<api.CreativeFieldValue> o) {
2223 unittest.expect(o, unittest.hasLength(2)); 2258 unittest.expect(o, unittest.hasLength(2));
2224 checkCreativeFieldValue(o[0]); 2259 checkCreativeFieldValue(o[0]);
2225 checkCreativeFieldValue(o[1]); 2260 checkCreativeFieldValue(o[1]);
2226 } 2261 }
2227 2262
2228 core.int buildCounterCreativeFieldValuesListResponse = 0; 2263 core.int buildCounterCreativeFieldValuesListResponse = 0;
2229 buildCreativeFieldValuesListResponse() { 2264 buildCreativeFieldValuesListResponse() {
2230 var o = new api.CreativeFieldValuesListResponse(); 2265 var o = new api.CreativeFieldValuesListResponse();
2231 buildCounterCreativeFieldValuesListResponse++; 2266 buildCounterCreativeFieldValuesListResponse++;
2232 if (buildCounterCreativeFieldValuesListResponse < 3) { 2267 if (buildCounterCreativeFieldValuesListResponse < 3) {
2233 o.creativeFieldValues = buildUnnamed332(); 2268 o.creativeFieldValues = buildUnnamed745();
2234 o.kind = "foo"; 2269 o.kind = "foo";
2235 o.nextPageToken = "foo"; 2270 o.nextPageToken = "foo";
2236 } 2271 }
2237 buildCounterCreativeFieldValuesListResponse--; 2272 buildCounterCreativeFieldValuesListResponse--;
2238 return o; 2273 return o;
2239 } 2274 }
2240 2275
2241 checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { 2276 checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) {
2242 buildCounterCreativeFieldValuesListResponse++; 2277 buildCounterCreativeFieldValuesListResponse++;
2243 if (buildCounterCreativeFieldValuesListResponse < 3) { 2278 if (buildCounterCreativeFieldValuesListResponse < 3) {
2244 checkUnnamed332(o.creativeFieldValues); 2279 checkUnnamed745(o.creativeFieldValues);
2245 unittest.expect(o.kind, unittest.equals('foo')); 2280 unittest.expect(o.kind, unittest.equals('foo'));
2246 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2281 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2247 } 2282 }
2248 buildCounterCreativeFieldValuesListResponse--; 2283 buildCounterCreativeFieldValuesListResponse--;
2249 } 2284 }
2250 2285
2251 buildUnnamed333() { 2286 buildUnnamed746() {
2252 var o = new core.List<api.CreativeField>(); 2287 var o = new core.List<api.CreativeField>();
2253 o.add(buildCreativeField()); 2288 o.add(buildCreativeField());
2254 o.add(buildCreativeField()); 2289 o.add(buildCreativeField());
2255 return o; 2290 return o;
2256 } 2291 }
2257 2292
2258 checkUnnamed333(core.List<api.CreativeField> o) { 2293 checkUnnamed746(core.List<api.CreativeField> o) {
2259 unittest.expect(o, unittest.hasLength(2)); 2294 unittest.expect(o, unittest.hasLength(2));
2260 checkCreativeField(o[0]); 2295 checkCreativeField(o[0]);
2261 checkCreativeField(o[1]); 2296 checkCreativeField(o[1]);
2262 } 2297 }
2263 2298
2264 core.int buildCounterCreativeFieldsListResponse = 0; 2299 core.int buildCounterCreativeFieldsListResponse = 0;
2265 buildCreativeFieldsListResponse() { 2300 buildCreativeFieldsListResponse() {
2266 var o = new api.CreativeFieldsListResponse(); 2301 var o = new api.CreativeFieldsListResponse();
2267 buildCounterCreativeFieldsListResponse++; 2302 buildCounterCreativeFieldsListResponse++;
2268 if (buildCounterCreativeFieldsListResponse < 3) { 2303 if (buildCounterCreativeFieldsListResponse < 3) {
2269 o.creativeFields = buildUnnamed333(); 2304 o.creativeFields = buildUnnamed746();
2270 o.kind = "foo"; 2305 o.kind = "foo";
2271 o.nextPageToken = "foo"; 2306 o.nextPageToken = "foo";
2272 } 2307 }
2273 buildCounterCreativeFieldsListResponse--; 2308 buildCounterCreativeFieldsListResponse--;
2274 return o; 2309 return o;
2275 } 2310 }
2276 2311
2277 checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { 2312 checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) {
2278 buildCounterCreativeFieldsListResponse++; 2313 buildCounterCreativeFieldsListResponse++;
2279 if (buildCounterCreativeFieldsListResponse < 3) { 2314 if (buildCounterCreativeFieldsListResponse < 3) {
2280 checkUnnamed333(o.creativeFields); 2315 checkUnnamed746(o.creativeFields);
2281 unittest.expect(o.kind, unittest.equals('foo')); 2316 unittest.expect(o.kind, unittest.equals('foo'));
2282 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2317 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2283 } 2318 }
2284 buildCounterCreativeFieldsListResponse--; 2319 buildCounterCreativeFieldsListResponse--;
2285 } 2320 }
2286 2321
2287 core.int buildCounterCreativeGroup = 0; 2322 core.int buildCounterCreativeGroup = 0;
2288 buildCreativeGroup() { 2323 buildCreativeGroup() {
2289 var o = new api.CreativeGroup(); 2324 var o = new api.CreativeGroup();
2290 buildCounterCreativeGroup++; 2325 buildCounterCreativeGroup++;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2331 2366
2332 checkCreativeGroupAssignment(api.CreativeGroupAssignment o) { 2367 checkCreativeGroupAssignment(api.CreativeGroupAssignment o) {
2333 buildCounterCreativeGroupAssignment++; 2368 buildCounterCreativeGroupAssignment++;
2334 if (buildCounterCreativeGroupAssignment < 3) { 2369 if (buildCounterCreativeGroupAssignment < 3) {
2335 unittest.expect(o.creativeGroupId, unittest.equals('foo')); 2370 unittest.expect(o.creativeGroupId, unittest.equals('foo'));
2336 unittest.expect(o.creativeGroupNumber, unittest.equals('foo')); 2371 unittest.expect(o.creativeGroupNumber, unittest.equals('foo'));
2337 } 2372 }
2338 buildCounterCreativeGroupAssignment--; 2373 buildCounterCreativeGroupAssignment--;
2339 } 2374 }
2340 2375
2341 buildUnnamed334() { 2376 buildUnnamed747() {
2342 var o = new core.List<api.CreativeGroup>(); 2377 var o = new core.List<api.CreativeGroup>();
2343 o.add(buildCreativeGroup()); 2378 o.add(buildCreativeGroup());
2344 o.add(buildCreativeGroup()); 2379 o.add(buildCreativeGroup());
2345 return o; 2380 return o;
2346 } 2381 }
2347 2382
2348 checkUnnamed334(core.List<api.CreativeGroup> o) { 2383 checkUnnamed747(core.List<api.CreativeGroup> o) {
2349 unittest.expect(o, unittest.hasLength(2)); 2384 unittest.expect(o, unittest.hasLength(2));
2350 checkCreativeGroup(o[0]); 2385 checkCreativeGroup(o[0]);
2351 checkCreativeGroup(o[1]); 2386 checkCreativeGroup(o[1]);
2352 } 2387 }
2353 2388
2354 core.int buildCounterCreativeGroupsListResponse = 0; 2389 core.int buildCounterCreativeGroupsListResponse = 0;
2355 buildCreativeGroupsListResponse() { 2390 buildCreativeGroupsListResponse() {
2356 var o = new api.CreativeGroupsListResponse(); 2391 var o = new api.CreativeGroupsListResponse();
2357 buildCounterCreativeGroupsListResponse++; 2392 buildCounterCreativeGroupsListResponse++;
2358 if (buildCounterCreativeGroupsListResponse < 3) { 2393 if (buildCounterCreativeGroupsListResponse < 3) {
2359 o.creativeGroups = buildUnnamed334(); 2394 o.creativeGroups = buildUnnamed747();
2360 o.kind = "foo"; 2395 o.kind = "foo";
2361 o.nextPageToken = "foo"; 2396 o.nextPageToken = "foo";
2362 } 2397 }
2363 buildCounterCreativeGroupsListResponse--; 2398 buildCounterCreativeGroupsListResponse--;
2364 return o; 2399 return o;
2365 } 2400 }
2366 2401
2367 checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { 2402 checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) {
2368 buildCounterCreativeGroupsListResponse++; 2403 buildCounterCreativeGroupsListResponse++;
2369 if (buildCounterCreativeGroupsListResponse < 3) { 2404 if (buildCounterCreativeGroupsListResponse < 3) {
2370 checkUnnamed334(o.creativeGroups); 2405 checkUnnamed747(o.creativeGroups);
2371 unittest.expect(o.kind, unittest.equals('foo')); 2406 unittest.expect(o.kind, unittest.equals('foo'));
2372 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2407 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2373 } 2408 }
2374 buildCounterCreativeGroupsListResponse--; 2409 buildCounterCreativeGroupsListResponse--;
2375 } 2410 }
2376 2411
2377 buildUnnamed335() { 2412 buildUnnamed748() {
2378 var o = new core.List<api.OptimizationActivity>(); 2413 var o = new core.List<api.OptimizationActivity>();
2379 o.add(buildOptimizationActivity()); 2414 o.add(buildOptimizationActivity());
2380 o.add(buildOptimizationActivity()); 2415 o.add(buildOptimizationActivity());
2381 return o; 2416 return o;
2382 } 2417 }
2383 2418
2384 checkUnnamed335(core.List<api.OptimizationActivity> o) { 2419 checkUnnamed748(core.List<api.OptimizationActivity> o) {
2385 unittest.expect(o, unittest.hasLength(2)); 2420 unittest.expect(o, unittest.hasLength(2));
2386 checkOptimizationActivity(o[0]); 2421 checkOptimizationActivity(o[0]);
2387 checkOptimizationActivity(o[1]); 2422 checkOptimizationActivity(o[1]);
2388 } 2423 }
2389 2424
2390 core.int buildCounterCreativeOptimizationConfiguration = 0; 2425 core.int buildCounterCreativeOptimizationConfiguration = 0;
2391 buildCreativeOptimizationConfiguration() { 2426 buildCreativeOptimizationConfiguration() {
2392 var o = new api.CreativeOptimizationConfiguration(); 2427 var o = new api.CreativeOptimizationConfiguration();
2393 buildCounterCreativeOptimizationConfiguration++; 2428 buildCounterCreativeOptimizationConfiguration++;
2394 if (buildCounterCreativeOptimizationConfiguration < 3) { 2429 if (buildCounterCreativeOptimizationConfiguration < 3) {
2395 o.id = "foo"; 2430 o.id = "foo";
2396 o.name = "foo"; 2431 o.name = "foo";
2397 o.optimizationActivitys = buildUnnamed335(); 2432 o.optimizationActivitys = buildUnnamed748();
2398 o.optimizationModel = "foo"; 2433 o.optimizationModel = "foo";
2399 } 2434 }
2400 buildCounterCreativeOptimizationConfiguration--; 2435 buildCounterCreativeOptimizationConfiguration--;
2401 return o; 2436 return o;
2402 } 2437 }
2403 2438
2404 checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o) { 2439 checkCreativeOptimizationConfiguration(api.CreativeOptimizationConfiguration o) {
2405 buildCounterCreativeOptimizationConfiguration++; 2440 buildCounterCreativeOptimizationConfiguration++;
2406 if (buildCounterCreativeOptimizationConfiguration < 3) { 2441 if (buildCounterCreativeOptimizationConfiguration < 3) {
2407 unittest.expect(o.id, unittest.equals('foo')); 2442 unittest.expect(o.id, unittest.equals('foo'));
2408 unittest.expect(o.name, unittest.equals('foo')); 2443 unittest.expect(o.name, unittest.equals('foo'));
2409 checkUnnamed335(o.optimizationActivitys); 2444 checkUnnamed748(o.optimizationActivitys);
2410 unittest.expect(o.optimizationModel, unittest.equals('foo')); 2445 unittest.expect(o.optimizationModel, unittest.equals('foo'));
2411 } 2446 }
2412 buildCounterCreativeOptimizationConfiguration--; 2447 buildCounterCreativeOptimizationConfiguration--;
2413 } 2448 }
2414 2449
2415 buildUnnamed336() { 2450 buildUnnamed749() {
2416 var o = new core.List<api.CreativeAssignment>(); 2451 var o = new core.List<api.CreativeAssignment>();
2417 o.add(buildCreativeAssignment()); 2452 o.add(buildCreativeAssignment());
2418 o.add(buildCreativeAssignment()); 2453 o.add(buildCreativeAssignment());
2419 return o; 2454 return o;
2420 } 2455 }
2421 2456
2422 checkUnnamed336(core.List<api.CreativeAssignment> o) { 2457 checkUnnamed749(core.List<api.CreativeAssignment> o) {
2423 unittest.expect(o, unittest.hasLength(2)); 2458 unittest.expect(o, unittest.hasLength(2));
2424 checkCreativeAssignment(o[0]); 2459 checkCreativeAssignment(o[0]);
2425 checkCreativeAssignment(o[1]); 2460 checkCreativeAssignment(o[1]);
2426 } 2461 }
2427 2462
2428 core.int buildCounterCreativeRotation = 0; 2463 core.int buildCounterCreativeRotation = 0;
2429 buildCreativeRotation() { 2464 buildCreativeRotation() {
2430 var o = new api.CreativeRotation(); 2465 var o = new api.CreativeRotation();
2431 buildCounterCreativeRotation++; 2466 buildCounterCreativeRotation++;
2432 if (buildCounterCreativeRotation < 3) { 2467 if (buildCounterCreativeRotation < 3) {
2433 o.creativeAssignments = buildUnnamed336(); 2468 o.creativeAssignments = buildUnnamed749();
2434 o.creativeOptimizationConfigurationId = "foo"; 2469 o.creativeOptimizationConfigurationId = "foo";
2435 o.type = "foo"; 2470 o.type = "foo";
2436 o.weightCalculationStrategy = "foo"; 2471 o.weightCalculationStrategy = "foo";
2437 } 2472 }
2438 buildCounterCreativeRotation--; 2473 buildCounterCreativeRotation--;
2439 return o; 2474 return o;
2440 } 2475 }
2441 2476
2442 checkCreativeRotation(api.CreativeRotation o) { 2477 checkCreativeRotation(api.CreativeRotation o) {
2443 buildCounterCreativeRotation++; 2478 buildCounterCreativeRotation++;
2444 if (buildCounterCreativeRotation < 3) { 2479 if (buildCounterCreativeRotation < 3) {
2445 checkUnnamed336(o.creativeAssignments); 2480 checkUnnamed749(o.creativeAssignments);
2446 unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo' )); 2481 unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo' ));
2447 unittest.expect(o.type, unittest.equals('foo')); 2482 unittest.expect(o.type, unittest.equals('foo'));
2448 unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); 2483 unittest.expect(o.weightCalculationStrategy, unittest.equals('foo'));
2449 } 2484 }
2450 buildCounterCreativeRotation--; 2485 buildCounterCreativeRotation--;
2451 } 2486 }
2452 2487
2453 core.int buildCounterCreativeSettings = 0; 2488 core.int buildCounterCreativeSettings = 0;
2454 buildCreativeSettings() { 2489 buildCreativeSettings() {
2455 var o = new api.CreativeSettings(); 2490 var o = new api.CreativeSettings();
2456 buildCounterCreativeSettings++; 2491 buildCounterCreativeSettings++;
2457 if (buildCounterCreativeSettings < 3) { 2492 if (buildCounterCreativeSettings < 3) {
2458 o.iFrameFooter = "foo"; 2493 o.iFrameFooter = "foo";
2459 o.iFrameHeader = "foo"; 2494 o.iFrameHeader = "foo";
2460 } 2495 }
2461 buildCounterCreativeSettings--; 2496 buildCounterCreativeSettings--;
2462 return o; 2497 return o;
2463 } 2498 }
2464 2499
2465 checkCreativeSettings(api.CreativeSettings o) { 2500 checkCreativeSettings(api.CreativeSettings o) {
2466 buildCounterCreativeSettings++; 2501 buildCounterCreativeSettings++;
2467 if (buildCounterCreativeSettings < 3) { 2502 if (buildCounterCreativeSettings < 3) {
2468 unittest.expect(o.iFrameFooter, unittest.equals('foo')); 2503 unittest.expect(o.iFrameFooter, unittest.equals('foo'));
2469 unittest.expect(o.iFrameHeader, unittest.equals('foo')); 2504 unittest.expect(o.iFrameHeader, unittest.equals('foo'));
2470 } 2505 }
2471 buildCounterCreativeSettings--; 2506 buildCounterCreativeSettings--;
2472 } 2507 }
2473 2508
2474 buildUnnamed337() { 2509 buildUnnamed750() {
2475 var o = new core.List<api.Creative>(); 2510 var o = new core.List<api.Creative>();
2476 o.add(buildCreative()); 2511 o.add(buildCreative());
2477 o.add(buildCreative()); 2512 o.add(buildCreative());
2478 return o; 2513 return o;
2479 } 2514 }
2480 2515
2481 checkUnnamed337(core.List<api.Creative> o) { 2516 checkUnnamed750(core.List<api.Creative> o) {
2482 unittest.expect(o, unittest.hasLength(2)); 2517 unittest.expect(o, unittest.hasLength(2));
2483 checkCreative(o[0]); 2518 checkCreative(o[0]);
2484 checkCreative(o[1]); 2519 checkCreative(o[1]);
2485 } 2520 }
2486 2521
2487 core.int buildCounterCreativesListResponse = 0; 2522 core.int buildCounterCreativesListResponse = 0;
2488 buildCreativesListResponse() { 2523 buildCreativesListResponse() {
2489 var o = new api.CreativesListResponse(); 2524 var o = new api.CreativesListResponse();
2490 buildCounterCreativesListResponse++; 2525 buildCounterCreativesListResponse++;
2491 if (buildCounterCreativesListResponse < 3) { 2526 if (buildCounterCreativesListResponse < 3) {
2492 o.creatives = buildUnnamed337(); 2527 o.creatives = buildUnnamed750();
2493 o.kind = "foo"; 2528 o.kind = "foo";
2494 o.nextPageToken = "foo"; 2529 o.nextPageToken = "foo";
2495 } 2530 }
2496 buildCounterCreativesListResponse--; 2531 buildCounterCreativesListResponse--;
2497 return o; 2532 return o;
2498 } 2533 }
2499 2534
2500 checkCreativesListResponse(api.CreativesListResponse o) { 2535 checkCreativesListResponse(api.CreativesListResponse o) {
2501 buildCounterCreativesListResponse++; 2536 buildCounterCreativesListResponse++;
2502 if (buildCounterCreativesListResponse < 3) { 2537 if (buildCounterCreativesListResponse < 3) {
2503 checkUnnamed337(o.creatives); 2538 checkUnnamed750(o.creatives);
2504 unittest.expect(o.kind, unittest.equals('foo')); 2539 unittest.expect(o.kind, unittest.equals('foo'));
2505 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2540 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2506 } 2541 }
2507 buildCounterCreativesListResponse--; 2542 buildCounterCreativesListResponse--;
2508 } 2543 }
2509 2544
2510 buildUnnamed338() { 2545 buildUnnamed751() {
2511 var o = new core.List<api.Dimension>(); 2546 var o = new core.List<api.Dimension>();
2512 o.add(buildDimension()); 2547 o.add(buildDimension());
2513 o.add(buildDimension()); 2548 o.add(buildDimension());
2514 return o; 2549 return o;
2515 } 2550 }
2516 2551
2517 checkUnnamed338(core.List<api.Dimension> o) { 2552 checkUnnamed751(core.List<api.Dimension> o) {
2518 unittest.expect(o, unittest.hasLength(2)); 2553 unittest.expect(o, unittest.hasLength(2));
2519 checkDimension(o[0]); 2554 checkDimension(o[0]);
2520 checkDimension(o[1]); 2555 checkDimension(o[1]);
2521 } 2556 }
2522 2557
2523 buildUnnamed339() { 2558 buildUnnamed752() {
2524 var o = new core.List<api.Dimension>(); 2559 var o = new core.List<api.Dimension>();
2525 o.add(buildDimension()); 2560 o.add(buildDimension());
2526 o.add(buildDimension()); 2561 o.add(buildDimension());
2527 return o; 2562 return o;
2528 } 2563 }
2529 2564
2530 checkUnnamed339(core.List<api.Dimension> o) { 2565 checkUnnamed752(core.List<api.Dimension> o) {
2531 unittest.expect(o, unittest.hasLength(2)); 2566 unittest.expect(o, unittest.hasLength(2));
2532 checkDimension(o[0]); 2567 checkDimension(o[0]);
2533 checkDimension(o[1]); 2568 checkDimension(o[1]);
2534 } 2569 }
2535 2570
2536 buildUnnamed340() { 2571 buildUnnamed753() {
2537 var o = new core.List<api.Metric>(); 2572 var o = new core.List<api.Metric>();
2538 o.add(buildMetric()); 2573 o.add(buildMetric());
2539 o.add(buildMetric()); 2574 o.add(buildMetric());
2540 return o; 2575 return o;
2541 } 2576 }
2542 2577
2543 checkUnnamed340(core.List<api.Metric> o) { 2578 checkUnnamed753(core.List<api.Metric> o) {
2544 unittest.expect(o, unittest.hasLength(2)); 2579 unittest.expect(o, unittest.hasLength(2));
2545 checkMetric(o[0]); 2580 checkMetric(o[0]);
2546 checkMetric(o[1]); 2581 checkMetric(o[1]);
2547 } 2582 }
2548 2583
2549 buildUnnamed341() { 2584 buildUnnamed754() {
2550 var o = new core.List<api.Metric>(); 2585 var o = new core.List<api.Metric>();
2551 o.add(buildMetric()); 2586 o.add(buildMetric());
2552 o.add(buildMetric()); 2587 o.add(buildMetric());
2553 return o; 2588 return o;
2554 } 2589 }
2555 2590
2556 checkUnnamed341(core.List<api.Metric> o) { 2591 checkUnnamed754(core.List<api.Metric> o) {
2557 unittest.expect(o, unittest.hasLength(2)); 2592 unittest.expect(o, unittest.hasLength(2));
2558 checkMetric(o[0]); 2593 checkMetric(o[0]);
2559 checkMetric(o[1]); 2594 checkMetric(o[1]);
2560 } 2595 }
2561 2596
2562 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0; 2597 core.int buildCounterCrossDimensionReachReportCompatibleFields = 0;
2563 buildCrossDimensionReachReportCompatibleFields() { 2598 buildCrossDimensionReachReportCompatibleFields() {
2564 var o = new api.CrossDimensionReachReportCompatibleFields(); 2599 var o = new api.CrossDimensionReachReportCompatibleFields();
2565 buildCounterCrossDimensionReachReportCompatibleFields++; 2600 buildCounterCrossDimensionReachReportCompatibleFields++;
2566 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { 2601 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) {
2567 o.breakdown = buildUnnamed338(); 2602 o.breakdown = buildUnnamed751();
2568 o.dimensionFilters = buildUnnamed339(); 2603 o.dimensionFilters = buildUnnamed752();
2569 o.kind = "foo"; 2604 o.kind = "foo";
2570 o.metrics = buildUnnamed340(); 2605 o.metrics = buildUnnamed753();
2571 o.overlapMetrics = buildUnnamed341(); 2606 o.overlapMetrics = buildUnnamed754();
2572 } 2607 }
2573 buildCounterCrossDimensionReachReportCompatibleFields--; 2608 buildCounterCrossDimensionReachReportCompatibleFields--;
2574 return o; 2609 return o;
2575 } 2610 }
2576 2611
2577 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp atibleFields o) { 2612 checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportComp atibleFields o) {
2578 buildCounterCrossDimensionReachReportCompatibleFields++; 2613 buildCounterCrossDimensionReachReportCompatibleFields++;
2579 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { 2614 if (buildCounterCrossDimensionReachReportCompatibleFields < 3) {
2580 checkUnnamed338(o.breakdown); 2615 checkUnnamed751(o.breakdown);
2581 checkUnnamed339(o.dimensionFilters); 2616 checkUnnamed752(o.dimensionFilters);
2582 unittest.expect(o.kind, unittest.equals('foo')); 2617 unittest.expect(o.kind, unittest.equals('foo'));
2583 checkUnnamed340(o.metrics); 2618 checkUnnamed753(o.metrics);
2584 checkUnnamed341(o.overlapMetrics); 2619 checkUnnamed754(o.overlapMetrics);
2585 } 2620 }
2586 buildCounterCrossDimensionReachReportCompatibleFields--; 2621 buildCounterCrossDimensionReachReportCompatibleFields--;
2587 } 2622 }
2588 2623
2589 buildUnnamed342() { 2624 buildUnnamed755() {
2590 var o = new core.List<api.DimensionValue>(); 2625 var o = new core.List<api.DimensionValue>();
2591 o.add(buildDimensionValue()); 2626 o.add(buildDimensionValue());
2592 o.add(buildDimensionValue()); 2627 o.add(buildDimensionValue());
2593 return o; 2628 return o;
2594 } 2629 }
2595 2630
2596 checkUnnamed342(core.List<api.DimensionValue> o) { 2631 checkUnnamed755(core.List<api.DimensionValue> o) {
2597 unittest.expect(o, unittest.hasLength(2)); 2632 unittest.expect(o, unittest.hasLength(2));
2598 checkDimensionValue(o[0]); 2633 checkDimensionValue(o[0]);
2599 checkDimensionValue(o[1]); 2634 checkDimensionValue(o[1]);
2600 } 2635 }
2601 2636
2602 core.int buildCounterCustomRichMediaEvents = 0; 2637 core.int buildCounterCustomRichMediaEvents = 0;
2603 buildCustomRichMediaEvents() { 2638 buildCustomRichMediaEvents() {
2604 var o = new api.CustomRichMediaEvents(); 2639 var o = new api.CustomRichMediaEvents();
2605 buildCounterCustomRichMediaEvents++; 2640 buildCounterCustomRichMediaEvents++;
2606 if (buildCounterCustomRichMediaEvents < 3) { 2641 if (buildCounterCustomRichMediaEvents < 3) {
2607 o.filteredEventIds = buildUnnamed342(); 2642 o.filteredEventIds = buildUnnamed755();
2608 o.kind = "foo"; 2643 o.kind = "foo";
2609 } 2644 }
2610 buildCounterCustomRichMediaEvents--; 2645 buildCounterCustomRichMediaEvents--;
2611 return o; 2646 return o;
2612 } 2647 }
2613 2648
2614 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { 2649 checkCustomRichMediaEvents(api.CustomRichMediaEvents o) {
2615 buildCounterCustomRichMediaEvents++; 2650 buildCounterCustomRichMediaEvents++;
2616 if (buildCounterCustomRichMediaEvents < 3) { 2651 if (buildCounterCustomRichMediaEvents < 3) {
2617 checkUnnamed342(o.filteredEventIds); 2652 checkUnnamed755(o.filteredEventIds);
2618 unittest.expect(o.kind, unittest.equals('foo')); 2653 unittest.expect(o.kind, unittest.equals('foo'));
2619 } 2654 }
2620 buildCounterCustomRichMediaEvents--; 2655 buildCounterCustomRichMediaEvents--;
2621 } 2656 }
2622 2657
2623 core.int buildCounterDateRange = 0; 2658 core.int buildCounterDateRange = 0;
2624 buildDateRange() { 2659 buildDateRange() {
2625 var o = new api.DateRange(); 2660 var o = new api.DateRange();
2626 buildCounterDateRange++; 2661 buildCounterDateRange++;
2627 if (buildCounterDateRange < 3) { 2662 if (buildCounterDateRange < 3) {
(...skipping 10 matching lines...) Expand all
2638 buildCounterDateRange++; 2673 buildCounterDateRange++;
2639 if (buildCounterDateRange < 3) { 2674 if (buildCounterDateRange < 3) {
2640 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00"))); 2675 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00")));
2641 unittest.expect(o.kind, unittest.equals('foo')); 2676 unittest.expect(o.kind, unittest.equals('foo'));
2642 unittest.expect(o.relativeDateRange, unittest.equals('foo')); 2677 unittest.expect(o.relativeDateRange, unittest.equals('foo'));
2643 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00"))); 2678 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00")));
2644 } 2679 }
2645 buildCounterDateRange--; 2680 buildCounterDateRange--;
2646 } 2681 }
2647 2682
2648 buildUnnamed343() { 2683 buildUnnamed756() {
2649 var o = new core.List<core.String>(); 2684 var o = new core.List<core.String>();
2650 o.add("foo"); 2685 o.add("foo");
2651 o.add("foo"); 2686 o.add("foo");
2652 return o; 2687 return o;
2653 } 2688 }
2654 2689
2655 checkUnnamed343(core.List<core.String> o) { 2690 checkUnnamed756(core.List<core.String> o) {
2656 unittest.expect(o, unittest.hasLength(2)); 2691 unittest.expect(o, unittest.hasLength(2));
2657 unittest.expect(o[0], unittest.equals('foo')); 2692 unittest.expect(o[0], unittest.equals('foo'));
2658 unittest.expect(o[1], unittest.equals('foo')); 2693 unittest.expect(o[1], unittest.equals('foo'));
2659 } 2694 }
2660 2695
2661 buildUnnamed344() { 2696 buildUnnamed757() {
2662 var o = new core.List<core.int>(); 2697 var o = new core.List<core.int>();
2663 o.add(42); 2698 o.add(42);
2664 o.add(42); 2699 o.add(42);
2665 return o; 2700 return o;
2666 } 2701 }
2667 2702
2668 checkUnnamed344(core.List<core.int> o) { 2703 checkUnnamed757(core.List<core.int> o) {
2669 unittest.expect(o, unittest.hasLength(2)); 2704 unittest.expect(o, unittest.hasLength(2));
2670 unittest.expect(o[0], unittest.equals(42)); 2705 unittest.expect(o[0], unittest.equals(42));
2671 unittest.expect(o[1], unittest.equals(42)); 2706 unittest.expect(o[1], unittest.equals(42));
2672 } 2707 }
2673 2708
2674 core.int buildCounterDayPartTargeting = 0; 2709 core.int buildCounterDayPartTargeting = 0;
2675 buildDayPartTargeting() { 2710 buildDayPartTargeting() {
2676 var o = new api.DayPartTargeting(); 2711 var o = new api.DayPartTargeting();
2677 buildCounterDayPartTargeting++; 2712 buildCounterDayPartTargeting++;
2678 if (buildCounterDayPartTargeting < 3) { 2713 if (buildCounterDayPartTargeting < 3) {
2679 o.daysOfWeek = buildUnnamed343(); 2714 o.daysOfWeek = buildUnnamed756();
2680 o.hoursOfDay = buildUnnamed344(); 2715 o.hoursOfDay = buildUnnamed757();
2681 o.userLocalTime = true; 2716 o.userLocalTime = true;
2682 } 2717 }
2683 buildCounterDayPartTargeting--; 2718 buildCounterDayPartTargeting--;
2684 return o; 2719 return o;
2685 } 2720 }
2686 2721
2687 checkDayPartTargeting(api.DayPartTargeting o) { 2722 checkDayPartTargeting(api.DayPartTargeting o) {
2688 buildCounterDayPartTargeting++; 2723 buildCounterDayPartTargeting++;
2689 if (buildCounterDayPartTargeting < 3) { 2724 if (buildCounterDayPartTargeting < 3) {
2690 checkUnnamed343(o.daysOfWeek); 2725 checkUnnamed756(o.daysOfWeek);
2691 checkUnnamed344(o.hoursOfDay); 2726 checkUnnamed757(o.hoursOfDay);
2692 unittest.expect(o.userLocalTime, unittest.isTrue); 2727 unittest.expect(o.userLocalTime, unittest.isTrue);
2693 } 2728 }
2694 buildCounterDayPartTargeting--; 2729 buildCounterDayPartTargeting--;
2695 } 2730 }
2696 2731
2697 core.int buildCounterDefaultClickThroughEventTagProperties = 0; 2732 core.int buildCounterDefaultClickThroughEventTagProperties = 0;
2698 buildDefaultClickThroughEventTagProperties() { 2733 buildDefaultClickThroughEventTagProperties() {
2699 var o = new api.DefaultClickThroughEventTagProperties(); 2734 var o = new api.DefaultClickThroughEventTagProperties();
2700 buildCounterDefaultClickThroughEventTagProperties++; 2735 buildCounterDefaultClickThroughEventTagProperties++;
2701 if (buildCounterDefaultClickThroughEventTagProperties < 3) { 2736 if (buildCounterDefaultClickThroughEventTagProperties < 3) {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 unittest.expect(o.dimensionName, unittest.equals('foo')); 2868 unittest.expect(o.dimensionName, unittest.equals('foo'));
2834 unittest.expect(o.etag, unittest.equals('foo')); 2869 unittest.expect(o.etag, unittest.equals('foo'));
2835 unittest.expect(o.id, unittest.equals('foo')); 2870 unittest.expect(o.id, unittest.equals('foo'));
2836 unittest.expect(o.kind, unittest.equals('foo')); 2871 unittest.expect(o.kind, unittest.equals('foo'));
2837 unittest.expect(o.matchType, unittest.equals('foo')); 2872 unittest.expect(o.matchType, unittest.equals('foo'));
2838 unittest.expect(o.value, unittest.equals('foo')); 2873 unittest.expect(o.value, unittest.equals('foo'));
2839 } 2874 }
2840 buildCounterDimensionValue--; 2875 buildCounterDimensionValue--;
2841 } 2876 }
2842 2877
2843 buildUnnamed345() { 2878 buildUnnamed758() {
2844 var o = new core.List<api.DimensionValue>(); 2879 var o = new core.List<api.DimensionValue>();
2845 o.add(buildDimensionValue()); 2880 o.add(buildDimensionValue());
2846 o.add(buildDimensionValue()); 2881 o.add(buildDimensionValue());
2847 return o; 2882 return o;
2848 } 2883 }
2849 2884
2850 checkUnnamed345(core.List<api.DimensionValue> o) { 2885 checkUnnamed758(core.List<api.DimensionValue> o) {
2851 unittest.expect(o, unittest.hasLength(2)); 2886 unittest.expect(o, unittest.hasLength(2));
2852 checkDimensionValue(o[0]); 2887 checkDimensionValue(o[0]);
2853 checkDimensionValue(o[1]); 2888 checkDimensionValue(o[1]);
2854 } 2889 }
2855 2890
2856 core.int buildCounterDimensionValueList = 0; 2891 core.int buildCounterDimensionValueList = 0;
2857 buildDimensionValueList() { 2892 buildDimensionValueList() {
2858 var o = new api.DimensionValueList(); 2893 var o = new api.DimensionValueList();
2859 buildCounterDimensionValueList++; 2894 buildCounterDimensionValueList++;
2860 if (buildCounterDimensionValueList < 3) { 2895 if (buildCounterDimensionValueList < 3) {
2861 o.etag = "foo"; 2896 o.etag = "foo";
2862 o.items = buildUnnamed345(); 2897 o.items = buildUnnamed758();
2863 o.kind = "foo"; 2898 o.kind = "foo";
2864 o.nextPageToken = "foo"; 2899 o.nextPageToken = "foo";
2865 } 2900 }
2866 buildCounterDimensionValueList--; 2901 buildCounterDimensionValueList--;
2867 return o; 2902 return o;
2868 } 2903 }
2869 2904
2870 checkDimensionValueList(api.DimensionValueList o) { 2905 checkDimensionValueList(api.DimensionValueList o) {
2871 buildCounterDimensionValueList++; 2906 buildCounterDimensionValueList++;
2872 if (buildCounterDimensionValueList < 3) { 2907 if (buildCounterDimensionValueList < 3) {
2873 unittest.expect(o.etag, unittest.equals('foo')); 2908 unittest.expect(o.etag, unittest.equals('foo'));
2874 checkUnnamed345(o.items); 2909 checkUnnamed758(o.items);
2875 unittest.expect(o.kind, unittest.equals('foo')); 2910 unittest.expect(o.kind, unittest.equals('foo'));
2876 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2911 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2877 } 2912 }
2878 buildCounterDimensionValueList--; 2913 buildCounterDimensionValueList--;
2879 } 2914 }
2880 2915
2881 buildUnnamed346() { 2916 buildUnnamed759() {
2882 var o = new core.List<api.DimensionFilter>(); 2917 var o = new core.List<api.DimensionFilter>();
2883 o.add(buildDimensionFilter()); 2918 o.add(buildDimensionFilter());
2884 o.add(buildDimensionFilter()); 2919 o.add(buildDimensionFilter());
2885 return o; 2920 return o;
2886 } 2921 }
2887 2922
2888 checkUnnamed346(core.List<api.DimensionFilter> o) { 2923 checkUnnamed759(core.List<api.DimensionFilter> o) {
2889 unittest.expect(o, unittest.hasLength(2)); 2924 unittest.expect(o, unittest.hasLength(2));
2890 checkDimensionFilter(o[0]); 2925 checkDimensionFilter(o[0]);
2891 checkDimensionFilter(o[1]); 2926 checkDimensionFilter(o[1]);
2892 } 2927 }
2893 2928
2894 core.int buildCounterDimensionValueRequest = 0; 2929 core.int buildCounterDimensionValueRequest = 0;
2895 buildDimensionValueRequest() { 2930 buildDimensionValueRequest() {
2896 var o = new api.DimensionValueRequest(); 2931 var o = new api.DimensionValueRequest();
2897 buildCounterDimensionValueRequest++; 2932 buildCounterDimensionValueRequest++;
2898 if (buildCounterDimensionValueRequest < 3) { 2933 if (buildCounterDimensionValueRequest < 3) {
2899 o.dimensionName = "foo"; 2934 o.dimensionName = "foo";
2900 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 2935 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
2901 o.filters = buildUnnamed346(); 2936 o.filters = buildUnnamed759();
2902 o.kind = "foo"; 2937 o.kind = "foo";
2903 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 2938 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
2904 } 2939 }
2905 buildCounterDimensionValueRequest--; 2940 buildCounterDimensionValueRequest--;
2906 return o; 2941 return o;
2907 } 2942 }
2908 2943
2909 checkDimensionValueRequest(api.DimensionValueRequest o) { 2944 checkDimensionValueRequest(api.DimensionValueRequest o) {
2910 buildCounterDimensionValueRequest++; 2945 buildCounterDimensionValueRequest++;
2911 if (buildCounterDimensionValueRequest < 3) { 2946 if (buildCounterDimensionValueRequest < 3) {
2912 unittest.expect(o.dimensionName, unittest.equals('foo')); 2947 unittest.expect(o.dimensionName, unittest.equals('foo'));
2913 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00"))); 2948 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00")));
2914 checkUnnamed346(o.filters); 2949 checkUnnamed759(o.filters);
2915 unittest.expect(o.kind, unittest.equals('foo')); 2950 unittest.expect(o.kind, unittest.equals('foo'));
2916 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00"))); 2951 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00")));
2917 } 2952 }
2918 buildCounterDimensionValueRequest--; 2953 buildCounterDimensionValueRequest--;
2919 } 2954 }
2920 2955
2921 buildUnnamed347() { 2956 buildUnnamed760() {
2922 var o = new core.List<api.DirectorySiteContactAssignment>(); 2957 var o = new core.List<api.DirectorySiteContactAssignment>();
2923 o.add(buildDirectorySiteContactAssignment()); 2958 o.add(buildDirectorySiteContactAssignment());
2924 o.add(buildDirectorySiteContactAssignment()); 2959 o.add(buildDirectorySiteContactAssignment());
2925 return o; 2960 return o;
2926 } 2961 }
2927 2962
2928 checkUnnamed347(core.List<api.DirectorySiteContactAssignment> o) { 2963 checkUnnamed760(core.List<api.DirectorySiteContactAssignment> o) {
2929 unittest.expect(o, unittest.hasLength(2)); 2964 unittest.expect(o, unittest.hasLength(2));
2930 checkDirectorySiteContactAssignment(o[0]); 2965 checkDirectorySiteContactAssignment(o[0]);
2931 checkDirectorySiteContactAssignment(o[1]); 2966 checkDirectorySiteContactAssignment(o[1]);
2932 } 2967 }
2933 2968
2934 buildUnnamed348() { 2969 buildUnnamed761() {
2935 var o = new core.List<core.String>(); 2970 var o = new core.List<core.String>();
2936 o.add("foo"); 2971 o.add("foo");
2937 o.add("foo"); 2972 o.add("foo");
2938 return o; 2973 return o;
2939 } 2974 }
2940 2975
2941 checkUnnamed348(core.List<core.String> o) { 2976 checkUnnamed761(core.List<core.String> o) {
2942 unittest.expect(o, unittest.hasLength(2)); 2977 unittest.expect(o, unittest.hasLength(2));
2943 unittest.expect(o[0], unittest.equals('foo')); 2978 unittest.expect(o[0], unittest.equals('foo'));
2944 unittest.expect(o[1], unittest.equals('foo')); 2979 unittest.expect(o[1], unittest.equals('foo'));
2945 } 2980 }
2946 2981
2947 buildUnnamed349() { 2982 buildUnnamed762() {
2948 var o = new core.List<core.String>(); 2983 var o = new core.List<core.String>();
2949 o.add("foo"); 2984 o.add("foo");
2950 o.add("foo"); 2985 o.add("foo");
2951 return o; 2986 return o;
2952 } 2987 }
2953 2988
2954 checkUnnamed349(core.List<core.String> o) { 2989 checkUnnamed762(core.List<core.String> o) {
2955 unittest.expect(o, unittest.hasLength(2)); 2990 unittest.expect(o, unittest.hasLength(2));
2956 unittest.expect(o[0], unittest.equals('foo')); 2991 unittest.expect(o[0], unittest.equals('foo'));
2957 unittest.expect(o[1], unittest.equals('foo')); 2992 unittest.expect(o[1], unittest.equals('foo'));
2958 } 2993 }
2959 2994
2960 core.int buildCounterDirectorySite = 0; 2995 core.int buildCounterDirectorySite = 0;
2961 buildDirectorySite() { 2996 buildDirectorySite() {
2962 var o = new api.DirectorySite(); 2997 var o = new api.DirectorySite();
2963 buildCounterDirectorySite++; 2998 buildCounterDirectorySite++;
2964 if (buildCounterDirectorySite < 3) { 2999 if (buildCounterDirectorySite < 3) {
2965 o.active = true; 3000 o.active = true;
2966 o.contactAssignments = buildUnnamed347(); 3001 o.contactAssignments = buildUnnamed760();
2967 o.countryId = "foo"; 3002 o.countryId = "foo";
2968 o.currencyId = "foo"; 3003 o.currencyId = "foo";
2969 o.description = "foo"; 3004 o.description = "foo";
2970 o.id = "foo"; 3005 o.id = "foo";
2971 o.idDimensionValue = buildDimensionValue(); 3006 o.idDimensionValue = buildDimensionValue();
2972 o.inpageTagFormats = buildUnnamed348(); 3007 o.inpageTagFormats = buildUnnamed761();
2973 o.interstitialTagFormats = buildUnnamed349(); 3008 o.interstitialTagFormats = buildUnnamed762();
2974 o.kind = "foo"; 3009 o.kind = "foo";
2975 o.name = "foo"; 3010 o.name = "foo";
2976 o.parentId = "foo"; 3011 o.parentId = "foo";
2977 o.settings = buildDirectorySiteSettings(); 3012 o.settings = buildDirectorySiteSettings();
2978 o.url = "foo"; 3013 o.url = "foo";
2979 } 3014 }
2980 buildCounterDirectorySite--; 3015 buildCounterDirectorySite--;
2981 return o; 3016 return o;
2982 } 3017 }
2983 3018
2984 checkDirectorySite(api.DirectorySite o) { 3019 checkDirectorySite(api.DirectorySite o) {
2985 buildCounterDirectorySite++; 3020 buildCounterDirectorySite++;
2986 if (buildCounterDirectorySite < 3) { 3021 if (buildCounterDirectorySite < 3) {
2987 unittest.expect(o.active, unittest.isTrue); 3022 unittest.expect(o.active, unittest.isTrue);
2988 checkUnnamed347(o.contactAssignments); 3023 checkUnnamed760(o.contactAssignments);
2989 unittest.expect(o.countryId, unittest.equals('foo')); 3024 unittest.expect(o.countryId, unittest.equals('foo'));
2990 unittest.expect(o.currencyId, unittest.equals('foo')); 3025 unittest.expect(o.currencyId, unittest.equals('foo'));
2991 unittest.expect(o.description, unittest.equals('foo')); 3026 unittest.expect(o.description, unittest.equals('foo'));
2992 unittest.expect(o.id, unittest.equals('foo')); 3027 unittest.expect(o.id, unittest.equals('foo'));
2993 checkDimensionValue(o.idDimensionValue); 3028 checkDimensionValue(o.idDimensionValue);
2994 checkUnnamed348(o.inpageTagFormats); 3029 checkUnnamed761(o.inpageTagFormats);
2995 checkUnnamed349(o.interstitialTagFormats); 3030 checkUnnamed762(o.interstitialTagFormats);
2996 unittest.expect(o.kind, unittest.equals('foo')); 3031 unittest.expect(o.kind, unittest.equals('foo'));
2997 unittest.expect(o.name, unittest.equals('foo')); 3032 unittest.expect(o.name, unittest.equals('foo'));
2998 unittest.expect(o.parentId, unittest.equals('foo')); 3033 unittest.expect(o.parentId, unittest.equals('foo'));
2999 checkDirectorySiteSettings(o.settings); 3034 checkDirectorySiteSettings(o.settings);
3000 unittest.expect(o.url, unittest.equals('foo')); 3035 unittest.expect(o.url, unittest.equals('foo'));
3001 } 3036 }
3002 buildCounterDirectorySite--; 3037 buildCounterDirectorySite--;
3003 } 3038 }
3004 3039
3005 core.int buildCounterDirectorySiteContact = 0; 3040 core.int buildCounterDirectorySiteContact = 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
3047 3082
3048 checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) { 3083 checkDirectorySiteContactAssignment(api.DirectorySiteContactAssignment o) {
3049 buildCounterDirectorySiteContactAssignment++; 3084 buildCounterDirectorySiteContactAssignment++;
3050 if (buildCounterDirectorySiteContactAssignment < 3) { 3085 if (buildCounterDirectorySiteContactAssignment < 3) {
3051 unittest.expect(o.contactId, unittest.equals('foo')); 3086 unittest.expect(o.contactId, unittest.equals('foo'));
3052 unittest.expect(o.visibility, unittest.equals('foo')); 3087 unittest.expect(o.visibility, unittest.equals('foo'));
3053 } 3088 }
3054 buildCounterDirectorySiteContactAssignment--; 3089 buildCounterDirectorySiteContactAssignment--;
3055 } 3090 }
3056 3091
3057 buildUnnamed350() { 3092 buildUnnamed763() {
3058 var o = new core.List<api.DirectorySiteContact>(); 3093 var o = new core.List<api.DirectorySiteContact>();
3059 o.add(buildDirectorySiteContact()); 3094 o.add(buildDirectorySiteContact());
3060 o.add(buildDirectorySiteContact()); 3095 o.add(buildDirectorySiteContact());
3061 return o; 3096 return o;
3062 } 3097 }
3063 3098
3064 checkUnnamed350(core.List<api.DirectorySiteContact> o) { 3099 checkUnnamed763(core.List<api.DirectorySiteContact> o) {
3065 unittest.expect(o, unittest.hasLength(2)); 3100 unittest.expect(o, unittest.hasLength(2));
3066 checkDirectorySiteContact(o[0]); 3101 checkDirectorySiteContact(o[0]);
3067 checkDirectorySiteContact(o[1]); 3102 checkDirectorySiteContact(o[1]);
3068 } 3103 }
3069 3104
3070 core.int buildCounterDirectorySiteContactsListResponse = 0; 3105 core.int buildCounterDirectorySiteContactsListResponse = 0;
3071 buildDirectorySiteContactsListResponse() { 3106 buildDirectorySiteContactsListResponse() {
3072 var o = new api.DirectorySiteContactsListResponse(); 3107 var o = new api.DirectorySiteContactsListResponse();
3073 buildCounterDirectorySiteContactsListResponse++; 3108 buildCounterDirectorySiteContactsListResponse++;
3074 if (buildCounterDirectorySiteContactsListResponse < 3) { 3109 if (buildCounterDirectorySiteContactsListResponse < 3) {
3075 o.directorySiteContacts = buildUnnamed350(); 3110 o.directorySiteContacts = buildUnnamed763();
3076 o.kind = "foo"; 3111 o.kind = "foo";
3077 o.nextPageToken = "foo"; 3112 o.nextPageToken = "foo";
3078 } 3113 }
3079 buildCounterDirectorySiteContactsListResponse--; 3114 buildCounterDirectorySiteContactsListResponse--;
3080 return o; 3115 return o;
3081 } 3116 }
3082 3117
3083 checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { 3118 checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) {
3084 buildCounterDirectorySiteContactsListResponse++; 3119 buildCounterDirectorySiteContactsListResponse++;
3085 if (buildCounterDirectorySiteContactsListResponse < 3) { 3120 if (buildCounterDirectorySiteContactsListResponse < 3) {
3086 checkUnnamed350(o.directorySiteContacts); 3121 checkUnnamed763(o.directorySiteContacts);
3087 unittest.expect(o.kind, unittest.equals('foo')); 3122 unittest.expect(o.kind, unittest.equals('foo'));
3088 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3123 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3089 } 3124 }
3090 buildCounterDirectorySiteContactsListResponse--; 3125 buildCounterDirectorySiteContactsListResponse--;
3091 } 3126 }
3092 3127
3093 core.int buildCounterDirectorySiteSettings = 0; 3128 core.int buildCounterDirectorySiteSettings = 0;
3094 buildDirectorySiteSettings() { 3129 buildDirectorySiteSettings() {
3095 var o = new api.DirectorySiteSettings(); 3130 var o = new api.DirectorySiteSettings();
3096 buildCounterDirectorySiteSettings++; 3131 buildCounterDirectorySiteSettings++;
(...skipping 17 matching lines...) Expand all
3114 checkDfpSettings(o.dfpSettings); 3149 checkDfpSettings(o.dfpSettings);
3115 unittest.expect(o.instreamVideoPlacementAccepted, unittest.isTrue); 3150 unittest.expect(o.instreamVideoPlacementAccepted, unittest.isTrue);
3116 unittest.expect(o.interstitialPlacementAccepted, unittest.isTrue); 3151 unittest.expect(o.interstitialPlacementAccepted, unittest.isTrue);
3117 unittest.expect(o.nielsenOcrOptOut, unittest.isTrue); 3152 unittest.expect(o.nielsenOcrOptOut, unittest.isTrue);
3118 unittest.expect(o.verificationTagOptOut, unittest.isTrue); 3153 unittest.expect(o.verificationTagOptOut, unittest.isTrue);
3119 unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); 3154 unittest.expect(o.videoActiveViewOptOut, unittest.isTrue);
3120 } 3155 }
3121 buildCounterDirectorySiteSettings--; 3156 buildCounterDirectorySiteSettings--;
3122 } 3157 }
3123 3158
3124 buildUnnamed351() { 3159 buildUnnamed764() {
3125 var o = new core.List<api.DirectorySite>(); 3160 var o = new core.List<api.DirectorySite>();
3126 o.add(buildDirectorySite()); 3161 o.add(buildDirectorySite());
3127 o.add(buildDirectorySite()); 3162 o.add(buildDirectorySite());
3128 return o; 3163 return o;
3129 } 3164 }
3130 3165
3131 checkUnnamed351(core.List<api.DirectorySite> o) { 3166 checkUnnamed764(core.List<api.DirectorySite> o) {
3132 unittest.expect(o, unittest.hasLength(2)); 3167 unittest.expect(o, unittest.hasLength(2));
3133 checkDirectorySite(o[0]); 3168 checkDirectorySite(o[0]);
3134 checkDirectorySite(o[1]); 3169 checkDirectorySite(o[1]);
3135 } 3170 }
3136 3171
3137 core.int buildCounterDirectorySitesListResponse = 0; 3172 core.int buildCounterDirectorySitesListResponse = 0;
3138 buildDirectorySitesListResponse() { 3173 buildDirectorySitesListResponse() {
3139 var o = new api.DirectorySitesListResponse(); 3174 var o = new api.DirectorySitesListResponse();
3140 buildCounterDirectorySitesListResponse++; 3175 buildCounterDirectorySitesListResponse++;
3141 if (buildCounterDirectorySitesListResponse < 3) { 3176 if (buildCounterDirectorySitesListResponse < 3) {
3142 o.directorySites = buildUnnamed351(); 3177 o.directorySites = buildUnnamed764();
3143 o.kind = "foo"; 3178 o.kind = "foo";
3144 o.nextPageToken = "foo"; 3179 o.nextPageToken = "foo";
3145 } 3180 }
3146 buildCounterDirectorySitesListResponse--; 3181 buildCounterDirectorySitesListResponse--;
3147 return o; 3182 return o;
3148 } 3183 }
3149 3184
3150 checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { 3185 checkDirectorySitesListResponse(api.DirectorySitesListResponse o) {
3151 buildCounterDirectorySitesListResponse++; 3186 buildCounterDirectorySitesListResponse++;
3152 if (buildCounterDirectorySitesListResponse < 3) { 3187 if (buildCounterDirectorySitesListResponse < 3) {
3153 checkUnnamed351(o.directorySites); 3188 checkUnnamed764(o.directorySites);
3154 unittest.expect(o.kind, unittest.equals('foo')); 3189 unittest.expect(o.kind, unittest.equals('foo'));
3155 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3190 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3156 } 3191 }
3157 buildCounterDirectorySitesListResponse--; 3192 buildCounterDirectorySitesListResponse--;
3158 } 3193 }
3159 3194
3160 buildUnnamed352() { 3195 buildUnnamed765() {
3161 var o = new core.List<core.String>(); 3196 var o = new core.List<core.String>();
3162 o.add("foo"); 3197 o.add("foo");
3163 o.add("foo"); 3198 o.add("foo");
3164 return o; 3199 return o;
3165 } 3200 }
3166 3201
3167 checkUnnamed352(core.List<core.String> o) { 3202 checkUnnamed765(core.List<core.String> o) {
3168 unittest.expect(o, unittest.hasLength(2)); 3203 unittest.expect(o, unittest.hasLength(2));
3169 unittest.expect(o[0], unittest.equals('foo')); 3204 unittest.expect(o[0], unittest.equals('foo'));
3170 unittest.expect(o[1], unittest.equals('foo')); 3205 unittest.expect(o[1], unittest.equals('foo'));
3171 } 3206 }
3172 3207
3173 core.int buildCounterEventTag = 0; 3208 core.int buildCounterEventTag = 0;
3174 buildEventTag() { 3209 buildEventTag() {
3175 var o = new api.EventTag(); 3210 var o = new api.EventTag();
3176 buildCounterEventTag++; 3211 buildCounterEventTag++;
3177 if (buildCounterEventTag < 3) { 3212 if (buildCounterEventTag < 3) {
3178 o.accountId = "foo"; 3213 o.accountId = "foo";
3179 o.advertiserId = "foo"; 3214 o.advertiserId = "foo";
3180 o.advertiserIdDimensionValue = buildDimensionValue(); 3215 o.advertiserIdDimensionValue = buildDimensionValue();
3181 o.campaignId = "foo"; 3216 o.campaignId = "foo";
3182 o.campaignIdDimensionValue = buildDimensionValue(); 3217 o.campaignIdDimensionValue = buildDimensionValue();
3183 o.enabledByDefault = true; 3218 o.enabledByDefault = true;
3184 o.id = "foo"; 3219 o.id = "foo";
3185 o.kind = "foo"; 3220 o.kind = "foo";
3186 o.name = "foo"; 3221 o.name = "foo";
3187 o.siteFilterType = "foo"; 3222 o.siteFilterType = "foo";
3188 o.siteIds = buildUnnamed352(); 3223 o.siteIds = buildUnnamed765();
3189 o.sslCompliant = true; 3224 o.sslCompliant = true;
3190 o.status = "foo"; 3225 o.status = "foo";
3191 o.subaccountId = "foo"; 3226 o.subaccountId = "foo";
3192 o.type = "foo"; 3227 o.type = "foo";
3193 o.url = "foo"; 3228 o.url = "foo";
3194 o.urlEscapeLevels = 42; 3229 o.urlEscapeLevels = 42;
3195 } 3230 }
3196 buildCounterEventTag--; 3231 buildCounterEventTag--;
3197 return o; 3232 return o;
3198 } 3233 }
3199 3234
3200 checkEventTag(api.EventTag o) { 3235 checkEventTag(api.EventTag o) {
3201 buildCounterEventTag++; 3236 buildCounterEventTag++;
3202 if (buildCounterEventTag < 3) { 3237 if (buildCounterEventTag < 3) {
3203 unittest.expect(o.accountId, unittest.equals('foo')); 3238 unittest.expect(o.accountId, unittest.equals('foo'));
3204 unittest.expect(o.advertiserId, unittest.equals('foo')); 3239 unittest.expect(o.advertiserId, unittest.equals('foo'));
3205 checkDimensionValue(o.advertiserIdDimensionValue); 3240 checkDimensionValue(o.advertiserIdDimensionValue);
3206 unittest.expect(o.campaignId, unittest.equals('foo')); 3241 unittest.expect(o.campaignId, unittest.equals('foo'));
3207 checkDimensionValue(o.campaignIdDimensionValue); 3242 checkDimensionValue(o.campaignIdDimensionValue);
3208 unittest.expect(o.enabledByDefault, unittest.isTrue); 3243 unittest.expect(o.enabledByDefault, unittest.isTrue);
3209 unittest.expect(o.id, unittest.equals('foo')); 3244 unittest.expect(o.id, unittest.equals('foo'));
3210 unittest.expect(o.kind, unittest.equals('foo')); 3245 unittest.expect(o.kind, unittest.equals('foo'));
3211 unittest.expect(o.name, unittest.equals('foo')); 3246 unittest.expect(o.name, unittest.equals('foo'));
3212 unittest.expect(o.siteFilterType, unittest.equals('foo')); 3247 unittest.expect(o.siteFilterType, unittest.equals('foo'));
3213 checkUnnamed352(o.siteIds); 3248 checkUnnamed765(o.siteIds);
3214 unittest.expect(o.sslCompliant, unittest.isTrue); 3249 unittest.expect(o.sslCompliant, unittest.isTrue);
3215 unittest.expect(o.status, unittest.equals('foo')); 3250 unittest.expect(o.status, unittest.equals('foo'));
3216 unittest.expect(o.subaccountId, unittest.equals('foo')); 3251 unittest.expect(o.subaccountId, unittest.equals('foo'));
3217 unittest.expect(o.type, unittest.equals('foo')); 3252 unittest.expect(o.type, unittest.equals('foo'));
3218 unittest.expect(o.url, unittest.equals('foo')); 3253 unittest.expect(o.url, unittest.equals('foo'));
3219 unittest.expect(o.urlEscapeLevels, unittest.equals(42)); 3254 unittest.expect(o.urlEscapeLevels, unittest.equals(42));
3220 } 3255 }
3221 buildCounterEventTag--; 3256 buildCounterEventTag--;
3222 } 3257 }
3223 3258
(...skipping 11 matching lines...) Expand all
3235 3270
3236 checkEventTagOverride(api.EventTagOverride o) { 3271 checkEventTagOverride(api.EventTagOverride o) {
3237 buildCounterEventTagOverride++; 3272 buildCounterEventTagOverride++;
3238 if (buildCounterEventTagOverride < 3) { 3273 if (buildCounterEventTagOverride < 3) {
3239 unittest.expect(o.enabled, unittest.isTrue); 3274 unittest.expect(o.enabled, unittest.isTrue);
3240 unittest.expect(o.id, unittest.equals('foo')); 3275 unittest.expect(o.id, unittest.equals('foo'));
3241 } 3276 }
3242 buildCounterEventTagOverride--; 3277 buildCounterEventTagOverride--;
3243 } 3278 }
3244 3279
3245 buildUnnamed353() { 3280 buildUnnamed766() {
3246 var o = new core.List<api.EventTag>(); 3281 var o = new core.List<api.EventTag>();
3247 o.add(buildEventTag()); 3282 o.add(buildEventTag());
3248 o.add(buildEventTag()); 3283 o.add(buildEventTag());
3249 return o; 3284 return o;
3250 } 3285 }
3251 3286
3252 checkUnnamed353(core.List<api.EventTag> o) { 3287 checkUnnamed766(core.List<api.EventTag> o) {
3253 unittest.expect(o, unittest.hasLength(2)); 3288 unittest.expect(o, unittest.hasLength(2));
3254 checkEventTag(o[0]); 3289 checkEventTag(o[0]);
3255 checkEventTag(o[1]); 3290 checkEventTag(o[1]);
3256 } 3291 }
3257 3292
3258 core.int buildCounterEventTagsListResponse = 0; 3293 core.int buildCounterEventTagsListResponse = 0;
3259 buildEventTagsListResponse() { 3294 buildEventTagsListResponse() {
3260 var o = new api.EventTagsListResponse(); 3295 var o = new api.EventTagsListResponse();
3261 buildCounterEventTagsListResponse++; 3296 buildCounterEventTagsListResponse++;
3262 if (buildCounterEventTagsListResponse < 3) { 3297 if (buildCounterEventTagsListResponse < 3) {
3263 o.eventTags = buildUnnamed353(); 3298 o.eventTags = buildUnnamed766();
3264 o.kind = "foo"; 3299 o.kind = "foo";
3265 } 3300 }
3266 buildCounterEventTagsListResponse--; 3301 buildCounterEventTagsListResponse--;
3267 return o; 3302 return o;
3268 } 3303 }
3269 3304
3270 checkEventTagsListResponse(api.EventTagsListResponse o) { 3305 checkEventTagsListResponse(api.EventTagsListResponse o) {
3271 buildCounterEventTagsListResponse++; 3306 buildCounterEventTagsListResponse++;
3272 if (buildCounterEventTagsListResponse < 3) { 3307 if (buildCounterEventTagsListResponse < 3) {
3273 checkUnnamed353(o.eventTags); 3308 checkUnnamed766(o.eventTags);
3274 unittest.expect(o.kind, unittest.equals('foo')); 3309 unittest.expect(o.kind, unittest.equals('foo'));
3275 } 3310 }
3276 buildCounterEventTagsListResponse--; 3311 buildCounterEventTagsListResponse--;
3277 } 3312 }
3278 3313
3279 core.int buildCounterFileUrls = 0; 3314 core.int buildCounterFileUrls = 0;
3280 buildFileUrls() { 3315 buildFileUrls() {
3281 var o = new api.FileUrls(); 3316 var o = new api.FileUrls();
3282 buildCounterFileUrls++; 3317 buildCounterFileUrls++;
3283 if (buildCounterFileUrls < 3) { 3318 if (buildCounterFileUrls < 3) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
3327 unittest.expect(o.id, unittest.equals('foo')); 3362 unittest.expect(o.id, unittest.equals('foo'));
3328 unittest.expect(o.kind, unittest.equals('foo')); 3363 unittest.expect(o.kind, unittest.equals('foo'));
3329 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); 3364 unittest.expect(o.lastModifiedTime, unittest.equals('foo'));
3330 unittest.expect(o.reportId, unittest.equals('foo')); 3365 unittest.expect(o.reportId, unittest.equals('foo'));
3331 unittest.expect(o.status, unittest.equals('foo')); 3366 unittest.expect(o.status, unittest.equals('foo'));
3332 checkFileUrls(o.urls); 3367 checkFileUrls(o.urls);
3333 } 3368 }
3334 buildCounterFile--; 3369 buildCounterFile--;
3335 } 3370 }
3336 3371
3337 buildUnnamed354() { 3372 buildUnnamed767() {
3338 var o = new core.List<api.File>(); 3373 var o = new core.List<api.File>();
3339 o.add(buildFile()); 3374 o.add(buildFile());
3340 o.add(buildFile()); 3375 o.add(buildFile());
3341 return o; 3376 return o;
3342 } 3377 }
3343 3378
3344 checkUnnamed354(core.List<api.File> o) { 3379 checkUnnamed767(core.List<api.File> o) {
3345 unittest.expect(o, unittest.hasLength(2)); 3380 unittest.expect(o, unittest.hasLength(2));
3346 checkFile(o[0]); 3381 checkFile(o[0]);
3347 checkFile(o[1]); 3382 checkFile(o[1]);
3348 } 3383 }
3349 3384
3350 core.int buildCounterFileList = 0; 3385 core.int buildCounterFileList = 0;
3351 buildFileList() { 3386 buildFileList() {
3352 var o = new api.FileList(); 3387 var o = new api.FileList();
3353 buildCounterFileList++; 3388 buildCounterFileList++;
3354 if (buildCounterFileList < 3) { 3389 if (buildCounterFileList < 3) {
3355 o.etag = "foo"; 3390 o.etag = "foo";
3356 o.items = buildUnnamed354(); 3391 o.items = buildUnnamed767();
3357 o.kind = "foo"; 3392 o.kind = "foo";
3358 o.nextPageToken = "foo"; 3393 o.nextPageToken = "foo";
3359 } 3394 }
3360 buildCounterFileList--; 3395 buildCounterFileList--;
3361 return o; 3396 return o;
3362 } 3397 }
3363 3398
3364 checkFileList(api.FileList o) { 3399 checkFileList(api.FileList o) {
3365 buildCounterFileList++; 3400 buildCounterFileList++;
3366 if (buildCounterFileList < 3) { 3401 if (buildCounterFileList < 3) {
3367 unittest.expect(o.etag, unittest.equals('foo')); 3402 unittest.expect(o.etag, unittest.equals('foo'));
3368 checkUnnamed354(o.items); 3403 checkUnnamed767(o.items);
3369 unittest.expect(o.kind, unittest.equals('foo')); 3404 unittest.expect(o.kind, unittest.equals('foo'));
3370 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3405 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3371 } 3406 }
3372 buildCounterFileList--; 3407 buildCounterFileList--;
3373 } 3408 }
3374 3409
3375 core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0; 3410 core.int buildCounterFloodlightActivitiesGenerateTagResponse = 0;
3376 buildFloodlightActivitiesGenerateTagResponse() { 3411 buildFloodlightActivitiesGenerateTagResponse() {
3377 var o = new api.FloodlightActivitiesGenerateTagResponse(); 3412 var o = new api.FloodlightActivitiesGenerateTagResponse();
3378 buildCounterFloodlightActivitiesGenerateTagResponse++; 3413 buildCounterFloodlightActivitiesGenerateTagResponse++;
3379 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { 3414 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) {
3380 o.floodlightActivityTag = "foo"; 3415 o.floodlightActivityTag = "foo";
3381 o.kind = "foo"; 3416 o.kind = "foo";
3382 } 3417 }
3383 buildCounterFloodlightActivitiesGenerateTagResponse--; 3418 buildCounterFloodlightActivitiesGenerateTagResponse--;
3384 return o; 3419 return o;
3385 } 3420 }
3386 3421
3387 checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTag Response o) { 3422 checkFloodlightActivitiesGenerateTagResponse(api.FloodlightActivitiesGenerateTag Response o) {
3388 buildCounterFloodlightActivitiesGenerateTagResponse++; 3423 buildCounterFloodlightActivitiesGenerateTagResponse++;
3389 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) { 3424 if (buildCounterFloodlightActivitiesGenerateTagResponse < 3) {
3390 unittest.expect(o.floodlightActivityTag, unittest.equals('foo')); 3425 unittest.expect(o.floodlightActivityTag, unittest.equals('foo'));
3391 unittest.expect(o.kind, unittest.equals('foo')); 3426 unittest.expect(o.kind, unittest.equals('foo'));
3392 } 3427 }
3393 buildCounterFloodlightActivitiesGenerateTagResponse--; 3428 buildCounterFloodlightActivitiesGenerateTagResponse--;
3394 } 3429 }
3395 3430
3396 buildUnnamed355() { 3431 buildUnnamed768() {
3397 var o = new core.List<api.FloodlightActivity>(); 3432 var o = new core.List<api.FloodlightActivity>();
3398 o.add(buildFloodlightActivity()); 3433 o.add(buildFloodlightActivity());
3399 o.add(buildFloodlightActivity()); 3434 o.add(buildFloodlightActivity());
3400 return o; 3435 return o;
3401 } 3436 }
3402 3437
3403 checkUnnamed355(core.List<api.FloodlightActivity> o) { 3438 checkUnnamed768(core.List<api.FloodlightActivity> o) {
3404 unittest.expect(o, unittest.hasLength(2)); 3439 unittest.expect(o, unittest.hasLength(2));
3405 checkFloodlightActivity(o[0]); 3440 checkFloodlightActivity(o[0]);
3406 checkFloodlightActivity(o[1]); 3441 checkFloodlightActivity(o[1]);
3407 } 3442 }
3408 3443
3409 core.int buildCounterFloodlightActivitiesListResponse = 0; 3444 core.int buildCounterFloodlightActivitiesListResponse = 0;
3410 buildFloodlightActivitiesListResponse() { 3445 buildFloodlightActivitiesListResponse() {
3411 var o = new api.FloodlightActivitiesListResponse(); 3446 var o = new api.FloodlightActivitiesListResponse();
3412 buildCounterFloodlightActivitiesListResponse++; 3447 buildCounterFloodlightActivitiesListResponse++;
3413 if (buildCounterFloodlightActivitiesListResponse < 3) { 3448 if (buildCounterFloodlightActivitiesListResponse < 3) {
3414 o.floodlightActivities = buildUnnamed355(); 3449 o.floodlightActivities = buildUnnamed768();
3415 o.kind = "foo"; 3450 o.kind = "foo";
3416 o.nextPageToken = "foo"; 3451 o.nextPageToken = "foo";
3417 } 3452 }
3418 buildCounterFloodlightActivitiesListResponse--; 3453 buildCounterFloodlightActivitiesListResponse--;
3419 return o; 3454 return o;
3420 } 3455 }
3421 3456
3422 checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { 3457 checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) {
3423 buildCounterFloodlightActivitiesListResponse++; 3458 buildCounterFloodlightActivitiesListResponse++;
3424 if (buildCounterFloodlightActivitiesListResponse < 3) { 3459 if (buildCounterFloodlightActivitiesListResponse < 3) {
3425 checkUnnamed355(o.floodlightActivities); 3460 checkUnnamed768(o.floodlightActivities);
3426 unittest.expect(o.kind, unittest.equals('foo')); 3461 unittest.expect(o.kind, unittest.equals('foo'));
3427 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3462 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3428 } 3463 }
3429 buildCounterFloodlightActivitiesListResponse--; 3464 buildCounterFloodlightActivitiesListResponse--;
3430 } 3465 }
3431 3466
3432 buildUnnamed356() { 3467 buildUnnamed769() {
3433 var o = new core.List<api.FloodlightActivityDynamicTag>(); 3468 var o = new core.List<api.FloodlightActivityDynamicTag>();
3434 o.add(buildFloodlightActivityDynamicTag()); 3469 o.add(buildFloodlightActivityDynamicTag());
3435 o.add(buildFloodlightActivityDynamicTag()); 3470 o.add(buildFloodlightActivityDynamicTag());
3436 return o; 3471 return o;
3437 } 3472 }
3438 3473
3439 checkUnnamed356(core.List<api.FloodlightActivityDynamicTag> o) { 3474 checkUnnamed769(core.List<api.FloodlightActivityDynamicTag> o) {
3440 unittest.expect(o, unittest.hasLength(2)); 3475 unittest.expect(o, unittest.hasLength(2));
3441 checkFloodlightActivityDynamicTag(o[0]); 3476 checkFloodlightActivityDynamicTag(o[0]);
3442 checkFloodlightActivityDynamicTag(o[1]); 3477 checkFloodlightActivityDynamicTag(o[1]);
3443 } 3478 }
3444 3479
3445 buildUnnamed357() { 3480 buildUnnamed770() {
3446 var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); 3481 var o = new core.List<api.FloodlightActivityPublisherDynamicTag>();
3447 o.add(buildFloodlightActivityPublisherDynamicTag()); 3482 o.add(buildFloodlightActivityPublisherDynamicTag());
3448 o.add(buildFloodlightActivityPublisherDynamicTag()); 3483 o.add(buildFloodlightActivityPublisherDynamicTag());
3449 return o; 3484 return o;
3450 } 3485 }
3451 3486
3452 checkUnnamed357(core.List<api.FloodlightActivityPublisherDynamicTag> o) { 3487 checkUnnamed770(core.List<api.FloodlightActivityPublisherDynamicTag> o) {
3453 unittest.expect(o, unittest.hasLength(2)); 3488 unittest.expect(o, unittest.hasLength(2));
3454 checkFloodlightActivityPublisherDynamicTag(o[0]); 3489 checkFloodlightActivityPublisherDynamicTag(o[0]);
3455 checkFloodlightActivityPublisherDynamicTag(o[1]); 3490 checkFloodlightActivityPublisherDynamicTag(o[1]);
3456 } 3491 }
3457 3492
3458 buildUnnamed358() { 3493 buildUnnamed771() {
3459 var o = new core.List<core.String>(); 3494 var o = new core.List<core.String>();
3460 o.add("foo"); 3495 o.add("foo");
3461 o.add("foo"); 3496 o.add("foo");
3462 return o; 3497 return o;
3463 } 3498 }
3464 3499
3465 checkUnnamed358(core.List<core.String> o) { 3500 checkUnnamed771(core.List<core.String> o) {
3466 unittest.expect(o, unittest.hasLength(2)); 3501 unittest.expect(o, unittest.hasLength(2));
3467 unittest.expect(o[0], unittest.equals('foo')); 3502 unittest.expect(o[0], unittest.equals('foo'));
3468 unittest.expect(o[1], unittest.equals('foo')); 3503 unittest.expect(o[1], unittest.equals('foo'));
3469 } 3504 }
3470 3505
3471 core.int buildCounterFloodlightActivity = 0; 3506 core.int buildCounterFloodlightActivity = 0;
3472 buildFloodlightActivity() { 3507 buildFloodlightActivity() {
3473 var o = new api.FloodlightActivity(); 3508 var o = new api.FloodlightActivity();
3474 buildCounterFloodlightActivity++; 3509 buildCounterFloodlightActivity++;
3475 if (buildCounterFloodlightActivity < 3) { 3510 if (buildCounterFloodlightActivity < 3) {
3476 o.accountId = "foo"; 3511 o.accountId = "foo";
3477 o.advertiserId = "foo"; 3512 o.advertiserId = "foo";
3478 o.advertiserIdDimensionValue = buildDimensionValue(); 3513 o.advertiserIdDimensionValue = buildDimensionValue();
3479 o.cacheBustingType = "foo"; 3514 o.cacheBustingType = "foo";
3480 o.countingMethod = "foo"; 3515 o.countingMethod = "foo";
3481 o.defaultTags = buildUnnamed356(); 3516 o.defaultTags = buildUnnamed769();
3482 o.expectedUrl = "foo"; 3517 o.expectedUrl = "foo";
3483 o.floodlightActivityGroupId = "foo"; 3518 o.floodlightActivityGroupId = "foo";
3484 o.floodlightActivityGroupName = "foo"; 3519 o.floodlightActivityGroupName = "foo";
3485 o.floodlightActivityGroupTagString = "foo"; 3520 o.floodlightActivityGroupTagString = "foo";
3486 o.floodlightActivityGroupType = "foo"; 3521 o.floodlightActivityGroupType = "foo";
3487 o.floodlightConfigurationId = "foo"; 3522 o.floodlightConfigurationId = "foo";
3488 o.floodlightConfigurationIdDimensionValue = buildDimensionValue(); 3523 o.floodlightConfigurationIdDimensionValue = buildDimensionValue();
3489 o.hidden = true; 3524 o.hidden = true;
3490 o.id = "foo"; 3525 o.id = "foo";
3491 o.idDimensionValue = buildDimensionValue(); 3526 o.idDimensionValue = buildDimensionValue();
3492 o.imageTagEnabled = true; 3527 o.imageTagEnabled = true;
3493 o.kind = "foo"; 3528 o.kind = "foo";
3494 o.name = "foo"; 3529 o.name = "foo";
3495 o.notes = "foo"; 3530 o.notes = "foo";
3496 o.publisherTags = buildUnnamed357(); 3531 o.publisherTags = buildUnnamed770();
3497 o.secure = true; 3532 o.secure = true;
3498 o.sslCompliant = true; 3533 o.sslCompliant = true;
3499 o.sslRequired = true; 3534 o.sslRequired = true;
3500 o.subaccountId = "foo"; 3535 o.subaccountId = "foo";
3501 o.tagFormat = "foo"; 3536 o.tagFormat = "foo";
3502 o.tagString = "foo"; 3537 o.tagString = "foo";
3503 o.userDefinedVariableTypes = buildUnnamed358(); 3538 o.userDefinedVariableTypes = buildUnnamed771();
3504 } 3539 }
3505 buildCounterFloodlightActivity--; 3540 buildCounterFloodlightActivity--;
3506 return o; 3541 return o;
3507 } 3542 }
3508 3543
3509 checkFloodlightActivity(api.FloodlightActivity o) { 3544 checkFloodlightActivity(api.FloodlightActivity o) {
3510 buildCounterFloodlightActivity++; 3545 buildCounterFloodlightActivity++;
3511 if (buildCounterFloodlightActivity < 3) { 3546 if (buildCounterFloodlightActivity < 3) {
3512 unittest.expect(o.accountId, unittest.equals('foo')); 3547 unittest.expect(o.accountId, unittest.equals('foo'));
3513 unittest.expect(o.advertiserId, unittest.equals('foo')); 3548 unittest.expect(o.advertiserId, unittest.equals('foo'));
3514 checkDimensionValue(o.advertiserIdDimensionValue); 3549 checkDimensionValue(o.advertiserIdDimensionValue);
3515 unittest.expect(o.cacheBustingType, unittest.equals('foo')); 3550 unittest.expect(o.cacheBustingType, unittest.equals('foo'));
3516 unittest.expect(o.countingMethod, unittest.equals('foo')); 3551 unittest.expect(o.countingMethod, unittest.equals('foo'));
3517 checkUnnamed356(o.defaultTags); 3552 checkUnnamed769(o.defaultTags);
3518 unittest.expect(o.expectedUrl, unittest.equals('foo')); 3553 unittest.expect(o.expectedUrl, unittest.equals('foo'));
3519 unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); 3554 unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo'));
3520 unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); 3555 unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo'));
3521 unittest.expect(o.floodlightActivityGroupTagString, unittest.equals('foo')); 3556 unittest.expect(o.floodlightActivityGroupTagString, unittest.equals('foo'));
3522 unittest.expect(o.floodlightActivityGroupType, unittest.equals('foo')); 3557 unittest.expect(o.floodlightActivityGroupType, unittest.equals('foo'));
3523 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); 3558 unittest.expect(o.floodlightConfigurationId, unittest.equals('foo'));
3524 checkDimensionValue(o.floodlightConfigurationIdDimensionValue); 3559 checkDimensionValue(o.floodlightConfigurationIdDimensionValue);
3525 unittest.expect(o.hidden, unittest.isTrue); 3560 unittest.expect(o.hidden, unittest.isTrue);
3526 unittest.expect(o.id, unittest.equals('foo')); 3561 unittest.expect(o.id, unittest.equals('foo'));
3527 checkDimensionValue(o.idDimensionValue); 3562 checkDimensionValue(o.idDimensionValue);
3528 unittest.expect(o.imageTagEnabled, unittest.isTrue); 3563 unittest.expect(o.imageTagEnabled, unittest.isTrue);
3529 unittest.expect(o.kind, unittest.equals('foo')); 3564 unittest.expect(o.kind, unittest.equals('foo'));
3530 unittest.expect(o.name, unittest.equals('foo')); 3565 unittest.expect(o.name, unittest.equals('foo'));
3531 unittest.expect(o.notes, unittest.equals('foo')); 3566 unittest.expect(o.notes, unittest.equals('foo'));
3532 checkUnnamed357(o.publisherTags); 3567 checkUnnamed770(o.publisherTags);
3533 unittest.expect(o.secure, unittest.isTrue); 3568 unittest.expect(o.secure, unittest.isTrue);
3534 unittest.expect(o.sslCompliant, unittest.isTrue); 3569 unittest.expect(o.sslCompliant, unittest.isTrue);
3535 unittest.expect(o.sslRequired, unittest.isTrue); 3570 unittest.expect(o.sslRequired, unittest.isTrue);
3536 unittest.expect(o.subaccountId, unittest.equals('foo')); 3571 unittest.expect(o.subaccountId, unittest.equals('foo'));
3537 unittest.expect(o.tagFormat, unittest.equals('foo')); 3572 unittest.expect(o.tagFormat, unittest.equals('foo'));
3538 unittest.expect(o.tagString, unittest.equals('foo')); 3573 unittest.expect(o.tagString, unittest.equals('foo'));
3539 checkUnnamed358(o.userDefinedVariableTypes); 3574 checkUnnamed771(o.userDefinedVariableTypes);
3540 } 3575 }
3541 buildCounterFloodlightActivity--; 3576 buildCounterFloodlightActivity--;
3542 } 3577 }
3543 3578
3544 core.int buildCounterFloodlightActivityDynamicTag = 0; 3579 core.int buildCounterFloodlightActivityDynamicTag = 0;
3545 buildFloodlightActivityDynamicTag() { 3580 buildFloodlightActivityDynamicTag() {
3546 var o = new api.FloodlightActivityDynamicTag(); 3581 var o = new api.FloodlightActivityDynamicTag();
3547 buildCounterFloodlightActivityDynamicTag++; 3582 buildCounterFloodlightActivityDynamicTag++;
3548 if (buildCounterFloodlightActivityDynamicTag < 3) { 3583 if (buildCounterFloodlightActivityDynamicTag < 3) {
3549 o.id = "foo"; 3584 o.id = "foo";
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
3598 checkDimensionValue(o.idDimensionValue); 3633 checkDimensionValue(o.idDimensionValue);
3599 unittest.expect(o.kind, unittest.equals('foo')); 3634 unittest.expect(o.kind, unittest.equals('foo'));
3600 unittest.expect(o.name, unittest.equals('foo')); 3635 unittest.expect(o.name, unittest.equals('foo'));
3601 unittest.expect(o.subaccountId, unittest.equals('foo')); 3636 unittest.expect(o.subaccountId, unittest.equals('foo'));
3602 unittest.expect(o.tagString, unittest.equals('foo')); 3637 unittest.expect(o.tagString, unittest.equals('foo'));
3603 unittest.expect(o.type, unittest.equals('foo')); 3638 unittest.expect(o.type, unittest.equals('foo'));
3604 } 3639 }
3605 buildCounterFloodlightActivityGroup--; 3640 buildCounterFloodlightActivityGroup--;
3606 } 3641 }
3607 3642
3608 buildUnnamed359() { 3643 buildUnnamed772() {
3609 var o = new core.List<api.FloodlightActivityGroup>(); 3644 var o = new core.List<api.FloodlightActivityGroup>();
3610 o.add(buildFloodlightActivityGroup()); 3645 o.add(buildFloodlightActivityGroup());
3611 o.add(buildFloodlightActivityGroup()); 3646 o.add(buildFloodlightActivityGroup());
3612 return o; 3647 return o;
3613 } 3648 }
3614 3649
3615 checkUnnamed359(core.List<api.FloodlightActivityGroup> o) { 3650 checkUnnamed772(core.List<api.FloodlightActivityGroup> o) {
3616 unittest.expect(o, unittest.hasLength(2)); 3651 unittest.expect(o, unittest.hasLength(2));
3617 checkFloodlightActivityGroup(o[0]); 3652 checkFloodlightActivityGroup(o[0]);
3618 checkFloodlightActivityGroup(o[1]); 3653 checkFloodlightActivityGroup(o[1]);
3619 } 3654 }
3620 3655
3621 core.int buildCounterFloodlightActivityGroupsListResponse = 0; 3656 core.int buildCounterFloodlightActivityGroupsListResponse = 0;
3622 buildFloodlightActivityGroupsListResponse() { 3657 buildFloodlightActivityGroupsListResponse() {
3623 var o = new api.FloodlightActivityGroupsListResponse(); 3658 var o = new api.FloodlightActivityGroupsListResponse();
3624 buildCounterFloodlightActivityGroupsListResponse++; 3659 buildCounterFloodlightActivityGroupsListResponse++;
3625 if (buildCounterFloodlightActivityGroupsListResponse < 3) { 3660 if (buildCounterFloodlightActivityGroupsListResponse < 3) {
3626 o.floodlightActivityGroups = buildUnnamed359(); 3661 o.floodlightActivityGroups = buildUnnamed772();
3627 o.kind = "foo"; 3662 o.kind = "foo";
3628 o.nextPageToken = "foo"; 3663 o.nextPageToken = "foo";
3629 } 3664 }
3630 buildCounterFloodlightActivityGroupsListResponse--; 3665 buildCounterFloodlightActivityGroupsListResponse--;
3631 return o; 3666 return o;
3632 } 3667 }
3633 3668
3634 checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListRespon se o) { 3669 checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListRespon se o) {
3635 buildCounterFloodlightActivityGroupsListResponse++; 3670 buildCounterFloodlightActivityGroupsListResponse++;
3636 if (buildCounterFloodlightActivityGroupsListResponse < 3) { 3671 if (buildCounterFloodlightActivityGroupsListResponse < 3) {
3637 checkUnnamed359(o.floodlightActivityGroups); 3672 checkUnnamed772(o.floodlightActivityGroups);
3638 unittest.expect(o.kind, unittest.equals('foo')); 3673 unittest.expect(o.kind, unittest.equals('foo'));
3639 unittest.expect(o.nextPageToken, unittest.equals('foo')); 3674 unittest.expect(o.nextPageToken, unittest.equals('foo'));
3640 } 3675 }
3641 buildCounterFloodlightActivityGroupsListResponse--; 3676 buildCounterFloodlightActivityGroupsListResponse--;
3642 } 3677 }
3643 3678
3644 core.int buildCounterFloodlightActivityPublisherDynamicTag = 0; 3679 core.int buildCounterFloodlightActivityPublisherDynamicTag = 0;
3645 buildFloodlightActivityPublisherDynamicTag() { 3680 buildFloodlightActivityPublisherDynamicTag() {
3646 var o = new api.FloodlightActivityPublisherDynamicTag(); 3681 var o = new api.FloodlightActivityPublisherDynamicTag();
3647 buildCounterFloodlightActivityPublisherDynamicTag++; 3682 buildCounterFloodlightActivityPublisherDynamicTag++;
(...skipping 15 matching lines...) Expand all
3663 unittest.expect(o.clickThrough, unittest.isTrue); 3698 unittest.expect(o.clickThrough, unittest.isTrue);
3664 unittest.expect(o.directorySiteId, unittest.equals('foo')); 3699 unittest.expect(o.directorySiteId, unittest.equals('foo'));
3665 checkFloodlightActivityDynamicTag(o.dynamicTag); 3700 checkFloodlightActivityDynamicTag(o.dynamicTag);
3666 unittest.expect(o.siteId, unittest.equals('foo')); 3701 unittest.expect(o.siteId, unittest.equals('foo'));
3667 checkDimensionValue(o.siteIdDimensionValue); 3702 checkDimensionValue(o.siteIdDimensionValue);
3668 unittest.expect(o.viewThrough, unittest.isTrue); 3703 unittest.expect(o.viewThrough, unittest.isTrue);
3669 } 3704 }
3670 buildCounterFloodlightActivityPublisherDynamicTag--; 3705 buildCounterFloodlightActivityPublisherDynamicTag--;
3671 } 3706 }
3672 3707
3673 buildUnnamed360() { 3708 buildUnnamed773() {
3674 var o = new core.List<core.String>(); 3709 var o = new core.List<core.String>();
3675 o.add("foo"); 3710 o.add("foo");
3676 o.add("foo"); 3711 o.add("foo");
3677 return o; 3712 return o;
3678 } 3713 }
3679 3714
3680 checkUnnamed360(core.List<core.String> o) { 3715 checkUnnamed773(core.List<core.String> o) {
3681 unittest.expect(o, unittest.hasLength(2)); 3716 unittest.expect(o, unittest.hasLength(2));
3682 unittest.expect(o[0], unittest.equals('foo')); 3717 unittest.expect(o[0], unittest.equals('foo'));
3683 unittest.expect(o[1], unittest.equals('foo')); 3718 unittest.expect(o[1], unittest.equals('foo'));
3684 } 3719 }
3685 3720
3686 buildUnnamed361() { 3721 buildUnnamed774() {
3687 var o = new core.List<api.UserDefinedVariableConfiguration>(); 3722 var o = new core.List<api.UserDefinedVariableConfiguration>();
3688 o.add(buildUserDefinedVariableConfiguration()); 3723 o.add(buildUserDefinedVariableConfiguration());
3689 o.add(buildUserDefinedVariableConfiguration()); 3724 o.add(buildUserDefinedVariableConfiguration());
3690 return o; 3725 return o;
3691 } 3726 }
3692 3727
3693 checkUnnamed361(core.List<api.UserDefinedVariableConfiguration> o) { 3728 checkUnnamed774(core.List<api.UserDefinedVariableConfiguration> o) {
3694 unittest.expect(o, unittest.hasLength(2)); 3729 unittest.expect(o, unittest.hasLength(2));
3695 checkUserDefinedVariableConfiguration(o[0]); 3730 checkUserDefinedVariableConfiguration(o[0]);
3696 checkUserDefinedVariableConfiguration(o[1]); 3731 checkUserDefinedVariableConfiguration(o[1]);
3697 } 3732 }
3698 3733
3699 core.int buildCounterFloodlightConfiguration = 0; 3734 core.int buildCounterFloodlightConfiguration = 0;
3700 buildFloodlightConfiguration() { 3735 buildFloodlightConfiguration() {
3701 var o = new api.FloodlightConfiguration(); 3736 var o = new api.FloodlightConfiguration();
3702 buildCounterFloodlightConfiguration++; 3737 buildCounterFloodlightConfiguration++;
3703 if (buildCounterFloodlightConfiguration < 3) { 3738 if (buildCounterFloodlightConfiguration < 3) {
3704 o.accountId = "foo"; 3739 o.accountId = "foo";
3705 o.advertiserId = "foo"; 3740 o.advertiserId = "foo";
3706 o.advertiserIdDimensionValue = buildDimensionValue(); 3741 o.advertiserIdDimensionValue = buildDimensionValue();
3707 o.analyticsDataSharingEnabled = true; 3742 o.analyticsDataSharingEnabled = true;
3708 o.exposureToConversionEnabled = true; 3743 o.exposureToConversionEnabled = true;
3709 o.firstDayOfWeek = "foo"; 3744 o.firstDayOfWeek = "foo";
3710 o.id = "foo"; 3745 o.id = "foo";
3711 o.idDimensionValue = buildDimensionValue(); 3746 o.idDimensionValue = buildDimensionValue();
3712 o.kind = "foo"; 3747 o.kind = "foo";
3713 o.lookbackConfiguration = buildLookbackConfiguration(); 3748 o.lookbackConfiguration = buildLookbackConfiguration();
3714 o.naturalSearchConversionAttributionOption = "foo"; 3749 o.naturalSearchConversionAttributionOption = "foo";
3715 o.omnitureSettings = buildOmnitureSettings(); 3750 o.omnitureSettings = buildOmnitureSettings();
3716 o.sslRequired = true; 3751 o.sslRequired = true;
3717 o.standardVariableTypes = buildUnnamed360(); 3752 o.standardVariableTypes = buildUnnamed773();
3718 o.subaccountId = "foo"; 3753 o.subaccountId = "foo";
3719 o.tagSettings = buildTagSettings(); 3754 o.tagSettings = buildTagSettings();
3720 o.userDefinedVariableConfigurations = buildUnnamed361(); 3755 o.userDefinedVariableConfigurations = buildUnnamed774();
3721 } 3756 }
3722 buildCounterFloodlightConfiguration--; 3757 buildCounterFloodlightConfiguration--;
3723 return o; 3758 return o;
3724 } 3759 }
3725 3760
3726 checkFloodlightConfiguration(api.FloodlightConfiguration o) { 3761 checkFloodlightConfiguration(api.FloodlightConfiguration o) {
3727 buildCounterFloodlightConfiguration++; 3762 buildCounterFloodlightConfiguration++;
3728 if (buildCounterFloodlightConfiguration < 3) { 3763 if (buildCounterFloodlightConfiguration < 3) {
3729 unittest.expect(o.accountId, unittest.equals('foo')); 3764 unittest.expect(o.accountId, unittest.equals('foo'));
3730 unittest.expect(o.advertiserId, unittest.equals('foo')); 3765 unittest.expect(o.advertiserId, unittest.equals('foo'));
3731 checkDimensionValue(o.advertiserIdDimensionValue); 3766 checkDimensionValue(o.advertiserIdDimensionValue);
3732 unittest.expect(o.analyticsDataSharingEnabled, unittest.isTrue); 3767 unittest.expect(o.analyticsDataSharingEnabled, unittest.isTrue);
3733 unittest.expect(o.exposureToConversionEnabled, unittest.isTrue); 3768 unittest.expect(o.exposureToConversionEnabled, unittest.isTrue);
3734 unittest.expect(o.firstDayOfWeek, unittest.equals('foo')); 3769 unittest.expect(o.firstDayOfWeek, unittest.equals('foo'));
3735 unittest.expect(o.id, unittest.equals('foo')); 3770 unittest.expect(o.id, unittest.equals('foo'));
3736 checkDimensionValue(o.idDimensionValue); 3771 checkDimensionValue(o.idDimensionValue);
3737 unittest.expect(o.kind, unittest.equals('foo')); 3772 unittest.expect(o.kind, unittest.equals('foo'));
3738 checkLookbackConfiguration(o.lookbackConfiguration); 3773 checkLookbackConfiguration(o.lookbackConfiguration);
3739 unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals( 'foo')); 3774 unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals( 'foo'));
3740 checkOmnitureSettings(o.omnitureSettings); 3775 checkOmnitureSettings(o.omnitureSettings);
3741 unittest.expect(o.sslRequired, unittest.isTrue); 3776 unittest.expect(o.sslRequired, unittest.isTrue);
3742 checkUnnamed360(o.standardVariableTypes); 3777 checkUnnamed773(o.standardVariableTypes);
3743 unittest.expect(o.subaccountId, unittest.equals('foo')); 3778 unittest.expect(o.subaccountId, unittest.equals('foo'));
3744 checkTagSettings(o.tagSettings); 3779 checkTagSettings(o.tagSettings);
3745 checkUnnamed361(o.userDefinedVariableConfigurations); 3780 checkUnnamed774(o.userDefinedVariableConfigurations);
3746 } 3781 }
3747 buildCounterFloodlightConfiguration--; 3782 buildCounterFloodlightConfiguration--;
3748 } 3783 }
3749 3784
3750 buildUnnamed362() { 3785 buildUnnamed775() {
3751 var o = new core.List<api.FloodlightConfiguration>(); 3786 var o = new core.List<api.FloodlightConfiguration>();
3752 o.add(buildFloodlightConfiguration()); 3787 o.add(buildFloodlightConfiguration());
3753 o.add(buildFloodlightConfiguration()); 3788 o.add(buildFloodlightConfiguration());
3754 return o; 3789 return o;
3755 } 3790 }
3756 3791
3757 checkUnnamed362(core.List<api.FloodlightConfiguration> o) { 3792 checkUnnamed775(core.List<api.FloodlightConfiguration> o) {
3758 unittest.expect(o, unittest.hasLength(2)); 3793 unittest.expect(o, unittest.hasLength(2));
3759 checkFloodlightConfiguration(o[0]); 3794 checkFloodlightConfiguration(o[0]);
3760 checkFloodlightConfiguration(o[1]); 3795 checkFloodlightConfiguration(o[1]);
3761 } 3796 }
3762 3797
3763 core.int buildCounterFloodlightConfigurationsListResponse = 0; 3798 core.int buildCounterFloodlightConfigurationsListResponse = 0;
3764 buildFloodlightConfigurationsListResponse() { 3799 buildFloodlightConfigurationsListResponse() {
3765 var o = new api.FloodlightConfigurationsListResponse(); 3800 var o = new api.FloodlightConfigurationsListResponse();
3766 buildCounterFloodlightConfigurationsListResponse++; 3801 buildCounterFloodlightConfigurationsListResponse++;
3767 if (buildCounterFloodlightConfigurationsListResponse < 3) { 3802 if (buildCounterFloodlightConfigurationsListResponse < 3) {
3768 o.floodlightConfigurations = buildUnnamed362(); 3803 o.floodlightConfigurations = buildUnnamed775();
3769 o.kind = "foo"; 3804 o.kind = "foo";
3770 } 3805 }
3771 buildCounterFloodlightConfigurationsListResponse--; 3806 buildCounterFloodlightConfigurationsListResponse--;
3772 return o; 3807 return o;
3773 } 3808 }
3774 3809
3775 checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListRespon se o) { 3810 checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListRespon se o) {
3776 buildCounterFloodlightConfigurationsListResponse++; 3811 buildCounterFloodlightConfigurationsListResponse++;
3777 if (buildCounterFloodlightConfigurationsListResponse < 3) { 3812 if (buildCounterFloodlightConfigurationsListResponse < 3) {
3778 checkUnnamed362(o.floodlightConfigurations); 3813 checkUnnamed775(o.floodlightConfigurations);
3779 unittest.expect(o.kind, unittest.equals('foo')); 3814 unittest.expect(o.kind, unittest.equals('foo'));
3780 } 3815 }
3781 buildCounterFloodlightConfigurationsListResponse--; 3816 buildCounterFloodlightConfigurationsListResponse--;
3782 } 3817 }
3783 3818
3784 buildUnnamed363() { 3819 buildUnnamed776() {
3785 var o = new core.List<api.Dimension>(); 3820 var o = new core.List<api.Dimension>();
3786 o.add(buildDimension()); 3821 o.add(buildDimension());
3787 o.add(buildDimension()); 3822 o.add(buildDimension());
3788 return o; 3823 return o;
3789 } 3824 }
3790 3825
3791 checkUnnamed363(core.List<api.Dimension> o) { 3826 checkUnnamed776(core.List<api.Dimension> o) {
3792 unittest.expect(o, unittest.hasLength(2)); 3827 unittest.expect(o, unittest.hasLength(2));
3793 checkDimension(o[0]); 3828 checkDimension(o[0]);
3794 checkDimension(o[1]); 3829 checkDimension(o[1]);
3795 } 3830 }
3796 3831
3797 buildUnnamed364() { 3832 buildUnnamed777() {
3798 var o = new core.List<api.Dimension>(); 3833 var o = new core.List<api.Dimension>();
3799 o.add(buildDimension()); 3834 o.add(buildDimension());
3800 o.add(buildDimension()); 3835 o.add(buildDimension());
3801 return o; 3836 return o;
3802 } 3837 }
3803 3838
3804 checkUnnamed364(core.List<api.Dimension> o) { 3839 checkUnnamed777(core.List<api.Dimension> o) {
3805 unittest.expect(o, unittest.hasLength(2)); 3840 unittest.expect(o, unittest.hasLength(2));
3806 checkDimension(o[0]); 3841 checkDimension(o[0]);
3807 checkDimension(o[1]); 3842 checkDimension(o[1]);
3808 } 3843 }
3809 3844
3810 buildUnnamed365() { 3845 buildUnnamed778() {
3811 var o = new core.List<api.Metric>(); 3846 var o = new core.List<api.Metric>();
3812 o.add(buildMetric()); 3847 o.add(buildMetric());
3813 o.add(buildMetric()); 3848 o.add(buildMetric());
3814 return o; 3849 return o;
3815 } 3850 }
3816 3851
3817 checkUnnamed365(core.List<api.Metric> o) { 3852 checkUnnamed778(core.List<api.Metric> o) {
3818 unittest.expect(o, unittest.hasLength(2)); 3853 unittest.expect(o, unittest.hasLength(2));
3819 checkMetric(o[0]); 3854 checkMetric(o[0]);
3820 checkMetric(o[1]); 3855 checkMetric(o[1]);
3821 } 3856 }
3822 3857
3823 core.int buildCounterFloodlightReportCompatibleFields = 0; 3858 core.int buildCounterFloodlightReportCompatibleFields = 0;
3824 buildFloodlightReportCompatibleFields() { 3859 buildFloodlightReportCompatibleFields() {
3825 var o = new api.FloodlightReportCompatibleFields(); 3860 var o = new api.FloodlightReportCompatibleFields();
3826 buildCounterFloodlightReportCompatibleFields++; 3861 buildCounterFloodlightReportCompatibleFields++;
3827 if (buildCounterFloodlightReportCompatibleFields < 3) { 3862 if (buildCounterFloodlightReportCompatibleFields < 3) {
3828 o.dimensionFilters = buildUnnamed363(); 3863 o.dimensionFilters = buildUnnamed776();
3829 o.dimensions = buildUnnamed364(); 3864 o.dimensions = buildUnnamed777();
3830 o.kind = "foo"; 3865 o.kind = "foo";
3831 o.metrics = buildUnnamed365(); 3866 o.metrics = buildUnnamed778();
3832 } 3867 }
3833 buildCounterFloodlightReportCompatibleFields--; 3868 buildCounterFloodlightReportCompatibleFields--;
3834 return o; 3869 return o;
3835 } 3870 }
3836 3871
3837 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { 3872 checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) {
3838 buildCounterFloodlightReportCompatibleFields++; 3873 buildCounterFloodlightReportCompatibleFields++;
3839 if (buildCounterFloodlightReportCompatibleFields < 3) { 3874 if (buildCounterFloodlightReportCompatibleFields < 3) {
3840 checkUnnamed363(o.dimensionFilters); 3875 checkUnnamed776(o.dimensionFilters);
3841 checkUnnamed364(o.dimensions); 3876 checkUnnamed777(o.dimensions);
3842 unittest.expect(o.kind, unittest.equals('foo')); 3877 unittest.expect(o.kind, unittest.equals('foo'));
3843 checkUnnamed365(o.metrics); 3878 checkUnnamed778(o.metrics);
3844 } 3879 }
3845 buildCounterFloodlightReportCompatibleFields--; 3880 buildCounterFloodlightReportCompatibleFields--;
3846 } 3881 }
3847 3882
3848 core.int buildCounterFrequencyCap = 0; 3883 core.int buildCounterFrequencyCap = 0;
3849 buildFrequencyCap() { 3884 buildFrequencyCap() {
3850 var o = new api.FrequencyCap(); 3885 var o = new api.FrequencyCap();
3851 buildCounterFrequencyCap++; 3886 buildCounterFrequencyCap++;
3852 if (buildCounterFrequencyCap < 3) { 3887 if (buildCounterFrequencyCap < 3) {
3853 o.duration = "foo"; 3888 o.duration = "foo";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
3886 if (buildCounterFsCommand < 3) { 3921 if (buildCounterFsCommand < 3) {
3887 unittest.expect(o.left, unittest.equals(42)); 3922 unittest.expect(o.left, unittest.equals(42));
3888 unittest.expect(o.positionOption, unittest.equals('foo')); 3923 unittest.expect(o.positionOption, unittest.equals('foo'));
3889 unittest.expect(o.top, unittest.equals(42)); 3924 unittest.expect(o.top, unittest.equals(42));
3890 unittest.expect(o.windowHeight, unittest.equals(42)); 3925 unittest.expect(o.windowHeight, unittest.equals(42));
3891 unittest.expect(o.windowWidth, unittest.equals(42)); 3926 unittest.expect(o.windowWidth, unittest.equals(42));
3892 } 3927 }
3893 buildCounterFsCommand--; 3928 buildCounterFsCommand--;
3894 } 3929 }
3895 3930
3896 buildUnnamed366() { 3931 buildUnnamed779() {
3897 var o = new core.List<api.City>(); 3932 var o = new core.List<api.City>();
3898 o.add(buildCity()); 3933 o.add(buildCity());
3899 o.add(buildCity()); 3934 o.add(buildCity());
3900 return o; 3935 return o;
3901 } 3936 }
3902 3937
3903 checkUnnamed366(core.List<api.City> o) { 3938 checkUnnamed779(core.List<api.City> o) {
3904 unittest.expect(o, unittest.hasLength(2)); 3939 unittest.expect(o, unittest.hasLength(2));
3905 checkCity(o[0]); 3940 checkCity(o[0]);
3906 checkCity(o[1]); 3941 checkCity(o[1]);
3907 } 3942 }
3908 3943
3909 buildUnnamed367() { 3944 buildUnnamed780() {
3910 var o = new core.List<api.Country>(); 3945 var o = new core.List<api.Country>();
3911 o.add(buildCountry()); 3946 o.add(buildCountry());
3912 o.add(buildCountry()); 3947 o.add(buildCountry());
3913 return o; 3948 return o;
3914 } 3949 }
3915 3950
3916 checkUnnamed367(core.List<api.Country> o) { 3951 checkUnnamed780(core.List<api.Country> o) {
3917 unittest.expect(o, unittest.hasLength(2)); 3952 unittest.expect(o, unittest.hasLength(2));
3918 checkCountry(o[0]); 3953 checkCountry(o[0]);
3919 checkCountry(o[1]); 3954 checkCountry(o[1]);
3920 } 3955 }
3921 3956
3922 buildUnnamed368() { 3957 buildUnnamed781() {
3923 var o = new core.List<api.Metro>(); 3958 var o = new core.List<api.Metro>();
3924 o.add(buildMetro()); 3959 o.add(buildMetro());
3925 o.add(buildMetro()); 3960 o.add(buildMetro());
3926 return o; 3961 return o;
3927 } 3962 }
3928 3963
3929 checkUnnamed368(core.List<api.Metro> o) { 3964 checkUnnamed781(core.List<api.Metro> o) {
3930 unittest.expect(o, unittest.hasLength(2)); 3965 unittest.expect(o, unittest.hasLength(2));
3931 checkMetro(o[0]); 3966 checkMetro(o[0]);
3932 checkMetro(o[1]); 3967 checkMetro(o[1]);
3933 } 3968 }
3934 3969
3935 buildUnnamed369() { 3970 buildUnnamed782() {
3936 var o = new core.List<api.PostalCode>(); 3971 var o = new core.List<api.PostalCode>();
3937 o.add(buildPostalCode()); 3972 o.add(buildPostalCode());
3938 o.add(buildPostalCode()); 3973 o.add(buildPostalCode());
3939 return o; 3974 return o;
3940 } 3975 }
3941 3976
3942 checkUnnamed369(core.List<api.PostalCode> o) { 3977 checkUnnamed782(core.List<api.PostalCode> o) {
3943 unittest.expect(o, unittest.hasLength(2)); 3978 unittest.expect(o, unittest.hasLength(2));
3944 checkPostalCode(o[0]); 3979 checkPostalCode(o[0]);
3945 checkPostalCode(o[1]); 3980 checkPostalCode(o[1]);
3946 } 3981 }
3947 3982
3948 buildUnnamed370() { 3983 buildUnnamed783() {
3949 var o = new core.List<api.Region>(); 3984 var o = new core.List<api.Region>();
3950 o.add(buildRegion()); 3985 o.add(buildRegion());
3951 o.add(buildRegion()); 3986 o.add(buildRegion());
3952 return o; 3987 return o;
3953 } 3988 }
3954 3989
3955 checkUnnamed370(core.List<api.Region> o) { 3990 checkUnnamed783(core.List<api.Region> o) {
3956 unittest.expect(o, unittest.hasLength(2)); 3991 unittest.expect(o, unittest.hasLength(2));
3957 checkRegion(o[0]); 3992 checkRegion(o[0]);
3958 checkRegion(o[1]); 3993 checkRegion(o[1]);
3959 } 3994 }
3960 3995
3961 core.int buildCounterGeoTargeting = 0; 3996 core.int buildCounterGeoTargeting = 0;
3962 buildGeoTargeting() { 3997 buildGeoTargeting() {
3963 var o = new api.GeoTargeting(); 3998 var o = new api.GeoTargeting();
3964 buildCounterGeoTargeting++; 3999 buildCounterGeoTargeting++;
3965 if (buildCounterGeoTargeting < 3) { 4000 if (buildCounterGeoTargeting < 3) {
3966 o.cities = buildUnnamed366(); 4001 o.cities = buildUnnamed779();
3967 o.countries = buildUnnamed367(); 4002 o.countries = buildUnnamed780();
3968 o.excludeCountries = true; 4003 o.excludeCountries = true;
3969 o.metros = buildUnnamed368(); 4004 o.metros = buildUnnamed781();
3970 o.postalCodes = buildUnnamed369(); 4005 o.postalCodes = buildUnnamed782();
3971 o.regions = buildUnnamed370(); 4006 o.regions = buildUnnamed783();
3972 } 4007 }
3973 buildCounterGeoTargeting--; 4008 buildCounterGeoTargeting--;
3974 return o; 4009 return o;
3975 } 4010 }
3976 4011
3977 checkGeoTargeting(api.GeoTargeting o) { 4012 checkGeoTargeting(api.GeoTargeting o) {
3978 buildCounterGeoTargeting++; 4013 buildCounterGeoTargeting++;
3979 if (buildCounterGeoTargeting < 3) { 4014 if (buildCounterGeoTargeting < 3) {
3980 checkUnnamed366(o.cities); 4015 checkUnnamed779(o.cities);
3981 checkUnnamed367(o.countries); 4016 checkUnnamed780(o.countries);
3982 unittest.expect(o.excludeCountries, unittest.isTrue); 4017 unittest.expect(o.excludeCountries, unittest.isTrue);
3983 checkUnnamed368(o.metros); 4018 checkUnnamed781(o.metros);
3984 checkUnnamed369(o.postalCodes); 4019 checkUnnamed782(o.postalCodes);
3985 checkUnnamed370(o.regions); 4020 checkUnnamed783(o.regions);
3986 } 4021 }
3987 buildCounterGeoTargeting--; 4022 buildCounterGeoTargeting--;
3988 } 4023 }
3989 4024
3990 core.int buildCounterKeyValueTargetingExpression = 0; 4025 core.int buildCounterKeyValueTargetingExpression = 0;
3991 buildKeyValueTargetingExpression() { 4026 buildKeyValueTargetingExpression() {
3992 var o = new api.KeyValueTargetingExpression(); 4027 var o = new api.KeyValueTargetingExpression();
3993 buildCounterKeyValueTargetingExpression++; 4028 buildCounterKeyValueTargetingExpression++;
3994 if (buildCounterKeyValueTargetingExpression < 3) { 4029 if (buildCounterKeyValueTargetingExpression < 3) {
3995 o.expression = "foo"; 4030 o.expression = "foo";
(...skipping 30 matching lines...) Expand all
4026 if (buildCounterLandingPage < 3) { 4061 if (buildCounterLandingPage < 3) {
4027 unittest.expect(o.default_, unittest.isTrue); 4062 unittest.expect(o.default_, unittest.isTrue);
4028 unittest.expect(o.id, unittest.equals('foo')); 4063 unittest.expect(o.id, unittest.equals('foo'));
4029 unittest.expect(o.kind, unittest.equals('foo')); 4064 unittest.expect(o.kind, unittest.equals('foo'));
4030 unittest.expect(o.name, unittest.equals('foo')); 4065 unittest.expect(o.name, unittest.equals('foo'));
4031 unittest.expect(o.url, unittest.equals('foo')); 4066 unittest.expect(o.url, unittest.equals('foo'));
4032 } 4067 }
4033 buildCounterLandingPage--; 4068 buildCounterLandingPage--;
4034 } 4069 }
4035 4070
4036 buildUnnamed371() { 4071 buildUnnamed784() {
4037 var o = new core.List<api.LandingPage>(); 4072 var o = new core.List<api.LandingPage>();
4038 o.add(buildLandingPage()); 4073 o.add(buildLandingPage());
4039 o.add(buildLandingPage()); 4074 o.add(buildLandingPage());
4040 return o; 4075 return o;
4041 } 4076 }
4042 4077
4043 checkUnnamed371(core.List<api.LandingPage> o) { 4078 checkUnnamed784(core.List<api.LandingPage> o) {
4044 unittest.expect(o, unittest.hasLength(2)); 4079 unittest.expect(o, unittest.hasLength(2));
4045 checkLandingPage(o[0]); 4080 checkLandingPage(o[0]);
4046 checkLandingPage(o[1]); 4081 checkLandingPage(o[1]);
4047 } 4082 }
4048 4083
4049 core.int buildCounterLandingPagesListResponse = 0; 4084 core.int buildCounterLandingPagesListResponse = 0;
4050 buildLandingPagesListResponse() { 4085 buildLandingPagesListResponse() {
4051 var o = new api.LandingPagesListResponse(); 4086 var o = new api.LandingPagesListResponse();
4052 buildCounterLandingPagesListResponse++; 4087 buildCounterLandingPagesListResponse++;
4053 if (buildCounterLandingPagesListResponse < 3) { 4088 if (buildCounterLandingPagesListResponse < 3) {
4054 o.kind = "foo"; 4089 o.kind = "foo";
4055 o.landingPages = buildUnnamed371(); 4090 o.landingPages = buildUnnamed784();
4056 } 4091 }
4057 buildCounterLandingPagesListResponse--; 4092 buildCounterLandingPagesListResponse--;
4058 return o; 4093 return o;
4059 } 4094 }
4060 4095
4061 checkLandingPagesListResponse(api.LandingPagesListResponse o) { 4096 checkLandingPagesListResponse(api.LandingPagesListResponse o) {
4062 buildCounterLandingPagesListResponse++; 4097 buildCounterLandingPagesListResponse++;
4063 if (buildCounterLandingPagesListResponse < 3) { 4098 if (buildCounterLandingPagesListResponse < 3) {
4064 unittest.expect(o.kind, unittest.equals('foo')); 4099 unittest.expect(o.kind, unittest.equals('foo'));
4065 checkUnnamed371(o.landingPages); 4100 checkUnnamed784(o.landingPages);
4066 } 4101 }
4067 buildCounterLandingPagesListResponse--; 4102 buildCounterLandingPagesListResponse--;
4068 } 4103 }
4069 4104
4070 core.int buildCounterLastModifiedInfo = 0; 4105 core.int buildCounterLastModifiedInfo = 0;
4071 buildLastModifiedInfo() { 4106 buildLastModifiedInfo() {
4072 var o = new api.LastModifiedInfo(); 4107 var o = new api.LastModifiedInfo();
4073 buildCounterLastModifiedInfo++; 4108 buildCounterLastModifiedInfo++;
4074 if (buildCounterLastModifiedInfo < 3) { 4109 if (buildCounterLastModifiedInfo < 3) {
4075 o.time = "foo"; 4110 o.time = "foo";
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
4171 unittest.expect(o.countryDartId, unittest.equals('foo')); 4206 unittest.expect(o.countryDartId, unittest.equals('foo'));
4172 unittest.expect(o.dartId, unittest.equals('foo')); 4207 unittest.expect(o.dartId, unittest.equals('foo'));
4173 unittest.expect(o.dmaId, unittest.equals('foo')); 4208 unittest.expect(o.dmaId, unittest.equals('foo'));
4174 unittest.expect(o.kind, unittest.equals('foo')); 4209 unittest.expect(o.kind, unittest.equals('foo'));
4175 unittest.expect(o.metroCode, unittest.equals('foo')); 4210 unittest.expect(o.metroCode, unittest.equals('foo'));
4176 unittest.expect(o.name, unittest.equals('foo')); 4211 unittest.expect(o.name, unittest.equals('foo'));
4177 } 4212 }
4178 buildCounterMetro--; 4213 buildCounterMetro--;
4179 } 4214 }
4180 4215
4181 buildUnnamed372() { 4216 buildUnnamed785() {
4182 var o = new core.List<api.Metro>(); 4217 var o = new core.List<api.Metro>();
4183 o.add(buildMetro()); 4218 o.add(buildMetro());
4184 o.add(buildMetro()); 4219 o.add(buildMetro());
4185 return o; 4220 return o;
4186 } 4221 }
4187 4222
4188 checkUnnamed372(core.List<api.Metro> o) { 4223 checkUnnamed785(core.List<api.Metro> o) {
4189 unittest.expect(o, unittest.hasLength(2)); 4224 unittest.expect(o, unittest.hasLength(2));
4190 checkMetro(o[0]); 4225 checkMetro(o[0]);
4191 checkMetro(o[1]); 4226 checkMetro(o[1]);
4192 } 4227 }
4193 4228
4194 core.int buildCounterMetrosListResponse = 0; 4229 core.int buildCounterMetrosListResponse = 0;
4195 buildMetrosListResponse() { 4230 buildMetrosListResponse() {
4196 var o = new api.MetrosListResponse(); 4231 var o = new api.MetrosListResponse();
4197 buildCounterMetrosListResponse++; 4232 buildCounterMetrosListResponse++;
4198 if (buildCounterMetrosListResponse < 3) { 4233 if (buildCounterMetrosListResponse < 3) {
4199 o.kind = "foo"; 4234 o.kind = "foo";
4200 o.metros = buildUnnamed372(); 4235 o.metros = buildUnnamed785();
4201 } 4236 }
4202 buildCounterMetrosListResponse--; 4237 buildCounterMetrosListResponse--;
4203 return o; 4238 return o;
4204 } 4239 }
4205 4240
4206 checkMetrosListResponse(api.MetrosListResponse o) { 4241 checkMetrosListResponse(api.MetrosListResponse o) {
4207 buildCounterMetrosListResponse++; 4242 buildCounterMetrosListResponse++;
4208 if (buildCounterMetrosListResponse < 3) { 4243 if (buildCounterMetrosListResponse < 3) {
4209 unittest.expect(o.kind, unittest.equals('foo')); 4244 unittest.expect(o.kind, unittest.equals('foo'));
4210 checkUnnamed372(o.metros); 4245 checkUnnamed785(o.metros);
4211 } 4246 }
4212 buildCounterMetrosListResponse--; 4247 buildCounterMetrosListResponse--;
4213 } 4248 }
4214 4249
4215 core.int buildCounterMobileCarrier = 0; 4250 core.int buildCounterMobileCarrier = 0;
4216 buildMobileCarrier() { 4251 buildMobileCarrier() {
4217 var o = new api.MobileCarrier(); 4252 var o = new api.MobileCarrier();
4218 buildCounterMobileCarrier++; 4253 buildCounterMobileCarrier++;
4219 if (buildCounterMobileCarrier < 3) { 4254 if (buildCounterMobileCarrier < 3) {
4220 o.countryCode = "foo"; 4255 o.countryCode = "foo";
(...skipping 11 matching lines...) Expand all
4232 if (buildCounterMobileCarrier < 3) { 4267 if (buildCounterMobileCarrier < 3) {
4233 unittest.expect(o.countryCode, unittest.equals('foo')); 4268 unittest.expect(o.countryCode, unittest.equals('foo'));
4234 unittest.expect(o.countryDartId, unittest.equals('foo')); 4269 unittest.expect(o.countryDartId, unittest.equals('foo'));
4235 unittest.expect(o.id, unittest.equals('foo')); 4270 unittest.expect(o.id, unittest.equals('foo'));
4236 unittest.expect(o.kind, unittest.equals('foo')); 4271 unittest.expect(o.kind, unittest.equals('foo'));
4237 unittest.expect(o.name, unittest.equals('foo')); 4272 unittest.expect(o.name, unittest.equals('foo'));
4238 } 4273 }
4239 buildCounterMobileCarrier--; 4274 buildCounterMobileCarrier--;
4240 } 4275 }
4241 4276
4242 buildUnnamed373() { 4277 buildUnnamed786() {
4243 var o = new core.List<api.MobileCarrier>(); 4278 var o = new core.List<api.MobileCarrier>();
4244 o.add(buildMobileCarrier()); 4279 o.add(buildMobileCarrier());
4245 o.add(buildMobileCarrier()); 4280 o.add(buildMobileCarrier());
4246 return o; 4281 return o;
4247 } 4282 }
4248 4283
4249 checkUnnamed373(core.List<api.MobileCarrier> o) { 4284 checkUnnamed786(core.List<api.MobileCarrier> o) {
4250 unittest.expect(o, unittest.hasLength(2)); 4285 unittest.expect(o, unittest.hasLength(2));
4251 checkMobileCarrier(o[0]); 4286 checkMobileCarrier(o[0]);
4252 checkMobileCarrier(o[1]); 4287 checkMobileCarrier(o[1]);
4253 } 4288 }
4254 4289
4255 core.int buildCounterMobileCarriersListResponse = 0; 4290 core.int buildCounterMobileCarriersListResponse = 0;
4256 buildMobileCarriersListResponse() { 4291 buildMobileCarriersListResponse() {
4257 var o = new api.MobileCarriersListResponse(); 4292 var o = new api.MobileCarriersListResponse();
4258 buildCounterMobileCarriersListResponse++; 4293 buildCounterMobileCarriersListResponse++;
4259 if (buildCounterMobileCarriersListResponse < 3) { 4294 if (buildCounterMobileCarriersListResponse < 3) {
4260 o.kind = "foo"; 4295 o.kind = "foo";
4261 o.mobileCarriers = buildUnnamed373(); 4296 o.mobileCarriers = buildUnnamed786();
4262 } 4297 }
4263 buildCounterMobileCarriersListResponse--; 4298 buildCounterMobileCarriersListResponse--;
4264 return o; 4299 return o;
4265 } 4300 }
4266 4301
4267 checkMobileCarriersListResponse(api.MobileCarriersListResponse o) { 4302 checkMobileCarriersListResponse(api.MobileCarriersListResponse o) {
4268 buildCounterMobileCarriersListResponse++; 4303 buildCounterMobileCarriersListResponse++;
4269 if (buildCounterMobileCarriersListResponse < 3) { 4304 if (buildCounterMobileCarriersListResponse < 3) {
4270 unittest.expect(o.kind, unittest.equals('foo')); 4305 unittest.expect(o.kind, unittest.equals('foo'));
4271 checkUnnamed373(o.mobileCarriers); 4306 checkUnnamed786(o.mobileCarriers);
4272 } 4307 }
4273 buildCounterMobileCarriersListResponse--; 4308 buildCounterMobileCarriersListResponse--;
4274 } 4309 }
4275 4310
4276 buildUnnamed374() { 4311 buildUnnamed787() {
4277 var o = new core.List<core.String>(); 4312 var o = new core.List<core.String>();
4278 o.add("foo"); 4313 o.add("foo");
4279 o.add("foo"); 4314 o.add("foo");
4280 return o; 4315 return o;
4281 } 4316 }
4282 4317
4283 checkUnnamed374(core.List<core.String> o) { 4318 checkUnnamed787(core.List<core.String> o) {
4284 unittest.expect(o, unittest.hasLength(2)); 4319 unittest.expect(o, unittest.hasLength(2));
4285 unittest.expect(o[0], unittest.equals('foo')); 4320 unittest.expect(o[0], unittest.equals('foo'));
4286 unittest.expect(o[1], unittest.equals('foo')); 4321 unittest.expect(o[1], unittest.equals('foo'));
4287 } 4322 }
4288 4323
4289 core.int buildCounterObjectFilter = 0; 4324 core.int buildCounterObjectFilter = 0;
4290 buildObjectFilter() { 4325 buildObjectFilter() {
4291 var o = new api.ObjectFilter(); 4326 var o = new api.ObjectFilter();
4292 buildCounterObjectFilter++; 4327 buildCounterObjectFilter++;
4293 if (buildCounterObjectFilter < 3) { 4328 if (buildCounterObjectFilter < 3) {
4294 o.kind = "foo"; 4329 o.kind = "foo";
4295 o.objectIds = buildUnnamed374(); 4330 o.objectIds = buildUnnamed787();
4296 o.status = "foo"; 4331 o.status = "foo";
4297 } 4332 }
4298 buildCounterObjectFilter--; 4333 buildCounterObjectFilter--;
4299 return o; 4334 return o;
4300 } 4335 }
4301 4336
4302 checkObjectFilter(api.ObjectFilter o) { 4337 checkObjectFilter(api.ObjectFilter o) {
4303 buildCounterObjectFilter++; 4338 buildCounterObjectFilter++;
4304 if (buildCounterObjectFilter < 3) { 4339 if (buildCounterObjectFilter < 3) {
4305 unittest.expect(o.kind, unittest.equals('foo')); 4340 unittest.expect(o.kind, unittest.equals('foo'));
4306 checkUnnamed374(o.objectIds); 4341 checkUnnamed787(o.objectIds);
4307 unittest.expect(o.status, unittest.equals('foo')); 4342 unittest.expect(o.status, unittest.equals('foo'));
4308 } 4343 }
4309 buildCounterObjectFilter--; 4344 buildCounterObjectFilter--;
4310 } 4345 }
4311 4346
4312 core.int buildCounterOffsetPosition = 0; 4347 core.int buildCounterOffsetPosition = 0;
4313 buildOffsetPosition() { 4348 buildOffsetPosition() {
4314 var o = new api.OffsetPosition(); 4349 var o = new api.OffsetPosition();
4315 buildCounterOffsetPosition++; 4350 buildCounterOffsetPosition++;
4316 if (buildCounterOffsetPosition < 3) { 4351 if (buildCounterOffsetPosition < 3) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
4400 unittest.expect(o.id, unittest.equals('foo')); 4435 unittest.expect(o.id, unittest.equals('foo'));
4401 unittest.expect(o.kind, unittest.equals('foo')); 4436 unittest.expect(o.kind, unittest.equals('foo'));
4402 unittest.expect(o.majorVersion, unittest.equals('foo')); 4437 unittest.expect(o.majorVersion, unittest.equals('foo'));
4403 unittest.expect(o.minorVersion, unittest.equals('foo')); 4438 unittest.expect(o.minorVersion, unittest.equals('foo'));
4404 unittest.expect(o.name, unittest.equals('foo')); 4439 unittest.expect(o.name, unittest.equals('foo'));
4405 checkOperatingSystem(o.operatingSystem); 4440 checkOperatingSystem(o.operatingSystem);
4406 } 4441 }
4407 buildCounterOperatingSystemVersion--; 4442 buildCounterOperatingSystemVersion--;
4408 } 4443 }
4409 4444
4410 buildUnnamed375() { 4445 buildUnnamed788() {
4411 var o = new core.List<api.OperatingSystemVersion>(); 4446 var o = new core.List<api.OperatingSystemVersion>();
4412 o.add(buildOperatingSystemVersion()); 4447 o.add(buildOperatingSystemVersion());
4413 o.add(buildOperatingSystemVersion()); 4448 o.add(buildOperatingSystemVersion());
4414 return o; 4449 return o;
4415 } 4450 }
4416 4451
4417 checkUnnamed375(core.List<api.OperatingSystemVersion> o) { 4452 checkUnnamed788(core.List<api.OperatingSystemVersion> o) {
4418 unittest.expect(o, unittest.hasLength(2)); 4453 unittest.expect(o, unittest.hasLength(2));
4419 checkOperatingSystemVersion(o[0]); 4454 checkOperatingSystemVersion(o[0]);
4420 checkOperatingSystemVersion(o[1]); 4455 checkOperatingSystemVersion(o[1]);
4421 } 4456 }
4422 4457
4423 core.int buildCounterOperatingSystemVersionsListResponse = 0; 4458 core.int buildCounterOperatingSystemVersionsListResponse = 0;
4424 buildOperatingSystemVersionsListResponse() { 4459 buildOperatingSystemVersionsListResponse() {
4425 var o = new api.OperatingSystemVersionsListResponse(); 4460 var o = new api.OperatingSystemVersionsListResponse();
4426 buildCounterOperatingSystemVersionsListResponse++; 4461 buildCounterOperatingSystemVersionsListResponse++;
4427 if (buildCounterOperatingSystemVersionsListResponse < 3) { 4462 if (buildCounterOperatingSystemVersionsListResponse < 3) {
4428 o.kind = "foo"; 4463 o.kind = "foo";
4429 o.operatingSystemVersions = buildUnnamed375(); 4464 o.operatingSystemVersions = buildUnnamed788();
4430 } 4465 }
4431 buildCounterOperatingSystemVersionsListResponse--; 4466 buildCounterOperatingSystemVersionsListResponse--;
4432 return o; 4467 return o;
4433 } 4468 }
4434 4469
4435 checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse o) { 4470 checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse o) {
4436 buildCounterOperatingSystemVersionsListResponse++; 4471 buildCounterOperatingSystemVersionsListResponse++;
4437 if (buildCounterOperatingSystemVersionsListResponse < 3) { 4472 if (buildCounterOperatingSystemVersionsListResponse < 3) {
4438 unittest.expect(o.kind, unittest.equals('foo')); 4473 unittest.expect(o.kind, unittest.equals('foo'));
4439 checkUnnamed375(o.operatingSystemVersions); 4474 checkUnnamed788(o.operatingSystemVersions);
4440 } 4475 }
4441 buildCounterOperatingSystemVersionsListResponse--; 4476 buildCounterOperatingSystemVersionsListResponse--;
4442 } 4477 }
4443 4478
4444 buildUnnamed376() { 4479 buildUnnamed789() {
4445 var o = new core.List<api.OperatingSystem>(); 4480 var o = new core.List<api.OperatingSystem>();
4446 o.add(buildOperatingSystem()); 4481 o.add(buildOperatingSystem());
4447 o.add(buildOperatingSystem()); 4482 o.add(buildOperatingSystem());
4448 return o; 4483 return o;
4449 } 4484 }
4450 4485
4451 checkUnnamed376(core.List<api.OperatingSystem> o) { 4486 checkUnnamed789(core.List<api.OperatingSystem> o) {
4452 unittest.expect(o, unittest.hasLength(2)); 4487 unittest.expect(o, unittest.hasLength(2));
4453 checkOperatingSystem(o[0]); 4488 checkOperatingSystem(o[0]);
4454 checkOperatingSystem(o[1]); 4489 checkOperatingSystem(o[1]);
4455 } 4490 }
4456 4491
4457 core.int buildCounterOperatingSystemsListResponse = 0; 4492 core.int buildCounterOperatingSystemsListResponse = 0;
4458 buildOperatingSystemsListResponse() { 4493 buildOperatingSystemsListResponse() {
4459 var o = new api.OperatingSystemsListResponse(); 4494 var o = new api.OperatingSystemsListResponse();
4460 buildCounterOperatingSystemsListResponse++; 4495 buildCounterOperatingSystemsListResponse++;
4461 if (buildCounterOperatingSystemsListResponse < 3) { 4496 if (buildCounterOperatingSystemsListResponse < 3) {
4462 o.kind = "foo"; 4497 o.kind = "foo";
4463 o.operatingSystems = buildUnnamed376(); 4498 o.operatingSystems = buildUnnamed789();
4464 } 4499 }
4465 buildCounterOperatingSystemsListResponse--; 4500 buildCounterOperatingSystemsListResponse--;
4466 return o; 4501 return o;
4467 } 4502 }
4468 4503
4469 checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) { 4504 checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) {
4470 buildCounterOperatingSystemsListResponse++; 4505 buildCounterOperatingSystemsListResponse++;
4471 if (buildCounterOperatingSystemsListResponse < 3) { 4506 if (buildCounterOperatingSystemsListResponse < 3) {
4472 unittest.expect(o.kind, unittest.equals('foo')); 4507 unittest.expect(o.kind, unittest.equals('foo'));
4473 checkUnnamed376(o.operatingSystems); 4508 checkUnnamed789(o.operatingSystems);
4474 } 4509 }
4475 buildCounterOperatingSystemsListResponse--; 4510 buildCounterOperatingSystemsListResponse--;
4476 } 4511 }
4477 4512
4478 core.int buildCounterOptimizationActivity = 0; 4513 core.int buildCounterOptimizationActivity = 0;
4479 buildOptimizationActivity() { 4514 buildOptimizationActivity() {
4480 var o = new api.OptimizationActivity(); 4515 var o = new api.OptimizationActivity();
4481 buildCounterOptimizationActivity++; 4516 buildCounterOptimizationActivity++;
4482 if (buildCounterOptimizationActivity < 3) { 4517 if (buildCounterOptimizationActivity < 3) {
4483 o.floodlightActivityId = "foo"; 4518 o.floodlightActivityId = "foo";
4484 o.floodlightActivityIdDimensionValue = buildDimensionValue(); 4519 o.floodlightActivityIdDimensionValue = buildDimensionValue();
4485 o.weight = 42; 4520 o.weight = 42;
4486 } 4521 }
4487 buildCounterOptimizationActivity--; 4522 buildCounterOptimizationActivity--;
4488 return o; 4523 return o;
4489 } 4524 }
4490 4525
4491 checkOptimizationActivity(api.OptimizationActivity o) { 4526 checkOptimizationActivity(api.OptimizationActivity o) {
4492 buildCounterOptimizationActivity++; 4527 buildCounterOptimizationActivity++;
4493 if (buildCounterOptimizationActivity < 3) { 4528 if (buildCounterOptimizationActivity < 3) {
4494 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); 4529 unittest.expect(o.floodlightActivityId, unittest.equals('foo'));
4495 checkDimensionValue(o.floodlightActivityIdDimensionValue); 4530 checkDimensionValue(o.floodlightActivityIdDimensionValue);
4496 unittest.expect(o.weight, unittest.equals(42)); 4531 unittest.expect(o.weight, unittest.equals(42));
4497 } 4532 }
4498 buildCounterOptimizationActivity--; 4533 buildCounterOptimizationActivity--;
4499 } 4534 }
4500 4535
4501 buildUnnamed377() { 4536 buildUnnamed790() {
4502 var o = new core.List<api.Dimension>(); 4537 var o = new core.List<api.Dimension>();
4503 o.add(buildDimension()); 4538 o.add(buildDimension());
4504 o.add(buildDimension()); 4539 o.add(buildDimension());
4505 return o; 4540 return o;
4506 } 4541 }
4507 4542
4508 checkUnnamed377(core.List<api.Dimension> o) { 4543 checkUnnamed790(core.List<api.Dimension> o) {
4509 unittest.expect(o, unittest.hasLength(2)); 4544 unittest.expect(o, unittest.hasLength(2));
4510 checkDimension(o[0]); 4545 checkDimension(o[0]);
4511 checkDimension(o[1]); 4546 checkDimension(o[1]);
4512 } 4547 }
4513 4548
4514 buildUnnamed378() { 4549 buildUnnamed791() {
4515 var o = new core.List<api.Dimension>(); 4550 var o = new core.List<api.Dimension>();
4516 o.add(buildDimension()); 4551 o.add(buildDimension());
4517 o.add(buildDimension()); 4552 o.add(buildDimension());
4518 return o; 4553 return o;
4519 } 4554 }
4520 4555
4521 checkUnnamed378(core.List<api.Dimension> o) { 4556 checkUnnamed791(core.List<api.Dimension> o) {
4522 unittest.expect(o, unittest.hasLength(2)); 4557 unittest.expect(o, unittest.hasLength(2));
4523 checkDimension(o[0]); 4558 checkDimension(o[0]);
4524 checkDimension(o[1]); 4559 checkDimension(o[1]);
4525 } 4560 }
4526 4561
4527 buildUnnamed379() { 4562 buildUnnamed792() {
4528 var o = new core.List<api.Metric>(); 4563 var o = new core.List<api.Metric>();
4529 o.add(buildMetric()); 4564 o.add(buildMetric());
4530 o.add(buildMetric()); 4565 o.add(buildMetric());
4531 return o; 4566 return o;
4532 } 4567 }
4533 4568
4534 checkUnnamed379(core.List<api.Metric> o) { 4569 checkUnnamed792(core.List<api.Metric> o) {
4535 unittest.expect(o, unittest.hasLength(2)); 4570 unittest.expect(o, unittest.hasLength(2));
4536 checkMetric(o[0]); 4571 checkMetric(o[0]);
4537 checkMetric(o[1]); 4572 checkMetric(o[1]);
4538 } 4573 }
4539 4574
4540 buildUnnamed380() { 4575 buildUnnamed793() {
4541 var o = new core.List<api.Dimension>(); 4576 var o = new core.List<api.Dimension>();
4542 o.add(buildDimension()); 4577 o.add(buildDimension());
4543 o.add(buildDimension()); 4578 o.add(buildDimension());
4544 return o; 4579 return o;
4545 } 4580 }
4546 4581
4547 checkUnnamed380(core.List<api.Dimension> o) { 4582 checkUnnamed793(core.List<api.Dimension> o) {
4548 unittest.expect(o, unittest.hasLength(2)); 4583 unittest.expect(o, unittest.hasLength(2));
4549 checkDimension(o[0]); 4584 checkDimension(o[0]);
4550 checkDimension(o[1]); 4585 checkDimension(o[1]);
4551 } 4586 }
4552 4587
4553 core.int buildCounterPathToConversionReportCompatibleFields = 0; 4588 core.int buildCounterPathToConversionReportCompatibleFields = 0;
4554 buildPathToConversionReportCompatibleFields() { 4589 buildPathToConversionReportCompatibleFields() {
4555 var o = new api.PathToConversionReportCompatibleFields(); 4590 var o = new api.PathToConversionReportCompatibleFields();
4556 buildCounterPathToConversionReportCompatibleFields++; 4591 buildCounterPathToConversionReportCompatibleFields++;
4557 if (buildCounterPathToConversionReportCompatibleFields < 3) { 4592 if (buildCounterPathToConversionReportCompatibleFields < 3) {
4558 o.conversionDimensions = buildUnnamed377(); 4593 o.conversionDimensions = buildUnnamed790();
4559 o.customFloodlightVariables = buildUnnamed378(); 4594 o.customFloodlightVariables = buildUnnamed791();
4560 o.kind = "foo"; 4595 o.kind = "foo";
4561 o.metrics = buildUnnamed379(); 4596 o.metrics = buildUnnamed792();
4562 o.perInteractionDimensions = buildUnnamed380(); 4597 o.perInteractionDimensions = buildUnnamed793();
4563 } 4598 }
4564 buildCounterPathToConversionReportCompatibleFields--; 4599 buildCounterPathToConversionReportCompatibleFields--;
4565 return o; 4600 return o;
4566 } 4601 }
4567 4602
4568 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible Fields o) { 4603 checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatible Fields o) {
4569 buildCounterPathToConversionReportCompatibleFields++; 4604 buildCounterPathToConversionReportCompatibleFields++;
4570 if (buildCounterPathToConversionReportCompatibleFields < 3) { 4605 if (buildCounterPathToConversionReportCompatibleFields < 3) {
4571 checkUnnamed377(o.conversionDimensions); 4606 checkUnnamed790(o.conversionDimensions);
4572 checkUnnamed378(o.customFloodlightVariables); 4607 checkUnnamed791(o.customFloodlightVariables);
4573 unittest.expect(o.kind, unittest.equals('foo')); 4608 unittest.expect(o.kind, unittest.equals('foo'));
4574 checkUnnamed379(o.metrics); 4609 checkUnnamed792(o.metrics);
4575 checkUnnamed380(o.perInteractionDimensions); 4610 checkUnnamed793(o.perInteractionDimensions);
4576 } 4611 }
4577 buildCounterPathToConversionReportCompatibleFields--; 4612 buildCounterPathToConversionReportCompatibleFields--;
4578 } 4613 }
4579 4614
4580 buildUnnamed381() { 4615 buildUnnamed794() {
4581 var o = new core.List<core.String>(); 4616 var o = new core.List<core.String>();
4582 o.add("foo"); 4617 o.add("foo");
4583 o.add("foo"); 4618 o.add("foo");
4584 return o; 4619 return o;
4585 } 4620 }
4586 4621
4587 checkUnnamed381(core.List<core.String> o) { 4622 checkUnnamed794(core.List<core.String> o) {
4588 unittest.expect(o, unittest.hasLength(2)); 4623 unittest.expect(o, unittest.hasLength(2));
4589 unittest.expect(o[0], unittest.equals('foo')); 4624 unittest.expect(o[0], unittest.equals('foo'));
4590 unittest.expect(o[1], unittest.equals('foo')); 4625 unittest.expect(o[1], unittest.equals('foo'));
4591 } 4626 }
4592 4627
4593 core.int buildCounterPlacement = 0; 4628 core.int buildCounterPlacement = 0;
4594 buildPlacement() { 4629 buildPlacement() {
4595 var o = new api.Placement(); 4630 var o = new api.Placement();
4596 buildCounterPlacement++; 4631 buildCounterPlacement++;
4597 if (buildCounterPlacement < 3) { 4632 if (buildCounterPlacement < 3) {
(...skipping 24 matching lines...) Expand all
4622 o.placementStrategyId = "foo"; 4657 o.placementStrategyId = "foo";
4623 o.pricingSchedule = buildPricingSchedule(); 4658 o.pricingSchedule = buildPricingSchedule();
4624 o.primary = true; 4659 o.primary = true;
4625 o.publisherUpdateInfo = buildLastModifiedInfo(); 4660 o.publisherUpdateInfo = buildLastModifiedInfo();
4626 o.siteId = "foo"; 4661 o.siteId = "foo";
4627 o.siteIdDimensionValue = buildDimensionValue(); 4662 o.siteIdDimensionValue = buildDimensionValue();
4628 o.size = buildSize(); 4663 o.size = buildSize();
4629 o.sslRequired = true; 4664 o.sslRequired = true;
4630 o.status = "foo"; 4665 o.status = "foo";
4631 o.subaccountId = "foo"; 4666 o.subaccountId = "foo";
4632 o.tagFormats = buildUnnamed381(); 4667 o.tagFormats = buildUnnamed794();
4633 o.tagSetting = buildTagSetting(); 4668 o.tagSetting = buildTagSetting();
4634 } 4669 }
4635 buildCounterPlacement--; 4670 buildCounterPlacement--;
4636 return o; 4671 return o;
4637 } 4672 }
4638 4673
4639 checkPlacement(api.Placement o) { 4674 checkPlacement(api.Placement o) {
4640 buildCounterPlacement++; 4675 buildCounterPlacement++;
4641 if (buildCounterPlacement < 3) { 4676 if (buildCounterPlacement < 3) {
4642 unittest.expect(o.accountId, unittest.equals('foo')); 4677 unittest.expect(o.accountId, unittest.equals('foo'));
(...skipping 23 matching lines...) Expand all
4666 unittest.expect(o.placementStrategyId, unittest.equals('foo')); 4701 unittest.expect(o.placementStrategyId, unittest.equals('foo'));
4667 checkPricingSchedule(o.pricingSchedule); 4702 checkPricingSchedule(o.pricingSchedule);
4668 unittest.expect(o.primary, unittest.isTrue); 4703 unittest.expect(o.primary, unittest.isTrue);
4669 checkLastModifiedInfo(o.publisherUpdateInfo); 4704 checkLastModifiedInfo(o.publisherUpdateInfo);
4670 unittest.expect(o.siteId, unittest.equals('foo')); 4705 unittest.expect(o.siteId, unittest.equals('foo'));
4671 checkDimensionValue(o.siteIdDimensionValue); 4706 checkDimensionValue(o.siteIdDimensionValue);
4672 checkSize(o.size); 4707 checkSize(o.size);
4673 unittest.expect(o.sslRequired, unittest.isTrue); 4708 unittest.expect(o.sslRequired, unittest.isTrue);
4674 unittest.expect(o.status, unittest.equals('foo')); 4709 unittest.expect(o.status, unittest.equals('foo'));
4675 unittest.expect(o.subaccountId, unittest.equals('foo')); 4710 unittest.expect(o.subaccountId, unittest.equals('foo'));
4676 checkUnnamed381(o.tagFormats); 4711 checkUnnamed794(o.tagFormats);
4677 checkTagSetting(o.tagSetting); 4712 checkTagSetting(o.tagSetting);
4678 } 4713 }
4679 buildCounterPlacement--; 4714 buildCounterPlacement--;
4680 } 4715 }
4681 4716
4682 core.int buildCounterPlacementAssignment = 0; 4717 core.int buildCounterPlacementAssignment = 0;
4683 buildPlacementAssignment() { 4718 buildPlacementAssignment() {
4684 var o = new api.PlacementAssignment(); 4719 var o = new api.PlacementAssignment();
4685 buildCounterPlacementAssignment++; 4720 buildCounterPlacementAssignment++;
4686 if (buildCounterPlacementAssignment < 3) { 4721 if (buildCounterPlacementAssignment < 3) {
(...skipping 10 matching lines...) Expand all
4697 buildCounterPlacementAssignment++; 4732 buildCounterPlacementAssignment++;
4698 if (buildCounterPlacementAssignment < 3) { 4733 if (buildCounterPlacementAssignment < 3) {
4699 unittest.expect(o.active, unittest.isTrue); 4734 unittest.expect(o.active, unittest.isTrue);
4700 unittest.expect(o.placementId, unittest.equals('foo')); 4735 unittest.expect(o.placementId, unittest.equals('foo'));
4701 checkDimensionValue(o.placementIdDimensionValue); 4736 checkDimensionValue(o.placementIdDimensionValue);
4702 unittest.expect(o.sslRequired, unittest.isTrue); 4737 unittest.expect(o.sslRequired, unittest.isTrue);
4703 } 4738 }
4704 buildCounterPlacementAssignment--; 4739 buildCounterPlacementAssignment--;
4705 } 4740 }
4706 4741
4707 buildUnnamed382() { 4742 buildUnnamed795() {
4708 var o = new core.List<core.String>(); 4743 var o = new core.List<core.String>();
4709 o.add("foo"); 4744 o.add("foo");
4710 o.add("foo"); 4745 o.add("foo");
4711 return o; 4746 return o;
4712 } 4747 }
4713 4748
4714 checkUnnamed382(core.List<core.String> o) { 4749 checkUnnamed795(core.List<core.String> o) {
4715 unittest.expect(o, unittest.hasLength(2)); 4750 unittest.expect(o, unittest.hasLength(2));
4716 unittest.expect(o[0], unittest.equals('foo')); 4751 unittest.expect(o[0], unittest.equals('foo'));
4717 unittest.expect(o[1], unittest.equals('foo')); 4752 unittest.expect(o[1], unittest.equals('foo'));
4718 } 4753 }
4719 4754
4720 core.int buildCounterPlacementGroup = 0; 4755 core.int buildCounterPlacementGroup = 0;
4721 buildPlacementGroup() { 4756 buildPlacementGroup() {
4722 var o = new api.PlacementGroup(); 4757 var o = new api.PlacementGroup();
4723 buildCounterPlacementGroup++; 4758 buildCounterPlacementGroup++;
4724 if (buildCounterPlacementGroup < 3) { 4759 if (buildCounterPlacementGroup < 3) {
4725 o.accountId = "foo"; 4760 o.accountId = "foo";
4726 o.advertiserId = "foo"; 4761 o.advertiserId = "foo";
4727 o.advertiserIdDimensionValue = buildDimensionValue(); 4762 o.advertiserIdDimensionValue = buildDimensionValue();
4728 o.archived = true; 4763 o.archived = true;
4729 o.campaignId = "foo"; 4764 o.campaignId = "foo";
4730 o.campaignIdDimensionValue = buildDimensionValue(); 4765 o.campaignIdDimensionValue = buildDimensionValue();
4731 o.childPlacementIds = buildUnnamed382(); 4766 o.childPlacementIds = buildUnnamed795();
4732 o.comment = "foo"; 4767 o.comment = "foo";
4733 o.contentCategoryId = "foo"; 4768 o.contentCategoryId = "foo";
4734 o.createInfo = buildLastModifiedInfo(); 4769 o.createInfo = buildLastModifiedInfo();
4735 o.directorySiteId = "foo"; 4770 o.directorySiteId = "foo";
4736 o.directorySiteIdDimensionValue = buildDimensionValue(); 4771 o.directorySiteIdDimensionValue = buildDimensionValue();
4737 o.externalId = "foo"; 4772 o.externalId = "foo";
4738 o.id = "foo"; 4773 o.id = "foo";
4739 o.idDimensionValue = buildDimensionValue(); 4774 o.idDimensionValue = buildDimensionValue();
4740 o.kind = "foo"; 4775 o.kind = "foo";
4741 o.lastModifiedInfo = buildLastModifiedInfo(); 4776 o.lastModifiedInfo = buildLastModifiedInfo();
(...skipping 14 matching lines...) Expand all
4756 4791
4757 checkPlacementGroup(api.PlacementGroup o) { 4792 checkPlacementGroup(api.PlacementGroup o) {
4758 buildCounterPlacementGroup++; 4793 buildCounterPlacementGroup++;
4759 if (buildCounterPlacementGroup < 3) { 4794 if (buildCounterPlacementGroup < 3) {
4760 unittest.expect(o.accountId, unittest.equals('foo')); 4795 unittest.expect(o.accountId, unittest.equals('foo'));
4761 unittest.expect(o.advertiserId, unittest.equals('foo')); 4796 unittest.expect(o.advertiserId, unittest.equals('foo'));
4762 checkDimensionValue(o.advertiserIdDimensionValue); 4797 checkDimensionValue(o.advertiserIdDimensionValue);
4763 unittest.expect(o.archived, unittest.isTrue); 4798 unittest.expect(o.archived, unittest.isTrue);
4764 unittest.expect(o.campaignId, unittest.equals('foo')); 4799 unittest.expect(o.campaignId, unittest.equals('foo'));
4765 checkDimensionValue(o.campaignIdDimensionValue); 4800 checkDimensionValue(o.campaignIdDimensionValue);
4766 checkUnnamed382(o.childPlacementIds); 4801 checkUnnamed795(o.childPlacementIds);
4767 unittest.expect(o.comment, unittest.equals('foo')); 4802 unittest.expect(o.comment, unittest.equals('foo'));
4768 unittest.expect(o.contentCategoryId, unittest.equals('foo')); 4803 unittest.expect(o.contentCategoryId, unittest.equals('foo'));
4769 checkLastModifiedInfo(o.createInfo); 4804 checkLastModifiedInfo(o.createInfo);
4770 unittest.expect(o.directorySiteId, unittest.equals('foo')); 4805 unittest.expect(o.directorySiteId, unittest.equals('foo'));
4771 checkDimensionValue(o.directorySiteIdDimensionValue); 4806 checkDimensionValue(o.directorySiteIdDimensionValue);
4772 unittest.expect(o.externalId, unittest.equals('foo')); 4807 unittest.expect(o.externalId, unittest.equals('foo'));
4773 unittest.expect(o.id, unittest.equals('foo')); 4808 unittest.expect(o.id, unittest.equals('foo'));
4774 checkDimensionValue(o.idDimensionValue); 4809 checkDimensionValue(o.idDimensionValue);
4775 unittest.expect(o.kind, unittest.equals('foo')); 4810 unittest.expect(o.kind, unittest.equals('foo'));
4776 checkLastModifiedInfo(o.lastModifiedInfo); 4811 checkLastModifiedInfo(o.lastModifiedInfo);
4777 unittest.expect(o.name, unittest.equals('foo')); 4812 unittest.expect(o.name, unittest.equals('foo'));
4778 unittest.expect(o.placementGroupType, unittest.equals('foo')); 4813 unittest.expect(o.placementGroupType, unittest.equals('foo'));
4779 unittest.expect(o.placementStrategyId, unittest.equals('foo')); 4814 unittest.expect(o.placementStrategyId, unittest.equals('foo'));
4780 checkPricingSchedule(o.pricingSchedule); 4815 checkPricingSchedule(o.pricingSchedule);
4781 unittest.expect(o.primaryPlacementId, unittest.equals('foo')); 4816 unittest.expect(o.primaryPlacementId, unittest.equals('foo'));
4782 checkDimensionValue(o.primaryPlacementIdDimensionValue); 4817 checkDimensionValue(o.primaryPlacementIdDimensionValue);
4783 checkProgrammaticSetting(o.programmaticSetting); 4818 checkProgrammaticSetting(o.programmaticSetting);
4784 unittest.expect(o.siteId, unittest.equals('foo')); 4819 unittest.expect(o.siteId, unittest.equals('foo'));
4785 checkDimensionValue(o.siteIdDimensionValue); 4820 checkDimensionValue(o.siteIdDimensionValue);
4786 unittest.expect(o.subaccountId, unittest.equals('foo')); 4821 unittest.expect(o.subaccountId, unittest.equals('foo'));
4787 } 4822 }
4788 buildCounterPlacementGroup--; 4823 buildCounterPlacementGroup--;
4789 } 4824 }
4790 4825
4791 buildUnnamed383() { 4826 buildUnnamed796() {
4792 var o = new core.List<api.PlacementGroup>(); 4827 var o = new core.List<api.PlacementGroup>();
4793 o.add(buildPlacementGroup()); 4828 o.add(buildPlacementGroup());
4794 o.add(buildPlacementGroup()); 4829 o.add(buildPlacementGroup());
4795 return o; 4830 return o;
4796 } 4831 }
4797 4832
4798 checkUnnamed383(core.List<api.PlacementGroup> o) { 4833 checkUnnamed796(core.List<api.PlacementGroup> o) {
4799 unittest.expect(o, unittest.hasLength(2)); 4834 unittest.expect(o, unittest.hasLength(2));
4800 checkPlacementGroup(o[0]); 4835 checkPlacementGroup(o[0]);
4801 checkPlacementGroup(o[1]); 4836 checkPlacementGroup(o[1]);
4802 } 4837 }
4803 4838
4804 core.int buildCounterPlacementGroupsListResponse = 0; 4839 core.int buildCounterPlacementGroupsListResponse = 0;
4805 buildPlacementGroupsListResponse() { 4840 buildPlacementGroupsListResponse() {
4806 var o = new api.PlacementGroupsListResponse(); 4841 var o = new api.PlacementGroupsListResponse();
4807 buildCounterPlacementGroupsListResponse++; 4842 buildCounterPlacementGroupsListResponse++;
4808 if (buildCounterPlacementGroupsListResponse < 3) { 4843 if (buildCounterPlacementGroupsListResponse < 3) {
4809 o.kind = "foo"; 4844 o.kind = "foo";
4810 o.nextPageToken = "foo"; 4845 o.nextPageToken = "foo";
4811 o.placementGroups = buildUnnamed383(); 4846 o.placementGroups = buildUnnamed796();
4812 } 4847 }
4813 buildCounterPlacementGroupsListResponse--; 4848 buildCounterPlacementGroupsListResponse--;
4814 return o; 4849 return o;
4815 } 4850 }
4816 4851
4817 checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) { 4852 checkPlacementGroupsListResponse(api.PlacementGroupsListResponse o) {
4818 buildCounterPlacementGroupsListResponse++; 4853 buildCounterPlacementGroupsListResponse++;
4819 if (buildCounterPlacementGroupsListResponse < 3) { 4854 if (buildCounterPlacementGroupsListResponse < 3) {
4820 unittest.expect(o.kind, unittest.equals('foo')); 4855 unittest.expect(o.kind, unittest.equals('foo'));
4821 unittest.expect(o.nextPageToken, unittest.equals('foo')); 4856 unittest.expect(o.nextPageToken, unittest.equals('foo'));
4822 checkUnnamed383(o.placementGroups); 4857 checkUnnamed796(o.placementGroups);
4823 } 4858 }
4824 buildCounterPlacementGroupsListResponse--; 4859 buildCounterPlacementGroupsListResponse--;
4825 } 4860 }
4826 4861
4827 buildUnnamed384() { 4862 buildUnnamed797() {
4828 var o = new core.List<api.PlacementStrategy>(); 4863 var o = new core.List<api.PlacementStrategy>();
4829 o.add(buildPlacementStrategy()); 4864 o.add(buildPlacementStrategy());
4830 o.add(buildPlacementStrategy()); 4865 o.add(buildPlacementStrategy());
4831 return o; 4866 return o;
4832 } 4867 }
4833 4868
4834 checkUnnamed384(core.List<api.PlacementStrategy> o) { 4869 checkUnnamed797(core.List<api.PlacementStrategy> o) {
4835 unittest.expect(o, unittest.hasLength(2)); 4870 unittest.expect(o, unittest.hasLength(2));
4836 checkPlacementStrategy(o[0]); 4871 checkPlacementStrategy(o[0]);
4837 checkPlacementStrategy(o[1]); 4872 checkPlacementStrategy(o[1]);
4838 } 4873 }
4839 4874
4840 core.int buildCounterPlacementStrategiesListResponse = 0; 4875 core.int buildCounterPlacementStrategiesListResponse = 0;
4841 buildPlacementStrategiesListResponse() { 4876 buildPlacementStrategiesListResponse() {
4842 var o = new api.PlacementStrategiesListResponse(); 4877 var o = new api.PlacementStrategiesListResponse();
4843 buildCounterPlacementStrategiesListResponse++; 4878 buildCounterPlacementStrategiesListResponse++;
4844 if (buildCounterPlacementStrategiesListResponse < 3) { 4879 if (buildCounterPlacementStrategiesListResponse < 3) {
4845 o.kind = "foo"; 4880 o.kind = "foo";
4846 o.nextPageToken = "foo"; 4881 o.nextPageToken = "foo";
4847 o.placementStrategies = buildUnnamed384(); 4882 o.placementStrategies = buildUnnamed797();
4848 } 4883 }
4849 buildCounterPlacementStrategiesListResponse--; 4884 buildCounterPlacementStrategiesListResponse--;
4850 return o; 4885 return o;
4851 } 4886 }
4852 4887
4853 checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) { 4888 checkPlacementStrategiesListResponse(api.PlacementStrategiesListResponse o) {
4854 buildCounterPlacementStrategiesListResponse++; 4889 buildCounterPlacementStrategiesListResponse++;
4855 if (buildCounterPlacementStrategiesListResponse < 3) { 4890 if (buildCounterPlacementStrategiesListResponse < 3) {
4856 unittest.expect(o.kind, unittest.equals('foo')); 4891 unittest.expect(o.kind, unittest.equals('foo'));
4857 unittest.expect(o.nextPageToken, unittest.equals('foo')); 4892 unittest.expect(o.nextPageToken, unittest.equals('foo'));
4858 checkUnnamed384(o.placementStrategies); 4893 checkUnnamed797(o.placementStrategies);
4859 } 4894 }
4860 buildCounterPlacementStrategiesListResponse--; 4895 buildCounterPlacementStrategiesListResponse--;
4861 } 4896 }
4862 4897
4863 core.int buildCounterPlacementStrategy = 0; 4898 core.int buildCounterPlacementStrategy = 0;
4864 buildPlacementStrategy() { 4899 buildPlacementStrategy() {
4865 var o = new api.PlacementStrategy(); 4900 var o = new api.PlacementStrategy();
4866 buildCounterPlacementStrategy++; 4901 buildCounterPlacementStrategy++;
4867 if (buildCounterPlacementStrategy < 3) { 4902 if (buildCounterPlacementStrategy < 3) {
4868 o.accountId = "foo"; 4903 o.accountId = "foo";
4869 o.id = "foo"; 4904 o.id = "foo";
4870 o.kind = "foo"; 4905 o.kind = "foo";
4871 o.name = "foo"; 4906 o.name = "foo";
4872 } 4907 }
4873 buildCounterPlacementStrategy--; 4908 buildCounterPlacementStrategy--;
4874 return o; 4909 return o;
4875 } 4910 }
4876 4911
4877 checkPlacementStrategy(api.PlacementStrategy o) { 4912 checkPlacementStrategy(api.PlacementStrategy o) {
4878 buildCounterPlacementStrategy++; 4913 buildCounterPlacementStrategy++;
4879 if (buildCounterPlacementStrategy < 3) { 4914 if (buildCounterPlacementStrategy < 3) {
4880 unittest.expect(o.accountId, unittest.equals('foo')); 4915 unittest.expect(o.accountId, unittest.equals('foo'));
4881 unittest.expect(o.id, unittest.equals('foo')); 4916 unittest.expect(o.id, unittest.equals('foo'));
4882 unittest.expect(o.kind, unittest.equals('foo')); 4917 unittest.expect(o.kind, unittest.equals('foo'));
4883 unittest.expect(o.name, unittest.equals('foo')); 4918 unittest.expect(o.name, unittest.equals('foo'));
4884 } 4919 }
4885 buildCounterPlacementStrategy--; 4920 buildCounterPlacementStrategy--;
4886 } 4921 }
4887 4922
4888 buildUnnamed385() { 4923 buildUnnamed798() {
4889 var o = new core.List<api.TagData>(); 4924 var o = new core.List<api.TagData>();
4890 o.add(buildTagData()); 4925 o.add(buildTagData());
4891 o.add(buildTagData()); 4926 o.add(buildTagData());
4892 return o; 4927 return o;
4893 } 4928 }
4894 4929
4895 checkUnnamed385(core.List<api.TagData> o) { 4930 checkUnnamed798(core.List<api.TagData> o) {
4896 unittest.expect(o, unittest.hasLength(2)); 4931 unittest.expect(o, unittest.hasLength(2));
4897 checkTagData(o[0]); 4932 checkTagData(o[0]);
4898 checkTagData(o[1]); 4933 checkTagData(o[1]);
4899 } 4934 }
4900 4935
4901 core.int buildCounterPlacementTag = 0; 4936 core.int buildCounterPlacementTag = 0;
4902 buildPlacementTag() { 4937 buildPlacementTag() {
4903 var o = new api.PlacementTag(); 4938 var o = new api.PlacementTag();
4904 buildCounterPlacementTag++; 4939 buildCounterPlacementTag++;
4905 if (buildCounterPlacementTag < 3) { 4940 if (buildCounterPlacementTag < 3) {
4906 o.placementId = "foo"; 4941 o.placementId = "foo";
4907 o.tagDatas = buildUnnamed385(); 4942 o.tagDatas = buildUnnamed798();
4908 } 4943 }
4909 buildCounterPlacementTag--; 4944 buildCounterPlacementTag--;
4910 return o; 4945 return o;
4911 } 4946 }
4912 4947
4913 checkPlacementTag(api.PlacementTag o) { 4948 checkPlacementTag(api.PlacementTag o) {
4914 buildCounterPlacementTag++; 4949 buildCounterPlacementTag++;
4915 if (buildCounterPlacementTag < 3) { 4950 if (buildCounterPlacementTag < 3) {
4916 unittest.expect(o.placementId, unittest.equals('foo')); 4951 unittest.expect(o.placementId, unittest.equals('foo'));
4917 checkUnnamed385(o.tagDatas); 4952 checkUnnamed798(o.tagDatas);
4918 } 4953 }
4919 buildCounterPlacementTag--; 4954 buildCounterPlacementTag--;
4920 } 4955 }
4921 4956
4922 buildUnnamed386() { 4957 buildUnnamed799() {
4923 var o = new core.List<api.PlacementTag>(); 4958 var o = new core.List<api.PlacementTag>();
4924 o.add(buildPlacementTag()); 4959 o.add(buildPlacementTag());
4925 o.add(buildPlacementTag()); 4960 o.add(buildPlacementTag());
4926 return o; 4961 return o;
4927 } 4962 }
4928 4963
4929 checkUnnamed386(core.List<api.PlacementTag> o) { 4964 checkUnnamed799(core.List<api.PlacementTag> o) {
4930 unittest.expect(o, unittest.hasLength(2)); 4965 unittest.expect(o, unittest.hasLength(2));
4931 checkPlacementTag(o[0]); 4966 checkPlacementTag(o[0]);
4932 checkPlacementTag(o[1]); 4967 checkPlacementTag(o[1]);
4933 } 4968 }
4934 4969
4935 core.int buildCounterPlacementsGenerateTagsResponse = 0; 4970 core.int buildCounterPlacementsGenerateTagsResponse = 0;
4936 buildPlacementsGenerateTagsResponse() { 4971 buildPlacementsGenerateTagsResponse() {
4937 var o = new api.PlacementsGenerateTagsResponse(); 4972 var o = new api.PlacementsGenerateTagsResponse();
4938 buildCounterPlacementsGenerateTagsResponse++; 4973 buildCounterPlacementsGenerateTagsResponse++;
4939 if (buildCounterPlacementsGenerateTagsResponse < 3) { 4974 if (buildCounterPlacementsGenerateTagsResponse < 3) {
4940 o.kind = "foo"; 4975 o.kind = "foo";
4941 o.placementTags = buildUnnamed386(); 4976 o.placementTags = buildUnnamed799();
4942 } 4977 }
4943 buildCounterPlacementsGenerateTagsResponse--; 4978 buildCounterPlacementsGenerateTagsResponse--;
4944 return o; 4979 return o;
4945 } 4980 }
4946 4981
4947 checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) { 4982 checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) {
4948 buildCounterPlacementsGenerateTagsResponse++; 4983 buildCounterPlacementsGenerateTagsResponse++;
4949 if (buildCounterPlacementsGenerateTagsResponse < 3) { 4984 if (buildCounterPlacementsGenerateTagsResponse < 3) {
4950 unittest.expect(o.kind, unittest.equals('foo')); 4985 unittest.expect(o.kind, unittest.equals('foo'));
4951 checkUnnamed386(o.placementTags); 4986 checkUnnamed799(o.placementTags);
4952 } 4987 }
4953 buildCounterPlacementsGenerateTagsResponse--; 4988 buildCounterPlacementsGenerateTagsResponse--;
4954 } 4989 }
4955 4990
4956 buildUnnamed387() { 4991 buildUnnamed800() {
4957 var o = new core.List<api.Placement>(); 4992 var o = new core.List<api.Placement>();
4958 o.add(buildPlacement()); 4993 o.add(buildPlacement());
4959 o.add(buildPlacement()); 4994 o.add(buildPlacement());
4960 return o; 4995 return o;
4961 } 4996 }
4962 4997
4963 checkUnnamed387(core.List<api.Placement> o) { 4998 checkUnnamed800(core.List<api.Placement> o) {
4964 unittest.expect(o, unittest.hasLength(2)); 4999 unittest.expect(o, unittest.hasLength(2));
4965 checkPlacement(o[0]); 5000 checkPlacement(o[0]);
4966 checkPlacement(o[1]); 5001 checkPlacement(o[1]);
4967 } 5002 }
4968 5003
4969 core.int buildCounterPlacementsListResponse = 0; 5004 core.int buildCounterPlacementsListResponse = 0;
4970 buildPlacementsListResponse() { 5005 buildPlacementsListResponse() {
4971 var o = new api.PlacementsListResponse(); 5006 var o = new api.PlacementsListResponse();
4972 buildCounterPlacementsListResponse++; 5007 buildCounterPlacementsListResponse++;
4973 if (buildCounterPlacementsListResponse < 3) { 5008 if (buildCounterPlacementsListResponse < 3) {
4974 o.kind = "foo"; 5009 o.kind = "foo";
4975 o.nextPageToken = "foo"; 5010 o.nextPageToken = "foo";
4976 o.placements = buildUnnamed387(); 5011 o.placements = buildUnnamed800();
4977 } 5012 }
4978 buildCounterPlacementsListResponse--; 5013 buildCounterPlacementsListResponse--;
4979 return o; 5014 return o;
4980 } 5015 }
4981 5016
4982 checkPlacementsListResponse(api.PlacementsListResponse o) { 5017 checkPlacementsListResponse(api.PlacementsListResponse o) {
4983 buildCounterPlacementsListResponse++; 5018 buildCounterPlacementsListResponse++;
4984 if (buildCounterPlacementsListResponse < 3) { 5019 if (buildCounterPlacementsListResponse < 3) {
4985 unittest.expect(o.kind, unittest.equals('foo')); 5020 unittest.expect(o.kind, unittest.equals('foo'));
4986 unittest.expect(o.nextPageToken, unittest.equals('foo')); 5021 unittest.expect(o.nextPageToken, unittest.equals('foo'));
4987 checkUnnamed387(o.placements); 5022 checkUnnamed800(o.placements);
4988 } 5023 }
4989 buildCounterPlacementsListResponse--; 5024 buildCounterPlacementsListResponse--;
4990 } 5025 }
4991 5026
4992 core.int buildCounterPlatformType = 0; 5027 core.int buildCounterPlatformType = 0;
4993 buildPlatformType() { 5028 buildPlatformType() {
4994 var o = new api.PlatformType(); 5029 var o = new api.PlatformType();
4995 buildCounterPlatformType++; 5030 buildCounterPlatformType++;
4996 if (buildCounterPlatformType < 3) { 5031 if (buildCounterPlatformType < 3) {
4997 o.id = "foo"; 5032 o.id = "foo";
4998 o.kind = "foo"; 5033 o.kind = "foo";
4999 o.name = "foo"; 5034 o.name = "foo";
5000 } 5035 }
5001 buildCounterPlatformType--; 5036 buildCounterPlatformType--;
5002 return o; 5037 return o;
5003 } 5038 }
5004 5039
5005 checkPlatformType(api.PlatformType o) { 5040 checkPlatformType(api.PlatformType o) {
5006 buildCounterPlatformType++; 5041 buildCounterPlatformType++;
5007 if (buildCounterPlatformType < 3) { 5042 if (buildCounterPlatformType < 3) {
5008 unittest.expect(o.id, unittest.equals('foo')); 5043 unittest.expect(o.id, unittest.equals('foo'));
5009 unittest.expect(o.kind, unittest.equals('foo')); 5044 unittest.expect(o.kind, unittest.equals('foo'));
5010 unittest.expect(o.name, unittest.equals('foo')); 5045 unittest.expect(o.name, unittest.equals('foo'));
5011 } 5046 }
5012 buildCounterPlatformType--; 5047 buildCounterPlatformType--;
5013 } 5048 }
5014 5049
5015 buildUnnamed388() { 5050 buildUnnamed801() {
5016 var o = new core.List<api.PlatformType>(); 5051 var o = new core.List<api.PlatformType>();
5017 o.add(buildPlatformType()); 5052 o.add(buildPlatformType());
5018 o.add(buildPlatformType()); 5053 o.add(buildPlatformType());
5019 return o; 5054 return o;
5020 } 5055 }
5021 5056
5022 checkUnnamed388(core.List<api.PlatformType> o) { 5057 checkUnnamed801(core.List<api.PlatformType> o) {
5023 unittest.expect(o, unittest.hasLength(2)); 5058 unittest.expect(o, unittest.hasLength(2));
5024 checkPlatformType(o[0]); 5059 checkPlatformType(o[0]);
5025 checkPlatformType(o[1]); 5060 checkPlatformType(o[1]);
5026 } 5061 }
5027 5062
5028 core.int buildCounterPlatformTypesListResponse = 0; 5063 core.int buildCounterPlatformTypesListResponse = 0;
5029 buildPlatformTypesListResponse() { 5064 buildPlatformTypesListResponse() {
5030 var o = new api.PlatformTypesListResponse(); 5065 var o = new api.PlatformTypesListResponse();
5031 buildCounterPlatformTypesListResponse++; 5066 buildCounterPlatformTypesListResponse++;
5032 if (buildCounterPlatformTypesListResponse < 3) { 5067 if (buildCounterPlatformTypesListResponse < 3) {
5033 o.kind = "foo"; 5068 o.kind = "foo";
5034 o.platformTypes = buildUnnamed388(); 5069 o.platformTypes = buildUnnamed801();
5035 } 5070 }
5036 buildCounterPlatformTypesListResponse--; 5071 buildCounterPlatformTypesListResponse--;
5037 return o; 5072 return o;
5038 } 5073 }
5039 5074
5040 checkPlatformTypesListResponse(api.PlatformTypesListResponse o) { 5075 checkPlatformTypesListResponse(api.PlatformTypesListResponse o) {
5041 buildCounterPlatformTypesListResponse++; 5076 buildCounterPlatformTypesListResponse++;
5042 if (buildCounterPlatformTypesListResponse < 3) { 5077 if (buildCounterPlatformTypesListResponse < 3) {
5043 unittest.expect(o.kind, unittest.equals('foo')); 5078 unittest.expect(o.kind, unittest.equals('foo'));
5044 checkUnnamed388(o.platformTypes); 5079 checkUnnamed801(o.platformTypes);
5045 } 5080 }
5046 buildCounterPlatformTypesListResponse--; 5081 buildCounterPlatformTypesListResponse--;
5047 } 5082 }
5048 5083
5049 core.int buildCounterPopupWindowProperties = 0; 5084 core.int buildCounterPopupWindowProperties = 0;
5050 buildPopupWindowProperties() { 5085 buildPopupWindowProperties() {
5051 var o = new api.PopupWindowProperties(); 5086 var o = new api.PopupWindowProperties();
5052 buildCounterPopupWindowProperties++; 5087 buildCounterPopupWindowProperties++;
5053 if (buildCounterPopupWindowProperties < 3) { 5088 if (buildCounterPopupWindowProperties < 3) {
5054 o.dimension = buildSize(); 5089 o.dimension = buildSize();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
5099 buildCounterPostalCode++; 5134 buildCounterPostalCode++;
5100 if (buildCounterPostalCode < 3) { 5135 if (buildCounterPostalCode < 3) {
5101 unittest.expect(o.countryCode, unittest.equals('foo')); 5136 unittest.expect(o.countryCode, unittest.equals('foo'));
5102 unittest.expect(o.countryDartId, unittest.equals('foo')); 5137 unittest.expect(o.countryDartId, unittest.equals('foo'));
5103 unittest.expect(o.id, unittest.equals('foo')); 5138 unittest.expect(o.id, unittest.equals('foo'));
5104 unittest.expect(o.kind, unittest.equals('foo')); 5139 unittest.expect(o.kind, unittest.equals('foo'));
5105 } 5140 }
5106 buildCounterPostalCode--; 5141 buildCounterPostalCode--;
5107 } 5142 }
5108 5143
5109 buildUnnamed389() { 5144 buildUnnamed802() {
5110 var o = new core.List<api.PostalCode>(); 5145 var o = new core.List<api.PostalCode>();
5111 o.add(buildPostalCode()); 5146 o.add(buildPostalCode());
5112 o.add(buildPostalCode()); 5147 o.add(buildPostalCode());
5113 return o; 5148 return o;
5114 } 5149 }
5115 5150
5116 checkUnnamed389(core.List<api.PostalCode> o) { 5151 checkUnnamed802(core.List<api.PostalCode> o) {
5117 unittest.expect(o, unittest.hasLength(2)); 5152 unittest.expect(o, unittest.hasLength(2));
5118 checkPostalCode(o[0]); 5153 checkPostalCode(o[0]);
5119 checkPostalCode(o[1]); 5154 checkPostalCode(o[1]);
5120 } 5155 }
5121 5156
5122 core.int buildCounterPostalCodesListResponse = 0; 5157 core.int buildCounterPostalCodesListResponse = 0;
5123 buildPostalCodesListResponse() { 5158 buildPostalCodesListResponse() {
5124 var o = new api.PostalCodesListResponse(); 5159 var o = new api.PostalCodesListResponse();
5125 buildCounterPostalCodesListResponse++; 5160 buildCounterPostalCodesListResponse++;
5126 if (buildCounterPostalCodesListResponse < 3) { 5161 if (buildCounterPostalCodesListResponse < 3) {
5127 o.kind = "foo"; 5162 o.kind = "foo";
5128 o.postalCodes = buildUnnamed389(); 5163 o.postalCodes = buildUnnamed802();
5129 } 5164 }
5130 buildCounterPostalCodesListResponse--; 5165 buildCounterPostalCodesListResponse--;
5131 return o; 5166 return o;
5132 } 5167 }
5133 5168
5134 checkPostalCodesListResponse(api.PostalCodesListResponse o) { 5169 checkPostalCodesListResponse(api.PostalCodesListResponse o) {
5135 buildCounterPostalCodesListResponse++; 5170 buildCounterPostalCodesListResponse++;
5136 if (buildCounterPostalCodesListResponse < 3) { 5171 if (buildCounterPostalCodesListResponse < 3) {
5137 unittest.expect(o.kind, unittest.equals('foo')); 5172 unittest.expect(o.kind, unittest.equals('foo'));
5138 checkUnnamed389(o.postalCodes); 5173 checkUnnamed802(o.postalCodes);
5139 } 5174 }
5140 buildCounterPostalCodesListResponse--; 5175 buildCounterPostalCodesListResponse--;
5141 } 5176 }
5142 5177
5143 buildUnnamed390() { 5178 buildUnnamed803() {
5144 var o = new core.List<api.PricingSchedulePricingPeriod>(); 5179 var o = new core.List<api.PricingSchedulePricingPeriod>();
5145 o.add(buildPricingSchedulePricingPeriod()); 5180 o.add(buildPricingSchedulePricingPeriod());
5146 o.add(buildPricingSchedulePricingPeriod()); 5181 o.add(buildPricingSchedulePricingPeriod());
5147 return o; 5182 return o;
5148 } 5183 }
5149 5184
5150 checkUnnamed390(core.List<api.PricingSchedulePricingPeriod> o) { 5185 checkUnnamed803(core.List<api.PricingSchedulePricingPeriod> o) {
5151 unittest.expect(o, unittest.hasLength(2)); 5186 unittest.expect(o, unittest.hasLength(2));
5152 checkPricingSchedulePricingPeriod(o[0]); 5187 checkPricingSchedulePricingPeriod(o[0]);
5153 checkPricingSchedulePricingPeriod(o[1]); 5188 checkPricingSchedulePricingPeriod(o[1]);
5154 } 5189 }
5155 5190
5156 core.int buildCounterPricingSchedule = 0; 5191 core.int buildCounterPricingSchedule = 0;
5157 buildPricingSchedule() { 5192 buildPricingSchedule() {
5158 var o = new api.PricingSchedule(); 5193 var o = new api.PricingSchedule();
5159 buildCounterPricingSchedule++; 5194 buildCounterPricingSchedule++;
5160 if (buildCounterPricingSchedule < 3) { 5195 if (buildCounterPricingSchedule < 3) {
5161 o.capCostOption = "foo"; 5196 o.capCostOption = "foo";
5162 o.disregardOverdelivery = true; 5197 o.disregardOverdelivery = true;
5163 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 5198 o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z");
5164 o.flighted = true; 5199 o.flighted = true;
5165 o.floodlightActivityId = "foo"; 5200 o.floodlightActivityId = "foo";
5166 o.pricingPeriods = buildUnnamed390(); 5201 o.pricingPeriods = buildUnnamed803();
5167 o.pricingType = "foo"; 5202 o.pricingType = "foo";
5168 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 5203 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
5169 o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 5204 o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z");
5170 } 5205 }
5171 buildCounterPricingSchedule--; 5206 buildCounterPricingSchedule--;
5172 return o; 5207 return o;
5173 } 5208 }
5174 5209
5175 checkPricingSchedule(api.PricingSchedule o) { 5210 checkPricingSchedule(api.PricingSchedule o) {
5176 buildCounterPricingSchedule++; 5211 buildCounterPricingSchedule++;
5177 if (buildCounterPricingSchedule < 3) { 5212 if (buildCounterPricingSchedule < 3) {
5178 unittest.expect(o.capCostOption, unittest.equals('foo')); 5213 unittest.expect(o.capCostOption, unittest.equals('foo'));
5179 unittest.expect(o.disregardOverdelivery, unittest.isTrue); 5214 unittest.expect(o.disregardOverdelivery, unittest.isTrue);
5180 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00"))); 5215 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00")));
5181 unittest.expect(o.flighted, unittest.isTrue); 5216 unittest.expect(o.flighted, unittest.isTrue);
5182 unittest.expect(o.floodlightActivityId, unittest.equals('foo')); 5217 unittest.expect(o.floodlightActivityId, unittest.equals('foo'));
5183 checkUnnamed390(o.pricingPeriods); 5218 checkUnnamed803(o.pricingPeriods);
5184 unittest.expect(o.pricingType, unittest.equals('foo')); 5219 unittest.expect(o.pricingType, unittest.equals('foo'));
5185 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00"))); 5220 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00")));
5186 unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("200 2-02-27T00:00:00"))); 5221 unittest.expect(o.testingStartDate, unittest.equals(core.DateTime.parse("200 2-02-27T00:00:00")));
5187 } 5222 }
5188 buildCounterPricingSchedule--; 5223 buildCounterPricingSchedule--;
5189 } 5224 }
5190 5225
5191 core.int buildCounterPricingSchedulePricingPeriod = 0; 5226 core.int buildCounterPricingSchedulePricingPeriod = 0;
5192 buildPricingSchedulePricingPeriod() { 5227 buildPricingSchedulePricingPeriod() {
5193 var o = new api.PricingSchedulePricingPeriod(); 5228 var o = new api.PricingSchedulePricingPeriod();
(...skipping 14 matching lines...) Expand all
5208 if (buildCounterPricingSchedulePricingPeriod < 3) { 5243 if (buildCounterPricingSchedulePricingPeriod < 3) {
5209 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00"))); 5244 unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T0 0:00:00")));
5210 unittest.expect(o.pricingComment, unittest.equals('foo')); 5245 unittest.expect(o.pricingComment, unittest.equals('foo'));
5211 unittest.expect(o.rateOrCostNanos, unittest.equals('foo')); 5246 unittest.expect(o.rateOrCostNanos, unittest.equals('foo'));
5212 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00"))); 5247 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00")));
5213 unittest.expect(o.units, unittest.equals('foo')); 5248 unittest.expect(o.units, unittest.equals('foo'));
5214 } 5249 }
5215 buildCounterPricingSchedulePricingPeriod--; 5250 buildCounterPricingSchedulePricingPeriod--;
5216 } 5251 }
5217 5252
5218 buildUnnamed391() { 5253 buildUnnamed804() {
5219 var o = new core.List<core.String>(); 5254 var o = new core.List<core.String>();
5220 o.add("foo"); 5255 o.add("foo");
5221 o.add("foo"); 5256 o.add("foo");
5222 return o; 5257 return o;
5223 } 5258 }
5224 5259
5225 checkUnnamed391(core.List<core.String> o) { 5260 checkUnnamed804(core.List<core.String> o) {
5226 unittest.expect(o, unittest.hasLength(2)); 5261 unittest.expect(o, unittest.hasLength(2));
5227 unittest.expect(o[0], unittest.equals('foo')); 5262 unittest.expect(o[0], unittest.equals('foo'));
5228 unittest.expect(o[1], unittest.equals('foo')); 5263 unittest.expect(o[1], unittest.equals('foo'));
5229 } 5264 }
5230 5265
5231 buildUnnamed392() { 5266 buildUnnamed805() {
5232 var o = new core.List<core.String>(); 5267 var o = new core.List<core.String>();
5233 o.add("foo"); 5268 o.add("foo");
5234 o.add("foo"); 5269 o.add("foo");
5235 return o; 5270 return o;
5236 } 5271 }
5237 5272
5238 checkUnnamed392(core.List<core.String> o) { 5273 checkUnnamed805(core.List<core.String> o) {
5239 unittest.expect(o, unittest.hasLength(2)); 5274 unittest.expect(o, unittest.hasLength(2));
5240 unittest.expect(o[0], unittest.equals('foo')); 5275 unittest.expect(o[0], unittest.equals('foo'));
5241 unittest.expect(o[1], unittest.equals('foo')); 5276 unittest.expect(o[1], unittest.equals('foo'));
5242 } 5277 }
5243 5278
5244 core.int buildCounterProgrammaticSetting = 0; 5279 core.int buildCounterProgrammaticSetting = 0;
5245 buildProgrammaticSetting() { 5280 buildProgrammaticSetting() {
5246 var o = new api.ProgrammaticSetting(); 5281 var o = new api.ProgrammaticSetting();
5247 buildCounterProgrammaticSetting++; 5282 buildCounterProgrammaticSetting++;
5248 if (buildCounterProgrammaticSetting < 3) { 5283 if (buildCounterProgrammaticSetting < 3) {
5249 o.adxDealIds = buildUnnamed391(); 5284 o.adxDealIds = buildUnnamed804();
5250 o.insertionOrderId = "foo"; 5285 o.insertionOrderId = "foo";
5251 o.insertionOrderIdStatus = true; 5286 o.insertionOrderIdStatus = true;
5252 o.mediaCostNanos = "foo"; 5287 o.mediaCostNanos = "foo";
5253 o.programmatic = true; 5288 o.programmatic = true;
5254 o.traffickerEmails = buildUnnamed392(); 5289 o.traffickerEmails = buildUnnamed805();
5255 } 5290 }
5256 buildCounterProgrammaticSetting--; 5291 buildCounterProgrammaticSetting--;
5257 return o; 5292 return o;
5258 } 5293 }
5259 5294
5260 checkProgrammaticSetting(api.ProgrammaticSetting o) { 5295 checkProgrammaticSetting(api.ProgrammaticSetting o) {
5261 buildCounterProgrammaticSetting++; 5296 buildCounterProgrammaticSetting++;
5262 if (buildCounterProgrammaticSetting < 3) { 5297 if (buildCounterProgrammaticSetting < 3) {
5263 checkUnnamed391(o.adxDealIds); 5298 checkUnnamed804(o.adxDealIds);
5264 unittest.expect(o.insertionOrderId, unittest.equals('foo')); 5299 unittest.expect(o.insertionOrderId, unittest.equals('foo'));
5265 unittest.expect(o.insertionOrderIdStatus, unittest.isTrue); 5300 unittest.expect(o.insertionOrderIdStatus, unittest.isTrue);
5266 unittest.expect(o.mediaCostNanos, unittest.equals('foo')); 5301 unittest.expect(o.mediaCostNanos, unittest.equals('foo'));
5267 unittest.expect(o.programmatic, unittest.isTrue); 5302 unittest.expect(o.programmatic, unittest.isTrue);
5268 checkUnnamed392(o.traffickerEmails); 5303 checkUnnamed805(o.traffickerEmails);
5269 } 5304 }
5270 buildCounterProgrammaticSetting--; 5305 buildCounterProgrammaticSetting--;
5271 } 5306 }
5272 5307
5273 buildUnnamed393() { 5308 buildUnnamed806() {
5274 var o = new core.List<api.Dimension>(); 5309 var o = new core.List<api.Dimension>();
5275 o.add(buildDimension()); 5310 o.add(buildDimension());
5276 o.add(buildDimension()); 5311 o.add(buildDimension());
5277 return o; 5312 return o;
5278 } 5313 }
5279 5314
5280 checkUnnamed393(core.List<api.Dimension> o) { 5315 checkUnnamed806(core.List<api.Dimension> o) {
5281 unittest.expect(o, unittest.hasLength(2)); 5316 unittest.expect(o, unittest.hasLength(2));
5282 checkDimension(o[0]); 5317 checkDimension(o[0]);
5283 checkDimension(o[1]); 5318 checkDimension(o[1]);
5284 } 5319 }
5285 5320
5286 buildUnnamed394() { 5321 buildUnnamed807() {
5287 var o = new core.List<api.Dimension>(); 5322 var o = new core.List<api.Dimension>();
5288 o.add(buildDimension()); 5323 o.add(buildDimension());
5289 o.add(buildDimension()); 5324 o.add(buildDimension());
5290 return o; 5325 return o;
5291 } 5326 }
5292 5327
5293 checkUnnamed394(core.List<api.Dimension> o) { 5328 checkUnnamed807(core.List<api.Dimension> o) {
5294 unittest.expect(o, unittest.hasLength(2)); 5329 unittest.expect(o, unittest.hasLength(2));
5295 checkDimension(o[0]); 5330 checkDimension(o[0]);
5296 checkDimension(o[1]); 5331 checkDimension(o[1]);
5297 } 5332 }
5298 5333
5299 buildUnnamed395() { 5334 buildUnnamed808() {
5300 var o = new core.List<api.Metric>(); 5335 var o = new core.List<api.Metric>();
5301 o.add(buildMetric()); 5336 o.add(buildMetric());
5302 o.add(buildMetric()); 5337 o.add(buildMetric());
5303 return o; 5338 return o;
5304 } 5339 }
5305 5340
5306 checkUnnamed395(core.List<api.Metric> o) { 5341 checkUnnamed808(core.List<api.Metric> o) {
5307 unittest.expect(o, unittest.hasLength(2)); 5342 unittest.expect(o, unittest.hasLength(2));
5308 checkMetric(o[0]); 5343 checkMetric(o[0]);
5309 checkMetric(o[1]); 5344 checkMetric(o[1]);
5310 } 5345 }
5311 5346
5312 buildUnnamed396() { 5347 buildUnnamed809() {
5313 var o = new core.List<api.Metric>(); 5348 var o = new core.List<api.Metric>();
5314 o.add(buildMetric()); 5349 o.add(buildMetric());
5315 o.add(buildMetric()); 5350 o.add(buildMetric());
5316 return o; 5351 return o;
5317 } 5352 }
5318 5353
5319 checkUnnamed396(core.List<api.Metric> o) { 5354 checkUnnamed809(core.List<api.Metric> o) {
5320 unittest.expect(o, unittest.hasLength(2)); 5355 unittest.expect(o, unittest.hasLength(2));
5321 checkMetric(o[0]); 5356 checkMetric(o[0]);
5322 checkMetric(o[1]); 5357 checkMetric(o[1]);
5323 } 5358 }
5324 5359
5325 buildUnnamed397() { 5360 buildUnnamed810() {
5326 var o = new core.List<api.Metric>(); 5361 var o = new core.List<api.Metric>();
5327 o.add(buildMetric()); 5362 o.add(buildMetric());
5328 o.add(buildMetric()); 5363 o.add(buildMetric());
5329 return o; 5364 return o;
5330 } 5365 }
5331 5366
5332 checkUnnamed397(core.List<api.Metric> o) { 5367 checkUnnamed810(core.List<api.Metric> o) {
5333 unittest.expect(o, unittest.hasLength(2)); 5368 unittest.expect(o, unittest.hasLength(2));
5334 checkMetric(o[0]); 5369 checkMetric(o[0]);
5335 checkMetric(o[1]); 5370 checkMetric(o[1]);
5336 } 5371 }
5337 5372
5338 core.int buildCounterReachReportCompatibleFields = 0; 5373 core.int buildCounterReachReportCompatibleFields = 0;
5339 buildReachReportCompatibleFields() { 5374 buildReachReportCompatibleFields() {
5340 var o = new api.ReachReportCompatibleFields(); 5375 var o = new api.ReachReportCompatibleFields();
5341 buildCounterReachReportCompatibleFields++; 5376 buildCounterReachReportCompatibleFields++;
5342 if (buildCounterReachReportCompatibleFields < 3) { 5377 if (buildCounterReachReportCompatibleFields < 3) {
5343 o.dimensionFilters = buildUnnamed393(); 5378 o.dimensionFilters = buildUnnamed806();
5344 o.dimensions = buildUnnamed394(); 5379 o.dimensions = buildUnnamed807();
5345 o.kind = "foo"; 5380 o.kind = "foo";
5346 o.metrics = buildUnnamed395(); 5381 o.metrics = buildUnnamed808();
5347 o.pivotedActivityMetrics = buildUnnamed396(); 5382 o.pivotedActivityMetrics = buildUnnamed809();
5348 o.reachByFrequencyMetrics = buildUnnamed397(); 5383 o.reachByFrequencyMetrics = buildUnnamed810();
5349 } 5384 }
5350 buildCounterReachReportCompatibleFields--; 5385 buildCounterReachReportCompatibleFields--;
5351 return o; 5386 return o;
5352 } 5387 }
5353 5388
5354 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { 5389 checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) {
5355 buildCounterReachReportCompatibleFields++; 5390 buildCounterReachReportCompatibleFields++;
5356 if (buildCounterReachReportCompatibleFields < 3) { 5391 if (buildCounterReachReportCompatibleFields < 3) {
5357 checkUnnamed393(o.dimensionFilters); 5392 checkUnnamed806(o.dimensionFilters);
5358 checkUnnamed394(o.dimensions); 5393 checkUnnamed807(o.dimensions);
5359 unittest.expect(o.kind, unittest.equals('foo')); 5394 unittest.expect(o.kind, unittest.equals('foo'));
5360 checkUnnamed395(o.metrics); 5395 checkUnnamed808(o.metrics);
5361 checkUnnamed396(o.pivotedActivityMetrics); 5396 checkUnnamed809(o.pivotedActivityMetrics);
5362 checkUnnamed397(o.reachByFrequencyMetrics); 5397 checkUnnamed810(o.reachByFrequencyMetrics);
5363 } 5398 }
5364 buildCounterReachReportCompatibleFields--; 5399 buildCounterReachReportCompatibleFields--;
5365 } 5400 }
5366 5401
5367 core.int buildCounterRecipient = 0; 5402 core.int buildCounterRecipient = 0;
5368 buildRecipient() { 5403 buildRecipient() {
5369 var o = new api.Recipient(); 5404 var o = new api.Recipient();
5370 buildCounterRecipient++; 5405 buildCounterRecipient++;
5371 if (buildCounterRecipient < 3) { 5406 if (buildCounterRecipient < 3) {
5372 o.deliveryType = "foo"; 5407 o.deliveryType = "foo";
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
5409 unittest.expect(o.countryCode, unittest.equals('foo')); 5444 unittest.expect(o.countryCode, unittest.equals('foo'));
5410 unittest.expect(o.countryDartId, unittest.equals('foo')); 5445 unittest.expect(o.countryDartId, unittest.equals('foo'));
5411 unittest.expect(o.dartId, unittest.equals('foo')); 5446 unittest.expect(o.dartId, unittest.equals('foo'));
5412 unittest.expect(o.kind, unittest.equals('foo')); 5447 unittest.expect(o.kind, unittest.equals('foo'));
5413 unittest.expect(o.name, unittest.equals('foo')); 5448 unittest.expect(o.name, unittest.equals('foo'));
5414 unittest.expect(o.regionCode, unittest.equals('foo')); 5449 unittest.expect(o.regionCode, unittest.equals('foo'));
5415 } 5450 }
5416 buildCounterRegion--; 5451 buildCounterRegion--;
5417 } 5452 }
5418 5453
5419 buildUnnamed398() { 5454 buildUnnamed811() {
5420 var o = new core.List<api.Region>(); 5455 var o = new core.List<api.Region>();
5421 o.add(buildRegion()); 5456 o.add(buildRegion());
5422 o.add(buildRegion()); 5457 o.add(buildRegion());
5423 return o; 5458 return o;
5424 } 5459 }
5425 5460
5426 checkUnnamed398(core.List<api.Region> o) { 5461 checkUnnamed811(core.List<api.Region> o) {
5427 unittest.expect(o, unittest.hasLength(2)); 5462 unittest.expect(o, unittest.hasLength(2));
5428 checkRegion(o[0]); 5463 checkRegion(o[0]);
5429 checkRegion(o[1]); 5464 checkRegion(o[1]);
5430 } 5465 }
5431 5466
5432 core.int buildCounterRegionsListResponse = 0; 5467 core.int buildCounterRegionsListResponse = 0;
5433 buildRegionsListResponse() { 5468 buildRegionsListResponse() {
5434 var o = new api.RegionsListResponse(); 5469 var o = new api.RegionsListResponse();
5435 buildCounterRegionsListResponse++; 5470 buildCounterRegionsListResponse++;
5436 if (buildCounterRegionsListResponse < 3) { 5471 if (buildCounterRegionsListResponse < 3) {
5437 o.kind = "foo"; 5472 o.kind = "foo";
5438 o.regions = buildUnnamed398(); 5473 o.regions = buildUnnamed811();
5439 } 5474 }
5440 buildCounterRegionsListResponse--; 5475 buildCounterRegionsListResponse--;
5441 return o; 5476 return o;
5442 } 5477 }
5443 5478
5444 checkRegionsListResponse(api.RegionsListResponse o) { 5479 checkRegionsListResponse(api.RegionsListResponse o) {
5445 buildCounterRegionsListResponse++; 5480 buildCounterRegionsListResponse++;
5446 if (buildCounterRegionsListResponse < 3) { 5481 if (buildCounterRegionsListResponse < 3) {
5447 unittest.expect(o.kind, unittest.equals('foo')); 5482 unittest.expect(o.kind, unittest.equals('foo'));
5448 checkUnnamed398(o.regions); 5483 checkUnnamed811(o.regions);
5449 } 5484 }
5450 buildCounterRegionsListResponse--; 5485 buildCounterRegionsListResponse--;
5451 } 5486 }
5452 5487
5453 buildUnnamed399() { 5488 buildUnnamed812() {
5454 var o = new core.List<api.DimensionValue>(); 5489 var o = new core.List<api.DimensionValue>();
5455 o.add(buildDimensionValue()); 5490 o.add(buildDimensionValue());
5456 o.add(buildDimensionValue()); 5491 o.add(buildDimensionValue());
5457 return o; 5492 return o;
5458 } 5493 }
5459 5494
5460 checkUnnamed399(core.List<api.DimensionValue> o) { 5495 checkUnnamed812(core.List<api.DimensionValue> o) {
5461 unittest.expect(o, unittest.hasLength(2)); 5496 unittest.expect(o, unittest.hasLength(2));
5462 checkDimensionValue(o[0]); 5497 checkDimensionValue(o[0]);
5463 checkDimensionValue(o[1]); 5498 checkDimensionValue(o[1]);
5464 } 5499 }
5465 5500
5466 buildUnnamed400() { 5501 buildUnnamed813() {
5467 var o = new core.List<api.SortedDimension>(); 5502 var o = new core.List<api.SortedDimension>();
5468 o.add(buildSortedDimension()); 5503 o.add(buildSortedDimension());
5469 o.add(buildSortedDimension()); 5504 o.add(buildSortedDimension());
5470 return o; 5505 return o;
5471 } 5506 }
5472 5507
5473 checkUnnamed400(core.List<api.SortedDimension> o) { 5508 checkUnnamed813(core.List<api.SortedDimension> o) {
5474 unittest.expect(o, unittest.hasLength(2)); 5509 unittest.expect(o, unittest.hasLength(2));
5475 checkSortedDimension(o[0]); 5510 checkSortedDimension(o[0]);
5476 checkSortedDimension(o[1]); 5511 checkSortedDimension(o[1]);
5477 } 5512 }
5478 5513
5479 buildUnnamed401() { 5514 buildUnnamed814() {
5480 var o = new core.List<core.String>(); 5515 var o = new core.List<core.String>();
5481 o.add("foo"); 5516 o.add("foo");
5482 o.add("foo"); 5517 o.add("foo");
5483 return o; 5518 return o;
5484 } 5519 }
5485 5520
5486 checkUnnamed401(core.List<core.String> o) { 5521 checkUnnamed814(core.List<core.String> o) {
5487 unittest.expect(o, unittest.hasLength(2)); 5522 unittest.expect(o, unittest.hasLength(2));
5488 unittest.expect(o[0], unittest.equals('foo')); 5523 unittest.expect(o[0], unittest.equals('foo'));
5489 unittest.expect(o[1], unittest.equals('foo')); 5524 unittest.expect(o[1], unittest.equals('foo'));
5490 } 5525 }
5491 5526
5492 core.int buildCounterReportCriteria = 0; 5527 core.int buildCounterReportCriteria = 0;
5493 buildReportCriteria() { 5528 buildReportCriteria() {
5494 var o = new api.ReportCriteria(); 5529 var o = new api.ReportCriteria();
5495 buildCounterReportCriteria++; 5530 buildCounterReportCriteria++;
5496 if (buildCounterReportCriteria < 3) { 5531 if (buildCounterReportCriteria < 3) {
5497 o.activities = buildActivities(); 5532 o.activities = buildActivities();
5498 o.customRichMediaEvents = buildCustomRichMediaEvents(); 5533 o.customRichMediaEvents = buildCustomRichMediaEvents();
5499 o.dateRange = buildDateRange(); 5534 o.dateRange = buildDateRange();
5500 o.dimensionFilters = buildUnnamed399(); 5535 o.dimensionFilters = buildUnnamed812();
5501 o.dimensions = buildUnnamed400(); 5536 o.dimensions = buildUnnamed813();
5502 o.metricNames = buildUnnamed401(); 5537 o.metricNames = buildUnnamed814();
5503 } 5538 }
5504 buildCounterReportCriteria--; 5539 buildCounterReportCriteria--;
5505 return o; 5540 return o;
5506 } 5541 }
5507 5542
5508 checkReportCriteria(api.ReportCriteria o) { 5543 checkReportCriteria(api.ReportCriteria o) {
5509 buildCounterReportCriteria++; 5544 buildCounterReportCriteria++;
5510 if (buildCounterReportCriteria < 3) { 5545 if (buildCounterReportCriteria < 3) {
5511 checkActivities(o.activities); 5546 checkActivities(o.activities);
5512 checkCustomRichMediaEvents(o.customRichMediaEvents); 5547 checkCustomRichMediaEvents(o.customRichMediaEvents);
5513 checkDateRange(o.dateRange); 5548 checkDateRange(o.dateRange);
5514 checkUnnamed399(o.dimensionFilters); 5549 checkUnnamed812(o.dimensionFilters);
5515 checkUnnamed400(o.dimensions); 5550 checkUnnamed813(o.dimensions);
5516 checkUnnamed401(o.metricNames); 5551 checkUnnamed814(o.metricNames);
5517 } 5552 }
5518 buildCounterReportCriteria--; 5553 buildCounterReportCriteria--;
5519 } 5554 }
5520 5555
5521 buildUnnamed402() { 5556 buildUnnamed815() {
5522 var o = new core.List<api.SortedDimension>(); 5557 var o = new core.List<api.SortedDimension>();
5523 o.add(buildSortedDimension()); 5558 o.add(buildSortedDimension());
5524 o.add(buildSortedDimension()); 5559 o.add(buildSortedDimension());
5525 return o; 5560 return o;
5526 } 5561 }
5527 5562
5528 checkUnnamed402(core.List<api.SortedDimension> o) { 5563 checkUnnamed815(core.List<api.SortedDimension> o) {
5529 unittest.expect(o, unittest.hasLength(2)); 5564 unittest.expect(o, unittest.hasLength(2));
5530 checkSortedDimension(o[0]); 5565 checkSortedDimension(o[0]);
5531 checkSortedDimension(o[1]); 5566 checkSortedDimension(o[1]);
5532 } 5567 }
5533 5568
5534 buildUnnamed403() { 5569 buildUnnamed816() {
5535 var o = new core.List<api.DimensionValue>(); 5570 var o = new core.List<api.DimensionValue>();
5536 o.add(buildDimensionValue()); 5571 o.add(buildDimensionValue());
5537 o.add(buildDimensionValue()); 5572 o.add(buildDimensionValue());
5538 return o; 5573 return o;
5539 } 5574 }
5540 5575
5541 checkUnnamed403(core.List<api.DimensionValue> o) { 5576 checkUnnamed816(core.List<api.DimensionValue> o) {
5542 unittest.expect(o, unittest.hasLength(2)); 5577 unittest.expect(o, unittest.hasLength(2));
5543 checkDimensionValue(o[0]); 5578 checkDimensionValue(o[0]);
5544 checkDimensionValue(o[1]); 5579 checkDimensionValue(o[1]);
5545 } 5580 }
5546 5581
5547 buildUnnamed404() { 5582 buildUnnamed817() {
5548 var o = new core.List<core.String>(); 5583 var o = new core.List<core.String>();
5549 o.add("foo"); 5584 o.add("foo");
5550 o.add("foo"); 5585 o.add("foo");
5551 return o; 5586 return o;
5552 } 5587 }
5553 5588
5554 checkUnnamed404(core.List<core.String> o) { 5589 checkUnnamed817(core.List<core.String> o) {
5555 unittest.expect(o, unittest.hasLength(2)); 5590 unittest.expect(o, unittest.hasLength(2));
5556 unittest.expect(o[0], unittest.equals('foo')); 5591 unittest.expect(o[0], unittest.equals('foo'));
5557 unittest.expect(o[1], unittest.equals('foo')); 5592 unittest.expect(o[1], unittest.equals('foo'));
5558 } 5593 }
5559 5594
5560 buildUnnamed405() { 5595 buildUnnamed818() {
5561 var o = new core.List<core.String>(); 5596 var o = new core.List<core.String>();
5562 o.add("foo"); 5597 o.add("foo");
5563 o.add("foo"); 5598 o.add("foo");
5564 return o; 5599 return o;
5565 } 5600 }
5566 5601
5567 checkUnnamed405(core.List<core.String> o) { 5602 checkUnnamed818(core.List<core.String> o) {
5568 unittest.expect(o, unittest.hasLength(2)); 5603 unittest.expect(o, unittest.hasLength(2));
5569 unittest.expect(o[0], unittest.equals('foo')); 5604 unittest.expect(o[0], unittest.equals('foo'));
5570 unittest.expect(o[1], unittest.equals('foo')); 5605 unittest.expect(o[1], unittest.equals('foo'));
5571 } 5606 }
5572 5607
5573 core.int buildCounterReportCrossDimensionReachCriteria = 0; 5608 core.int buildCounterReportCrossDimensionReachCriteria = 0;
5574 buildReportCrossDimensionReachCriteria() { 5609 buildReportCrossDimensionReachCriteria() {
5575 var o = new api.ReportCrossDimensionReachCriteria(); 5610 var o = new api.ReportCrossDimensionReachCriteria();
5576 buildCounterReportCrossDimensionReachCriteria++; 5611 buildCounterReportCrossDimensionReachCriteria++;
5577 if (buildCounterReportCrossDimensionReachCriteria < 3) { 5612 if (buildCounterReportCrossDimensionReachCriteria < 3) {
5578 o.breakdown = buildUnnamed402(); 5613 o.breakdown = buildUnnamed815();
5579 o.dateRange = buildDateRange(); 5614 o.dateRange = buildDateRange();
5580 o.dimension = "foo"; 5615 o.dimension = "foo";
5581 o.dimensionFilters = buildUnnamed403(); 5616 o.dimensionFilters = buildUnnamed816();
5582 o.metricNames = buildUnnamed404(); 5617 o.metricNames = buildUnnamed817();
5583 o.overlapMetricNames = buildUnnamed405(); 5618 o.overlapMetricNames = buildUnnamed818();
5584 o.pivoted = true; 5619 o.pivoted = true;
5585 } 5620 }
5586 buildCounterReportCrossDimensionReachCriteria--; 5621 buildCounterReportCrossDimensionReachCriteria--;
5587 return o; 5622 return o;
5588 } 5623 }
5589 5624
5590 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { 5625 checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) {
5591 buildCounterReportCrossDimensionReachCriteria++; 5626 buildCounterReportCrossDimensionReachCriteria++;
5592 if (buildCounterReportCrossDimensionReachCriteria < 3) { 5627 if (buildCounterReportCrossDimensionReachCriteria < 3) {
5593 checkUnnamed402(o.breakdown); 5628 checkUnnamed815(o.breakdown);
5594 checkDateRange(o.dateRange); 5629 checkDateRange(o.dateRange);
5595 unittest.expect(o.dimension, unittest.equals('foo')); 5630 unittest.expect(o.dimension, unittest.equals('foo'));
5596 checkUnnamed403(o.dimensionFilters); 5631 checkUnnamed816(o.dimensionFilters);
5597 checkUnnamed404(o.metricNames); 5632 checkUnnamed817(o.metricNames);
5598 checkUnnamed405(o.overlapMetricNames); 5633 checkUnnamed818(o.overlapMetricNames);
5599 unittest.expect(o.pivoted, unittest.isTrue); 5634 unittest.expect(o.pivoted, unittest.isTrue);
5600 } 5635 }
5601 buildCounterReportCrossDimensionReachCriteria--; 5636 buildCounterReportCrossDimensionReachCriteria--;
5602 } 5637 }
5603 5638
5604 buildUnnamed406() { 5639 buildUnnamed819() {
5605 var o = new core.List<api.Recipient>(); 5640 var o = new core.List<api.Recipient>();
5606 o.add(buildRecipient()); 5641 o.add(buildRecipient());
5607 o.add(buildRecipient()); 5642 o.add(buildRecipient());
5608 return o; 5643 return o;
5609 } 5644 }
5610 5645
5611 checkUnnamed406(core.List<api.Recipient> o) { 5646 checkUnnamed819(core.List<api.Recipient> o) {
5612 unittest.expect(o, unittest.hasLength(2)); 5647 unittest.expect(o, unittest.hasLength(2));
5613 checkRecipient(o[0]); 5648 checkRecipient(o[0]);
5614 checkRecipient(o[1]); 5649 checkRecipient(o[1]);
5615 } 5650 }
5616 5651
5617 core.int buildCounterReportDelivery = 0; 5652 core.int buildCounterReportDelivery = 0;
5618 buildReportDelivery() { 5653 buildReportDelivery() {
5619 var o = new api.ReportDelivery(); 5654 var o = new api.ReportDelivery();
5620 buildCounterReportDelivery++; 5655 buildCounterReportDelivery++;
5621 if (buildCounterReportDelivery < 3) { 5656 if (buildCounterReportDelivery < 3) {
5622 o.emailOwner = true; 5657 o.emailOwner = true;
5623 o.emailOwnerDeliveryType = "foo"; 5658 o.emailOwnerDeliveryType = "foo";
5624 o.message = "foo"; 5659 o.message = "foo";
5625 o.recipients = buildUnnamed406(); 5660 o.recipients = buildUnnamed819();
5626 } 5661 }
5627 buildCounterReportDelivery--; 5662 buildCounterReportDelivery--;
5628 return o; 5663 return o;
5629 } 5664 }
5630 5665
5631 checkReportDelivery(api.ReportDelivery o) { 5666 checkReportDelivery(api.ReportDelivery o) {
5632 buildCounterReportDelivery++; 5667 buildCounterReportDelivery++;
5633 if (buildCounterReportDelivery < 3) { 5668 if (buildCounterReportDelivery < 3) {
5634 unittest.expect(o.emailOwner, unittest.isTrue); 5669 unittest.expect(o.emailOwner, unittest.isTrue);
5635 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); 5670 unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo'));
5636 unittest.expect(o.message, unittest.equals('foo')); 5671 unittest.expect(o.message, unittest.equals('foo'));
5637 checkUnnamed406(o.recipients); 5672 checkUnnamed819(o.recipients);
5638 } 5673 }
5639 buildCounterReportDelivery--; 5674 buildCounterReportDelivery--;
5640 } 5675 }
5641 5676
5642 buildUnnamed407() { 5677 buildUnnamed820() {
5643 var o = new core.List<api.DimensionValue>(); 5678 var o = new core.List<api.DimensionValue>();
5644 o.add(buildDimensionValue()); 5679 o.add(buildDimensionValue());
5645 o.add(buildDimensionValue()); 5680 o.add(buildDimensionValue());
5646 return o; 5681 return o;
5647 } 5682 }
5648 5683
5649 checkUnnamed407(core.List<api.DimensionValue> o) { 5684 checkUnnamed820(core.List<api.DimensionValue> o) {
5650 unittest.expect(o, unittest.hasLength(2)); 5685 unittest.expect(o, unittest.hasLength(2));
5651 checkDimensionValue(o[0]); 5686 checkDimensionValue(o[0]);
5652 checkDimensionValue(o[1]); 5687 checkDimensionValue(o[1]);
5653 } 5688 }
5654 5689
5655 buildUnnamed408() { 5690 buildUnnamed821() {
5656 var o = new core.List<api.DimensionValue>(); 5691 var o = new core.List<api.DimensionValue>();
5657 o.add(buildDimensionValue()); 5692 o.add(buildDimensionValue());
5658 o.add(buildDimensionValue()); 5693 o.add(buildDimensionValue());
5659 return o; 5694 return o;
5660 } 5695 }
5661 5696
5662 checkUnnamed408(core.List<api.DimensionValue> o) { 5697 checkUnnamed821(core.List<api.DimensionValue> o) {
5663 unittest.expect(o, unittest.hasLength(2)); 5698 unittest.expect(o, unittest.hasLength(2));
5664 checkDimensionValue(o[0]); 5699 checkDimensionValue(o[0]);
5665 checkDimensionValue(o[1]); 5700 checkDimensionValue(o[1]);
5666 } 5701 }
5667 5702
5668 buildUnnamed409() { 5703 buildUnnamed822() {
5669 var o = new core.List<api.SortedDimension>(); 5704 var o = new core.List<api.SortedDimension>();
5670 o.add(buildSortedDimension()); 5705 o.add(buildSortedDimension());
5671 o.add(buildSortedDimension()); 5706 o.add(buildSortedDimension());
5672 return o; 5707 return o;
5673 } 5708 }
5674 5709
5675 checkUnnamed409(core.List<api.SortedDimension> o) { 5710 checkUnnamed822(core.List<api.SortedDimension> o) {
5676 unittest.expect(o, unittest.hasLength(2)); 5711 unittest.expect(o, unittest.hasLength(2));
5677 checkSortedDimension(o[0]); 5712 checkSortedDimension(o[0]);
5678 checkSortedDimension(o[1]); 5713 checkSortedDimension(o[1]);
5679 } 5714 }
5680 5715
5681 buildUnnamed410() { 5716 buildUnnamed823() {
5682 var o = new core.List<core.String>(); 5717 var o = new core.List<core.String>();
5683 o.add("foo"); 5718 o.add("foo");
5684 o.add("foo"); 5719 o.add("foo");
5685 return o; 5720 return o;
5686 } 5721 }
5687 5722
5688 checkUnnamed410(core.List<core.String> o) { 5723 checkUnnamed823(core.List<core.String> o) {
5689 unittest.expect(o, unittest.hasLength(2)); 5724 unittest.expect(o, unittest.hasLength(2));
5690 unittest.expect(o[0], unittest.equals('foo')); 5725 unittest.expect(o[0], unittest.equals('foo'));
5691 unittest.expect(o[1], unittest.equals('foo')); 5726 unittest.expect(o[1], unittest.equals('foo'));
5692 } 5727 }
5693 5728
5694 core.int buildCounterReportFloodlightCriteriaReportProperties = 0; 5729 core.int buildCounterReportFloodlightCriteriaReportProperties = 0;
5695 buildReportFloodlightCriteriaReportProperties() { 5730 buildReportFloodlightCriteriaReportProperties() {
5696 var o = new api.ReportFloodlightCriteriaReportProperties(); 5731 var o = new api.ReportFloodlightCriteriaReportProperties();
5697 buildCounterReportFloodlightCriteriaReportProperties++; 5732 buildCounterReportFloodlightCriteriaReportProperties++;
5698 if (buildCounterReportFloodlightCriteriaReportProperties < 3) { 5733 if (buildCounterReportFloodlightCriteriaReportProperties < 3) {
(...skipping 13 matching lines...) Expand all
5712 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue); 5747 unittest.expect(o.includeUnattributedIPConversions, unittest.isTrue);
5713 } 5748 }
5714 buildCounterReportFloodlightCriteriaReportProperties--; 5749 buildCounterReportFloodlightCriteriaReportProperties--;
5715 } 5750 }
5716 5751
5717 core.int buildCounterReportFloodlightCriteria = 0; 5752 core.int buildCounterReportFloodlightCriteria = 0;
5718 buildReportFloodlightCriteria() { 5753 buildReportFloodlightCriteria() {
5719 var o = new api.ReportFloodlightCriteria(); 5754 var o = new api.ReportFloodlightCriteria();
5720 buildCounterReportFloodlightCriteria++; 5755 buildCounterReportFloodlightCriteria++;
5721 if (buildCounterReportFloodlightCriteria < 3) { 5756 if (buildCounterReportFloodlightCriteria < 3) {
5722 o.customRichMediaEvents = buildUnnamed407(); 5757 o.customRichMediaEvents = buildUnnamed820();
5723 o.dateRange = buildDateRange(); 5758 o.dateRange = buildDateRange();
5724 o.dimensionFilters = buildUnnamed408(); 5759 o.dimensionFilters = buildUnnamed821();
5725 o.dimensions = buildUnnamed409(); 5760 o.dimensions = buildUnnamed822();
5726 o.floodlightConfigId = buildDimensionValue(); 5761 o.floodlightConfigId = buildDimensionValue();
5727 o.metricNames = buildUnnamed410(); 5762 o.metricNames = buildUnnamed823();
5728 o.reportProperties = buildReportFloodlightCriteriaReportProperties(); 5763 o.reportProperties = buildReportFloodlightCriteriaReportProperties();
5729 } 5764 }
5730 buildCounterReportFloodlightCriteria--; 5765 buildCounterReportFloodlightCriteria--;
5731 return o; 5766 return o;
5732 } 5767 }
5733 5768
5734 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { 5769 checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) {
5735 buildCounterReportFloodlightCriteria++; 5770 buildCounterReportFloodlightCriteria++;
5736 if (buildCounterReportFloodlightCriteria < 3) { 5771 if (buildCounterReportFloodlightCriteria < 3) {
5737 checkUnnamed407(o.customRichMediaEvents); 5772 checkUnnamed820(o.customRichMediaEvents);
5738 checkDateRange(o.dateRange); 5773 checkDateRange(o.dateRange);
5739 checkUnnamed408(o.dimensionFilters); 5774 checkUnnamed821(o.dimensionFilters);
5740 checkUnnamed409(o.dimensions); 5775 checkUnnamed822(o.dimensions);
5741 checkDimensionValue(o.floodlightConfigId); 5776 checkDimensionValue(o.floodlightConfigId);
5742 checkUnnamed410(o.metricNames); 5777 checkUnnamed823(o.metricNames);
5743 checkReportFloodlightCriteriaReportProperties(o.reportProperties); 5778 checkReportFloodlightCriteriaReportProperties(o.reportProperties);
5744 } 5779 }
5745 buildCounterReportFloodlightCriteria--; 5780 buildCounterReportFloodlightCriteria--;
5746 } 5781 }
5747 5782
5748 buildUnnamed411() { 5783 buildUnnamed824() {
5749 var o = new core.List<api.DimensionValue>(); 5784 var o = new core.List<api.DimensionValue>();
5750 o.add(buildDimensionValue()); 5785 o.add(buildDimensionValue());
5751 o.add(buildDimensionValue()); 5786 o.add(buildDimensionValue());
5752 return o; 5787 return o;
5753 } 5788 }
5754 5789
5755 checkUnnamed411(core.List<api.DimensionValue> o) { 5790 checkUnnamed824(core.List<api.DimensionValue> o) {
5756 unittest.expect(o, unittest.hasLength(2)); 5791 unittest.expect(o, unittest.hasLength(2));
5757 checkDimensionValue(o[0]); 5792 checkDimensionValue(o[0]);
5758 checkDimensionValue(o[1]); 5793 checkDimensionValue(o[1]);
5759 } 5794 }
5760 5795
5761 buildUnnamed412() { 5796 buildUnnamed825() {
5762 var o = new core.List<api.SortedDimension>(); 5797 var o = new core.List<api.SortedDimension>();
5763 o.add(buildSortedDimension()); 5798 o.add(buildSortedDimension());
5764 o.add(buildSortedDimension()); 5799 o.add(buildSortedDimension());
5765 return o; 5800 return o;
5766 } 5801 }
5767 5802
5768 checkUnnamed412(core.List<api.SortedDimension> o) { 5803 checkUnnamed825(core.List<api.SortedDimension> o) {
5769 unittest.expect(o, unittest.hasLength(2)); 5804 unittest.expect(o, unittest.hasLength(2));
5770 checkSortedDimension(o[0]); 5805 checkSortedDimension(o[0]);
5771 checkSortedDimension(o[1]); 5806 checkSortedDimension(o[1]);
5772 } 5807 }
5773 5808
5774 buildUnnamed413() { 5809 buildUnnamed826() {
5775 var o = new core.List<api.SortedDimension>(); 5810 var o = new core.List<api.SortedDimension>();
5776 o.add(buildSortedDimension()); 5811 o.add(buildSortedDimension());
5777 o.add(buildSortedDimension()); 5812 o.add(buildSortedDimension());
5778 return o; 5813 return o;
5779 } 5814 }
5780 5815
5781 checkUnnamed413(core.List<api.SortedDimension> o) { 5816 checkUnnamed826(core.List<api.SortedDimension> o) {
5782 unittest.expect(o, unittest.hasLength(2)); 5817 unittest.expect(o, unittest.hasLength(2));
5783 checkSortedDimension(o[0]); 5818 checkSortedDimension(o[0]);
5784 checkSortedDimension(o[1]); 5819 checkSortedDimension(o[1]);
5785 } 5820 }
5786 5821
5787 buildUnnamed414() { 5822 buildUnnamed827() {
5788 var o = new core.List<api.DimensionValue>(); 5823 var o = new core.List<api.DimensionValue>();
5789 o.add(buildDimensionValue()); 5824 o.add(buildDimensionValue());
5790 o.add(buildDimensionValue()); 5825 o.add(buildDimensionValue());
5791 return o; 5826 return o;
5792 } 5827 }
5793 5828
5794 checkUnnamed414(core.List<api.DimensionValue> o) { 5829 checkUnnamed827(core.List<api.DimensionValue> o) {
5795 unittest.expect(o, unittest.hasLength(2)); 5830 unittest.expect(o, unittest.hasLength(2));
5796 checkDimensionValue(o[0]); 5831 checkDimensionValue(o[0]);
5797 checkDimensionValue(o[1]); 5832 checkDimensionValue(o[1]);
5798 } 5833 }
5799 5834
5800 buildUnnamed415() { 5835 buildUnnamed828() {
5801 var o = new core.List<core.String>(); 5836 var o = new core.List<core.String>();
5802 o.add("foo"); 5837 o.add("foo");
5803 o.add("foo"); 5838 o.add("foo");
5804 return o; 5839 return o;
5805 } 5840 }
5806 5841
5807 checkUnnamed415(core.List<core.String> o) { 5842 checkUnnamed828(core.List<core.String> o) {
5808 unittest.expect(o, unittest.hasLength(2)); 5843 unittest.expect(o, unittest.hasLength(2));
5809 unittest.expect(o[0], unittest.equals('foo')); 5844 unittest.expect(o[0], unittest.equals('foo'));
5810 unittest.expect(o[1], unittest.equals('foo')); 5845 unittest.expect(o[1], unittest.equals('foo'));
5811 } 5846 }
5812 5847
5813 buildUnnamed416() { 5848 buildUnnamed829() {
5814 var o = new core.List<api.SortedDimension>(); 5849 var o = new core.List<api.SortedDimension>();
5815 o.add(buildSortedDimension()); 5850 o.add(buildSortedDimension());
5816 o.add(buildSortedDimension()); 5851 o.add(buildSortedDimension());
5817 return o; 5852 return o;
5818 } 5853 }
5819 5854
5820 checkUnnamed416(core.List<api.SortedDimension> o) { 5855 checkUnnamed829(core.List<api.SortedDimension> o) {
5821 unittest.expect(o, unittest.hasLength(2)); 5856 unittest.expect(o, unittest.hasLength(2));
5822 checkSortedDimension(o[0]); 5857 checkSortedDimension(o[0]);
5823 checkSortedDimension(o[1]); 5858 checkSortedDimension(o[1]);
5824 } 5859 }
5825 5860
5826 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0; 5861 core.int buildCounterReportPathToConversionCriteriaReportProperties = 0;
5827 buildReportPathToConversionCriteriaReportProperties() { 5862 buildReportPathToConversionCriteriaReportProperties() {
5828 var o = new api.ReportPathToConversionCriteriaReportProperties(); 5863 var o = new api.ReportPathToConversionCriteriaReportProperties();
5829 buildCounterReportPathToConversionCriteriaReportProperties++; 5864 buildCounterReportPathToConversionCriteriaReportProperties++;
5830 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) { 5865 if (buildCounterReportPathToConversionCriteriaReportProperties < 3) {
(...skipping 25 matching lines...) Expand all
5856 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue); 5891 unittest.expect(o.pivotOnInteractionPath, unittest.isTrue);
5857 } 5892 }
5858 buildCounterReportPathToConversionCriteriaReportProperties--; 5893 buildCounterReportPathToConversionCriteriaReportProperties--;
5859 } 5894 }
5860 5895
5861 core.int buildCounterReportPathToConversionCriteria = 0; 5896 core.int buildCounterReportPathToConversionCriteria = 0;
5862 buildReportPathToConversionCriteria() { 5897 buildReportPathToConversionCriteria() {
5863 var o = new api.ReportPathToConversionCriteria(); 5898 var o = new api.ReportPathToConversionCriteria();
5864 buildCounterReportPathToConversionCriteria++; 5899 buildCounterReportPathToConversionCriteria++;
5865 if (buildCounterReportPathToConversionCriteria < 3) { 5900 if (buildCounterReportPathToConversionCriteria < 3) {
5866 o.activityFilters = buildUnnamed411(); 5901 o.activityFilters = buildUnnamed824();
5867 o.conversionDimensions = buildUnnamed412(); 5902 o.conversionDimensions = buildUnnamed825();
5868 o.customFloodlightVariables = buildUnnamed413(); 5903 o.customFloodlightVariables = buildUnnamed826();
5869 o.customRichMediaEvents = buildUnnamed414(); 5904 o.customRichMediaEvents = buildUnnamed827();
5870 o.dateRange = buildDateRange(); 5905 o.dateRange = buildDateRange();
5871 o.floodlightConfigId = buildDimensionValue(); 5906 o.floodlightConfigId = buildDimensionValue();
5872 o.metricNames = buildUnnamed415(); 5907 o.metricNames = buildUnnamed828();
5873 o.perInteractionDimensions = buildUnnamed416(); 5908 o.perInteractionDimensions = buildUnnamed829();
5874 o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); 5909 o.reportProperties = buildReportPathToConversionCriteriaReportProperties();
5875 } 5910 }
5876 buildCounterReportPathToConversionCriteria--; 5911 buildCounterReportPathToConversionCriteria--;
5877 return o; 5912 return o;
5878 } 5913 }
5879 5914
5880 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { 5915 checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) {
5881 buildCounterReportPathToConversionCriteria++; 5916 buildCounterReportPathToConversionCriteria++;
5882 if (buildCounterReportPathToConversionCriteria < 3) { 5917 if (buildCounterReportPathToConversionCriteria < 3) {
5883 checkUnnamed411(o.activityFilters); 5918 checkUnnamed824(o.activityFilters);
5884 checkUnnamed412(o.conversionDimensions); 5919 checkUnnamed825(o.conversionDimensions);
5885 checkUnnamed413(o.customFloodlightVariables); 5920 checkUnnamed826(o.customFloodlightVariables);
5886 checkUnnamed414(o.customRichMediaEvents); 5921 checkUnnamed827(o.customRichMediaEvents);
5887 checkDateRange(o.dateRange); 5922 checkDateRange(o.dateRange);
5888 checkDimensionValue(o.floodlightConfigId); 5923 checkDimensionValue(o.floodlightConfigId);
5889 checkUnnamed415(o.metricNames); 5924 checkUnnamed828(o.metricNames);
5890 checkUnnamed416(o.perInteractionDimensions); 5925 checkUnnamed829(o.perInteractionDimensions);
5891 checkReportPathToConversionCriteriaReportProperties(o.reportProperties); 5926 checkReportPathToConversionCriteriaReportProperties(o.reportProperties);
5892 } 5927 }
5893 buildCounterReportPathToConversionCriteria--; 5928 buildCounterReportPathToConversionCriteria--;
5894 } 5929 }
5895 5930
5896 buildUnnamed417() { 5931 buildUnnamed830() {
5897 var o = new core.List<api.DimensionValue>(); 5932 var o = new core.List<api.DimensionValue>();
5898 o.add(buildDimensionValue()); 5933 o.add(buildDimensionValue());
5899 o.add(buildDimensionValue()); 5934 o.add(buildDimensionValue());
5900 return o; 5935 return o;
5901 } 5936 }
5902 5937
5903 checkUnnamed417(core.List<api.DimensionValue> o) { 5938 checkUnnamed830(core.List<api.DimensionValue> o) {
5904 unittest.expect(o, unittest.hasLength(2)); 5939 unittest.expect(o, unittest.hasLength(2));
5905 checkDimensionValue(o[0]); 5940 checkDimensionValue(o[0]);
5906 checkDimensionValue(o[1]); 5941 checkDimensionValue(o[1]);
5907 } 5942 }
5908 5943
5909 buildUnnamed418() { 5944 buildUnnamed831() {
5910 var o = new core.List<api.SortedDimension>(); 5945 var o = new core.List<api.SortedDimension>();
5911 o.add(buildSortedDimension()); 5946 o.add(buildSortedDimension());
5912 o.add(buildSortedDimension()); 5947 o.add(buildSortedDimension());
5913 return o; 5948 return o;
5914 } 5949 }
5915 5950
5916 checkUnnamed418(core.List<api.SortedDimension> o) { 5951 checkUnnamed831(core.List<api.SortedDimension> o) {
5917 unittest.expect(o, unittest.hasLength(2)); 5952 unittest.expect(o, unittest.hasLength(2));
5918 checkSortedDimension(o[0]); 5953 checkSortedDimension(o[0]);
5919 checkSortedDimension(o[1]); 5954 checkSortedDimension(o[1]);
5920 } 5955 }
5921 5956
5922 buildUnnamed419() { 5957 buildUnnamed832() {
5923 var o = new core.List<core.String>(); 5958 var o = new core.List<core.String>();
5924 o.add("foo"); 5959 o.add("foo");
5925 o.add("foo"); 5960 o.add("foo");
5926 return o; 5961 return o;
5927 } 5962 }
5928 5963
5929 checkUnnamed419(core.List<core.String> o) { 5964 checkUnnamed832(core.List<core.String> o) {
5930 unittest.expect(o, unittest.hasLength(2)); 5965 unittest.expect(o, unittest.hasLength(2));
5931 unittest.expect(o[0], unittest.equals('foo')); 5966 unittest.expect(o[0], unittest.equals('foo'));
5932 unittest.expect(o[1], unittest.equals('foo')); 5967 unittest.expect(o[1], unittest.equals('foo'));
5933 } 5968 }
5934 5969
5935 buildUnnamed420() { 5970 buildUnnamed833() {
5936 var o = new core.List<core.String>(); 5971 var o = new core.List<core.String>();
5937 o.add("foo"); 5972 o.add("foo");
5938 o.add("foo"); 5973 o.add("foo");
5939 return o; 5974 return o;
5940 } 5975 }
5941 5976
5942 checkUnnamed420(core.List<core.String> o) { 5977 checkUnnamed833(core.List<core.String> o) {
5943 unittest.expect(o, unittest.hasLength(2)); 5978 unittest.expect(o, unittest.hasLength(2));
5944 unittest.expect(o[0], unittest.equals('foo')); 5979 unittest.expect(o[0], unittest.equals('foo'));
5945 unittest.expect(o[1], unittest.equals('foo')); 5980 unittest.expect(o[1], unittest.equals('foo'));
5946 } 5981 }
5947 5982
5948 core.int buildCounterReportReachCriteria = 0; 5983 core.int buildCounterReportReachCriteria = 0;
5949 buildReportReachCriteria() { 5984 buildReportReachCriteria() {
5950 var o = new api.ReportReachCriteria(); 5985 var o = new api.ReportReachCriteria();
5951 buildCounterReportReachCriteria++; 5986 buildCounterReportReachCriteria++;
5952 if (buildCounterReportReachCriteria < 3) { 5987 if (buildCounterReportReachCriteria < 3) {
5953 o.activities = buildActivities(); 5988 o.activities = buildActivities();
5954 o.customRichMediaEvents = buildCustomRichMediaEvents(); 5989 o.customRichMediaEvents = buildCustomRichMediaEvents();
5955 o.dateRange = buildDateRange(); 5990 o.dateRange = buildDateRange();
5956 o.dimensionFilters = buildUnnamed417(); 5991 o.dimensionFilters = buildUnnamed830();
5957 o.dimensions = buildUnnamed418(); 5992 o.dimensions = buildUnnamed831();
5958 o.enableAllDimensionCombinations = true; 5993 o.enableAllDimensionCombinations = true;
5959 o.metricNames = buildUnnamed419(); 5994 o.metricNames = buildUnnamed832();
5960 o.reachByFrequencyMetricNames = buildUnnamed420(); 5995 o.reachByFrequencyMetricNames = buildUnnamed833();
5961 } 5996 }
5962 buildCounterReportReachCriteria--; 5997 buildCounterReportReachCriteria--;
5963 return o; 5998 return o;
5964 } 5999 }
5965 6000
5966 checkReportReachCriteria(api.ReportReachCriteria o) { 6001 checkReportReachCriteria(api.ReportReachCriteria o) {
5967 buildCounterReportReachCriteria++; 6002 buildCounterReportReachCriteria++;
5968 if (buildCounterReportReachCriteria < 3) { 6003 if (buildCounterReportReachCriteria < 3) {
5969 checkActivities(o.activities); 6004 checkActivities(o.activities);
5970 checkCustomRichMediaEvents(o.customRichMediaEvents); 6005 checkCustomRichMediaEvents(o.customRichMediaEvents);
5971 checkDateRange(o.dateRange); 6006 checkDateRange(o.dateRange);
5972 checkUnnamed417(o.dimensionFilters); 6007 checkUnnamed830(o.dimensionFilters);
5973 checkUnnamed418(o.dimensions); 6008 checkUnnamed831(o.dimensions);
5974 unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); 6009 unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue);
5975 checkUnnamed419(o.metricNames); 6010 checkUnnamed832(o.metricNames);
5976 checkUnnamed420(o.reachByFrequencyMetricNames); 6011 checkUnnamed833(o.reachByFrequencyMetricNames);
5977 } 6012 }
5978 buildCounterReportReachCriteria--; 6013 buildCounterReportReachCriteria--;
5979 } 6014 }
5980 6015
5981 buildUnnamed421() { 6016 buildUnnamed834() {
5982 var o = new core.List<core.String>(); 6017 var o = new core.List<core.String>();
5983 o.add("foo"); 6018 o.add("foo");
5984 o.add("foo"); 6019 o.add("foo");
5985 return o; 6020 return o;
5986 } 6021 }
5987 6022
5988 checkUnnamed421(core.List<core.String> o) { 6023 checkUnnamed834(core.List<core.String> o) {
5989 unittest.expect(o, unittest.hasLength(2)); 6024 unittest.expect(o, unittest.hasLength(2));
5990 unittest.expect(o[0], unittest.equals('foo')); 6025 unittest.expect(o[0], unittest.equals('foo'));
5991 unittest.expect(o[1], unittest.equals('foo')); 6026 unittest.expect(o[1], unittest.equals('foo'));
5992 } 6027 }
5993 6028
5994 core.int buildCounterReportSchedule = 0; 6029 core.int buildCounterReportSchedule = 0;
5995 buildReportSchedule() { 6030 buildReportSchedule() {
5996 var o = new api.ReportSchedule(); 6031 var o = new api.ReportSchedule();
5997 buildCounterReportSchedule++; 6032 buildCounterReportSchedule++;
5998 if (buildCounterReportSchedule < 3) { 6033 if (buildCounterReportSchedule < 3) {
5999 o.active = true; 6034 o.active = true;
6000 o.every = 42; 6035 o.every = 42;
6001 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 6036 o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z");
6002 o.repeats = "foo"; 6037 o.repeats = "foo";
6003 o.repeatsOnWeekDays = buildUnnamed421(); 6038 o.repeatsOnWeekDays = buildUnnamed834();
6004 o.runsOnDayOfMonth = "foo"; 6039 o.runsOnDayOfMonth = "foo";
6005 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); 6040 o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z");
6006 } 6041 }
6007 buildCounterReportSchedule--; 6042 buildCounterReportSchedule--;
6008 return o; 6043 return o;
6009 } 6044 }
6010 6045
6011 checkReportSchedule(api.ReportSchedule o) { 6046 checkReportSchedule(api.ReportSchedule o) {
6012 buildCounterReportSchedule++; 6047 buildCounterReportSchedule++;
6013 if (buildCounterReportSchedule < 3) { 6048 if (buildCounterReportSchedule < 3) {
6014 unittest.expect(o.active, unittest.isTrue); 6049 unittest.expect(o.active, unittest.isTrue);
6015 unittest.expect(o.every, unittest.equals(42)); 6050 unittest.expect(o.every, unittest.equals(42));
6016 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002- 02-27T00:00:00"))); 6051 unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002- 02-27T00:00:00")));
6017 unittest.expect(o.repeats, unittest.equals('foo')); 6052 unittest.expect(o.repeats, unittest.equals('foo'));
6018 checkUnnamed421(o.repeatsOnWeekDays); 6053 checkUnnamed834(o.repeatsOnWeekDays);
6019 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); 6054 unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo'));
6020 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00"))); 6055 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27 T00:00:00")));
6021 } 6056 }
6022 buildCounterReportSchedule--; 6057 buildCounterReportSchedule--;
6023 } 6058 }
6024 6059
6025 core.int buildCounterReport = 0; 6060 core.int buildCounterReport = 0;
6026 buildReport() { 6061 buildReport() {
6027 var o = new api.Report(); 6062 var o = new api.Report();
6028 buildCounterReport++; 6063 buildCounterReport++;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
6068 unittest.expect(o.ownerProfileId, unittest.equals('foo')); 6103 unittest.expect(o.ownerProfileId, unittest.equals('foo'));
6069 checkReportPathToConversionCriteria(o.pathToConversionCriteria); 6104 checkReportPathToConversionCriteria(o.pathToConversionCriteria);
6070 checkReportReachCriteria(o.reachCriteria); 6105 checkReportReachCriteria(o.reachCriteria);
6071 checkReportSchedule(o.schedule); 6106 checkReportSchedule(o.schedule);
6072 unittest.expect(o.subAccountId, unittest.equals('foo')); 6107 unittest.expect(o.subAccountId, unittest.equals('foo'));
6073 unittest.expect(o.type, unittest.equals('foo')); 6108 unittest.expect(o.type, unittest.equals('foo'));
6074 } 6109 }
6075 buildCounterReport--; 6110 buildCounterReport--;
6076 } 6111 }
6077 6112
6078 buildUnnamed422() { 6113 buildUnnamed835() {
6079 var o = new core.List<api.Dimension>(); 6114 var o = new core.List<api.Dimension>();
6080 o.add(buildDimension()); 6115 o.add(buildDimension());
6081 o.add(buildDimension()); 6116 o.add(buildDimension());
6082 return o; 6117 return o;
6083 } 6118 }
6084 6119
6085 checkUnnamed422(core.List<api.Dimension> o) { 6120 checkUnnamed835(core.List<api.Dimension> o) {
6086 unittest.expect(o, unittest.hasLength(2)); 6121 unittest.expect(o, unittest.hasLength(2));
6087 checkDimension(o[0]); 6122 checkDimension(o[0]);
6088 checkDimension(o[1]); 6123 checkDimension(o[1]);
6089 } 6124 }
6090 6125
6091 buildUnnamed423() { 6126 buildUnnamed836() {
6092 var o = new core.List<api.Dimension>(); 6127 var o = new core.List<api.Dimension>();
6093 o.add(buildDimension()); 6128 o.add(buildDimension());
6094 o.add(buildDimension()); 6129 o.add(buildDimension());
6095 return o; 6130 return o;
6096 } 6131 }
6097 6132
6098 checkUnnamed423(core.List<api.Dimension> o) { 6133 checkUnnamed836(core.List<api.Dimension> o) {
6099 unittest.expect(o, unittest.hasLength(2)); 6134 unittest.expect(o, unittest.hasLength(2));
6100 checkDimension(o[0]); 6135 checkDimension(o[0]);
6101 checkDimension(o[1]); 6136 checkDimension(o[1]);
6102 } 6137 }
6103 6138
6104 buildUnnamed424() { 6139 buildUnnamed837() {
6105 var o = new core.List<api.Metric>(); 6140 var o = new core.List<api.Metric>();
6106 o.add(buildMetric()); 6141 o.add(buildMetric());
6107 o.add(buildMetric()); 6142 o.add(buildMetric());
6108 return o; 6143 return o;
6109 } 6144 }
6110 6145
6111 checkUnnamed424(core.List<api.Metric> o) { 6146 checkUnnamed837(core.List<api.Metric> o) {
6112 unittest.expect(o, unittest.hasLength(2)); 6147 unittest.expect(o, unittest.hasLength(2));
6113 checkMetric(o[0]); 6148 checkMetric(o[0]);
6114 checkMetric(o[1]); 6149 checkMetric(o[1]);
6115 } 6150 }
6116 6151
6117 buildUnnamed425() { 6152 buildUnnamed838() {
6118 var o = new core.List<api.Metric>(); 6153 var o = new core.List<api.Metric>();
6119 o.add(buildMetric()); 6154 o.add(buildMetric());
6120 o.add(buildMetric()); 6155 o.add(buildMetric());
6121 return o; 6156 return o;
6122 } 6157 }
6123 6158
6124 checkUnnamed425(core.List<api.Metric> o) { 6159 checkUnnamed838(core.List<api.Metric> o) {
6125 unittest.expect(o, unittest.hasLength(2)); 6160 unittest.expect(o, unittest.hasLength(2));
6126 checkMetric(o[0]); 6161 checkMetric(o[0]);
6127 checkMetric(o[1]); 6162 checkMetric(o[1]);
6128 } 6163 }
6129 6164
6130 core.int buildCounterReportCompatibleFields = 0; 6165 core.int buildCounterReportCompatibleFields = 0;
6131 buildReportCompatibleFields() { 6166 buildReportCompatibleFields() {
6132 var o = new api.ReportCompatibleFields(); 6167 var o = new api.ReportCompatibleFields();
6133 buildCounterReportCompatibleFields++; 6168 buildCounterReportCompatibleFields++;
6134 if (buildCounterReportCompatibleFields < 3) { 6169 if (buildCounterReportCompatibleFields < 3) {
6135 o.dimensionFilters = buildUnnamed422(); 6170 o.dimensionFilters = buildUnnamed835();
6136 o.dimensions = buildUnnamed423(); 6171 o.dimensions = buildUnnamed836();
6137 o.kind = "foo"; 6172 o.kind = "foo";
6138 o.metrics = buildUnnamed424(); 6173 o.metrics = buildUnnamed837();
6139 o.pivotedActivityMetrics = buildUnnamed425(); 6174 o.pivotedActivityMetrics = buildUnnamed838();
6140 } 6175 }
6141 buildCounterReportCompatibleFields--; 6176 buildCounterReportCompatibleFields--;
6142 return o; 6177 return o;
6143 } 6178 }
6144 6179
6145 checkReportCompatibleFields(api.ReportCompatibleFields o) { 6180 checkReportCompatibleFields(api.ReportCompatibleFields o) {
6146 buildCounterReportCompatibleFields++; 6181 buildCounterReportCompatibleFields++;
6147 if (buildCounterReportCompatibleFields < 3) { 6182 if (buildCounterReportCompatibleFields < 3) {
6148 checkUnnamed422(o.dimensionFilters); 6183 checkUnnamed835(o.dimensionFilters);
6149 checkUnnamed423(o.dimensions); 6184 checkUnnamed836(o.dimensions);
6150 unittest.expect(o.kind, unittest.equals('foo')); 6185 unittest.expect(o.kind, unittest.equals('foo'));
6151 checkUnnamed424(o.metrics); 6186 checkUnnamed837(o.metrics);
6152 checkUnnamed425(o.pivotedActivityMetrics); 6187 checkUnnamed838(o.pivotedActivityMetrics);
6153 } 6188 }
6154 buildCounterReportCompatibleFields--; 6189 buildCounterReportCompatibleFields--;
6155 } 6190 }
6156 6191
6157 buildUnnamed426() { 6192 buildUnnamed839() {
6158 var o = new core.List<api.Report>(); 6193 var o = new core.List<api.Report>();
6159 o.add(buildReport()); 6194 o.add(buildReport());
6160 o.add(buildReport()); 6195 o.add(buildReport());
6161 return o; 6196 return o;
6162 } 6197 }
6163 6198
6164 checkUnnamed426(core.List<api.Report> o) { 6199 checkUnnamed839(core.List<api.Report> o) {
6165 unittest.expect(o, unittest.hasLength(2)); 6200 unittest.expect(o, unittest.hasLength(2));
6166 checkReport(o[0]); 6201 checkReport(o[0]);
6167 checkReport(o[1]); 6202 checkReport(o[1]);
6168 } 6203 }
6169 6204
6170 core.int buildCounterReportList = 0; 6205 core.int buildCounterReportList = 0;
6171 buildReportList() { 6206 buildReportList() {
6172 var o = new api.ReportList(); 6207 var o = new api.ReportList();
6173 buildCounterReportList++; 6208 buildCounterReportList++;
6174 if (buildCounterReportList < 3) { 6209 if (buildCounterReportList < 3) {
6175 o.etag = "foo"; 6210 o.etag = "foo";
6176 o.items = buildUnnamed426(); 6211 o.items = buildUnnamed839();
6177 o.kind = "foo"; 6212 o.kind = "foo";
6178 o.nextPageToken = "foo"; 6213 o.nextPageToken = "foo";
6179 } 6214 }
6180 buildCounterReportList--; 6215 buildCounterReportList--;
6181 return o; 6216 return o;
6182 } 6217 }
6183 6218
6184 checkReportList(api.ReportList o) { 6219 checkReportList(api.ReportList o) {
6185 buildCounterReportList++; 6220 buildCounterReportList++;
6186 if (buildCounterReportList < 3) { 6221 if (buildCounterReportList < 3) {
6187 unittest.expect(o.etag, unittest.equals('foo')); 6222 unittest.expect(o.etag, unittest.equals('foo'));
6188 checkUnnamed426(o.items); 6223 checkUnnamed839(o.items);
6189 unittest.expect(o.kind, unittest.equals('foo')); 6224 unittest.expect(o.kind, unittest.equals('foo'));
6190 unittest.expect(o.nextPageToken, unittest.equals('foo')); 6225 unittest.expect(o.nextPageToken, unittest.equals('foo'));
6191 } 6226 }
6192 buildCounterReportList--; 6227 buildCounterReportList--;
6193 } 6228 }
6194 6229
6195 core.int buildCounterReportsConfiguration = 0; 6230 core.int buildCounterReportsConfiguration = 0;
6196 buildReportsConfiguration() { 6231 buildReportsConfiguration() {
6197 var o = new api.ReportsConfiguration(); 6232 var o = new api.ReportsConfiguration();
6198 buildCounterReportsConfiguration++; 6233 buildCounterReportsConfiguration++;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
6231 checkRichMediaExitOverride(api.RichMediaExitOverride o) { 6266 checkRichMediaExitOverride(api.RichMediaExitOverride o) {
6232 buildCounterRichMediaExitOverride++; 6267 buildCounterRichMediaExitOverride++;
6233 if (buildCounterRichMediaExitOverride < 3) { 6268 if (buildCounterRichMediaExitOverride < 3) {
6234 unittest.expect(o.customExitUrl, unittest.equals('foo')); 6269 unittest.expect(o.customExitUrl, unittest.equals('foo'));
6235 unittest.expect(o.exitId, unittest.equals('foo')); 6270 unittest.expect(o.exitId, unittest.equals('foo'));
6236 unittest.expect(o.useCustomExitUrl, unittest.isTrue); 6271 unittest.expect(o.useCustomExitUrl, unittest.isTrue);
6237 } 6272 }
6238 buildCounterRichMediaExitOverride--; 6273 buildCounterRichMediaExitOverride--;
6239 } 6274 }
6240 6275
6241 buildUnnamed427() { 6276 buildUnnamed840() {
6242 var o = new core.List<api.SiteContact>(); 6277 var o = new core.List<api.SiteContact>();
6243 o.add(buildSiteContact()); 6278 o.add(buildSiteContact());
6244 o.add(buildSiteContact()); 6279 o.add(buildSiteContact());
6245 return o; 6280 return o;
6246 } 6281 }
6247 6282
6248 checkUnnamed427(core.List<api.SiteContact> o) { 6283 checkUnnamed840(core.List<api.SiteContact> o) {
6249 unittest.expect(o, unittest.hasLength(2)); 6284 unittest.expect(o, unittest.hasLength(2));
6250 checkSiteContact(o[0]); 6285 checkSiteContact(o[0]);
6251 checkSiteContact(o[1]); 6286 checkSiteContact(o[1]);
6252 } 6287 }
6253 6288
6254 core.int buildCounterSite = 0; 6289 core.int buildCounterSite = 0;
6255 buildSite() { 6290 buildSite() {
6256 var o = new api.Site(); 6291 var o = new api.Site();
6257 buildCounterSite++; 6292 buildCounterSite++;
6258 if (buildCounterSite < 3) { 6293 if (buildCounterSite < 3) {
6259 o.accountId = "foo"; 6294 o.accountId = "foo";
6260 o.approved = true; 6295 o.approved = true;
6261 o.directorySiteId = "foo"; 6296 o.directorySiteId = "foo";
6262 o.directorySiteIdDimensionValue = buildDimensionValue(); 6297 o.directorySiteIdDimensionValue = buildDimensionValue();
6263 o.id = "foo"; 6298 o.id = "foo";
6264 o.idDimensionValue = buildDimensionValue(); 6299 o.idDimensionValue = buildDimensionValue();
6265 o.keyName = "foo"; 6300 o.keyName = "foo";
6266 o.kind = "foo"; 6301 o.kind = "foo";
6267 o.name = "foo"; 6302 o.name = "foo";
6268 o.siteContacts = buildUnnamed427(); 6303 o.siteContacts = buildUnnamed840();
6269 o.siteSettings = buildSiteSettings(); 6304 o.siteSettings = buildSiteSettings();
6270 o.subaccountId = "foo"; 6305 o.subaccountId = "foo";
6271 } 6306 }
6272 buildCounterSite--; 6307 buildCounterSite--;
6273 return o; 6308 return o;
6274 } 6309 }
6275 6310
6276 checkSite(api.Site o) { 6311 checkSite(api.Site o) {
6277 buildCounterSite++; 6312 buildCounterSite++;
6278 if (buildCounterSite < 3) { 6313 if (buildCounterSite < 3) {
6279 unittest.expect(o.accountId, unittest.equals('foo')); 6314 unittest.expect(o.accountId, unittest.equals('foo'));
6280 unittest.expect(o.approved, unittest.isTrue); 6315 unittest.expect(o.approved, unittest.isTrue);
6281 unittest.expect(o.directorySiteId, unittest.equals('foo')); 6316 unittest.expect(o.directorySiteId, unittest.equals('foo'));
6282 checkDimensionValue(o.directorySiteIdDimensionValue); 6317 checkDimensionValue(o.directorySiteIdDimensionValue);
6283 unittest.expect(o.id, unittest.equals('foo')); 6318 unittest.expect(o.id, unittest.equals('foo'));
6284 checkDimensionValue(o.idDimensionValue); 6319 checkDimensionValue(o.idDimensionValue);
6285 unittest.expect(o.keyName, unittest.equals('foo')); 6320 unittest.expect(o.keyName, unittest.equals('foo'));
6286 unittest.expect(o.kind, unittest.equals('foo')); 6321 unittest.expect(o.kind, unittest.equals('foo'));
6287 unittest.expect(o.name, unittest.equals('foo')); 6322 unittest.expect(o.name, unittest.equals('foo'));
6288 checkUnnamed427(o.siteContacts); 6323 checkUnnamed840(o.siteContacts);
6289 checkSiteSettings(o.siteSettings); 6324 checkSiteSettings(o.siteSettings);
6290 unittest.expect(o.subaccountId, unittest.equals('foo')); 6325 unittest.expect(o.subaccountId, unittest.equals('foo'));
6291 } 6326 }
6292 buildCounterSite--; 6327 buildCounterSite--;
6293 } 6328 }
6294 6329
6295 core.int buildCounterSiteContact = 0; 6330 core.int buildCounterSiteContact = 0;
6296 buildSiteContact() { 6331 buildSiteContact() {
6297 var o = new api.SiteContact(); 6332 var o = new api.SiteContact();
6298 buildCounterSiteContact++; 6333 buildCounterSiteContact++;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
6341 unittest.expect(o.activeViewOptOut, unittest.isTrue); 6376 unittest.expect(o.activeViewOptOut, unittest.isTrue);
6342 checkCreativeSettings(o.creativeSettings); 6377 checkCreativeSettings(o.creativeSettings);
6343 unittest.expect(o.disableBrandSafeAds, unittest.isTrue); 6378 unittest.expect(o.disableBrandSafeAds, unittest.isTrue);
6344 unittest.expect(o.disableNewCookie, unittest.isTrue); 6379 unittest.expect(o.disableNewCookie, unittest.isTrue);
6345 checkLookbackConfiguration(o.lookbackConfiguration); 6380 checkLookbackConfiguration(o.lookbackConfiguration);
6346 checkTagSetting(o.tagSetting); 6381 checkTagSetting(o.tagSetting);
6347 } 6382 }
6348 buildCounterSiteSettings--; 6383 buildCounterSiteSettings--;
6349 } 6384 }
6350 6385
6351 buildUnnamed428() { 6386 buildUnnamed841() {
6352 var o = new core.List<api.Site>(); 6387 var o = new core.List<api.Site>();
6353 o.add(buildSite()); 6388 o.add(buildSite());
6354 o.add(buildSite()); 6389 o.add(buildSite());
6355 return o; 6390 return o;
6356 } 6391 }
6357 6392
6358 checkUnnamed428(core.List<api.Site> o) { 6393 checkUnnamed841(core.List<api.Site> o) {
6359 unittest.expect(o, unittest.hasLength(2)); 6394 unittest.expect(o, unittest.hasLength(2));
6360 checkSite(o[0]); 6395 checkSite(o[0]);
6361 checkSite(o[1]); 6396 checkSite(o[1]);
6362 } 6397 }
6363 6398
6364 core.int buildCounterSitesListResponse = 0; 6399 core.int buildCounterSitesListResponse = 0;
6365 buildSitesListResponse() { 6400 buildSitesListResponse() {
6366 var o = new api.SitesListResponse(); 6401 var o = new api.SitesListResponse();
6367 buildCounterSitesListResponse++; 6402 buildCounterSitesListResponse++;
6368 if (buildCounterSitesListResponse < 3) { 6403 if (buildCounterSitesListResponse < 3) {
6369 o.kind = "foo"; 6404 o.kind = "foo";
6370 o.nextPageToken = "foo"; 6405 o.nextPageToken = "foo";
6371 o.sites = buildUnnamed428(); 6406 o.sites = buildUnnamed841();
6372 } 6407 }
6373 buildCounterSitesListResponse--; 6408 buildCounterSitesListResponse--;
6374 return o; 6409 return o;
6375 } 6410 }
6376 6411
6377 checkSitesListResponse(api.SitesListResponse o) { 6412 checkSitesListResponse(api.SitesListResponse o) {
6378 buildCounterSitesListResponse++; 6413 buildCounterSitesListResponse++;
6379 if (buildCounterSitesListResponse < 3) { 6414 if (buildCounterSitesListResponse < 3) {
6380 unittest.expect(o.kind, unittest.equals('foo')); 6415 unittest.expect(o.kind, unittest.equals('foo'));
6381 unittest.expect(o.nextPageToken, unittest.equals('foo')); 6416 unittest.expect(o.nextPageToken, unittest.equals('foo'));
6382 checkUnnamed428(o.sites); 6417 checkUnnamed841(o.sites);
6383 } 6418 }
6384 buildCounterSitesListResponse--; 6419 buildCounterSitesListResponse--;
6385 } 6420 }
6386 6421
6387 core.int buildCounterSize = 0; 6422 core.int buildCounterSize = 0;
6388 buildSize() { 6423 buildSize() {
6389 var o = new api.Size(); 6424 var o = new api.Size();
6390 buildCounterSize++; 6425 buildCounterSize++;
6391 if (buildCounterSize < 3) { 6426 if (buildCounterSize < 3) {
6392 o.height = 42; 6427 o.height = 42;
(...skipping 11 matching lines...) Expand all
6404 if (buildCounterSize < 3) { 6439 if (buildCounterSize < 3) {
6405 unittest.expect(o.height, unittest.equals(42)); 6440 unittest.expect(o.height, unittest.equals(42));
6406 unittest.expect(o.iab, unittest.isTrue); 6441 unittest.expect(o.iab, unittest.isTrue);
6407 unittest.expect(o.id, unittest.equals('foo')); 6442 unittest.expect(o.id, unittest.equals('foo'));
6408 unittest.expect(o.kind, unittest.equals('foo')); 6443 unittest.expect(o.kind, unittest.equals('foo'));
6409 unittest.expect(o.width, unittest.equals(42)); 6444 unittest.expect(o.width, unittest.equals(42));
6410 } 6445 }
6411 buildCounterSize--; 6446 buildCounterSize--;
6412 } 6447 }
6413 6448
6414 buildUnnamed429() { 6449 buildUnnamed842() {
6415 var o = new core.List<api.Size>(); 6450 var o = new core.List<api.Size>();
6416 o.add(buildSize()); 6451 o.add(buildSize());
6417 o.add(buildSize()); 6452 o.add(buildSize());
6418 return o; 6453 return o;
6419 } 6454 }
6420 6455
6421 checkUnnamed429(core.List<api.Size> o) { 6456 checkUnnamed842(core.List<api.Size> o) {
6422 unittest.expect(o, unittest.hasLength(2)); 6457 unittest.expect(o, unittest.hasLength(2));
6423 checkSize(o[0]); 6458 checkSize(o[0]);
6424 checkSize(o[1]); 6459 checkSize(o[1]);
6425 } 6460 }
6426 6461
6427 core.int buildCounterSizesListResponse = 0; 6462 core.int buildCounterSizesListResponse = 0;
6428 buildSizesListResponse() { 6463 buildSizesListResponse() {
6429 var o = new api.SizesListResponse(); 6464 var o = new api.SizesListResponse();
6430 buildCounterSizesListResponse++; 6465 buildCounterSizesListResponse++;
6431 if (buildCounterSizesListResponse < 3) { 6466 if (buildCounterSizesListResponse < 3) {
6432 o.kind = "foo"; 6467 o.kind = "foo";
6433 o.sizes = buildUnnamed429(); 6468 o.sizes = buildUnnamed842();
6434 } 6469 }
6435 buildCounterSizesListResponse--; 6470 buildCounterSizesListResponse--;
6436 return o; 6471 return o;
6437 } 6472 }
6438 6473
6439 checkSizesListResponse(api.SizesListResponse o) { 6474 checkSizesListResponse(api.SizesListResponse o) {
6440 buildCounterSizesListResponse++; 6475 buildCounterSizesListResponse++;
6441 if (buildCounterSizesListResponse < 3) { 6476 if (buildCounterSizesListResponse < 3) {
6442 unittest.expect(o.kind, unittest.equals('foo')); 6477 unittest.expect(o.kind, unittest.equals('foo'));
6443 checkUnnamed429(o.sizes); 6478 checkUnnamed842(o.sizes);
6444 } 6479 }
6445 buildCounterSizesListResponse--; 6480 buildCounterSizesListResponse--;
6446 } 6481 }
6447 6482
6448 core.int buildCounterSortedDimension = 0; 6483 core.int buildCounterSortedDimension = 0;
6449 buildSortedDimension() { 6484 buildSortedDimension() {
6450 var o = new api.SortedDimension(); 6485 var o = new api.SortedDimension();
6451 buildCounterSortedDimension++; 6486 buildCounterSortedDimension++;
6452 if (buildCounterSortedDimension < 3) { 6487 if (buildCounterSortedDimension < 3) {
6453 o.kind = "foo"; 6488 o.kind = "foo";
6454 o.name = "foo"; 6489 o.name = "foo";
6455 o.sortOrder = "foo"; 6490 o.sortOrder = "foo";
6456 } 6491 }
6457 buildCounterSortedDimension--; 6492 buildCounterSortedDimension--;
6458 return o; 6493 return o;
6459 } 6494 }
6460 6495
6461 checkSortedDimension(api.SortedDimension o) { 6496 checkSortedDimension(api.SortedDimension o) {
6462 buildCounterSortedDimension++; 6497 buildCounterSortedDimension++;
6463 if (buildCounterSortedDimension < 3) { 6498 if (buildCounterSortedDimension < 3) {
6464 unittest.expect(o.kind, unittest.equals('foo')); 6499 unittest.expect(o.kind, unittest.equals('foo'));
6465 unittest.expect(o.name, unittest.equals('foo')); 6500 unittest.expect(o.name, unittest.equals('foo'));
6466 unittest.expect(o.sortOrder, unittest.equals('foo')); 6501 unittest.expect(o.sortOrder, unittest.equals('foo'));
6467 } 6502 }
6468 buildCounterSortedDimension--; 6503 buildCounterSortedDimension--;
6469 } 6504 }
6470 6505
6471 buildUnnamed430() { 6506 buildUnnamed843() {
6472 var o = new core.List<core.String>(); 6507 var o = new core.List<core.String>();
6473 o.add("foo"); 6508 o.add("foo");
6474 o.add("foo"); 6509 o.add("foo");
6475 return o; 6510 return o;
6476 } 6511 }
6477 6512
6478 checkUnnamed430(core.List<core.String> o) { 6513 checkUnnamed843(core.List<core.String> o) {
6479 unittest.expect(o, unittest.hasLength(2)); 6514 unittest.expect(o, unittest.hasLength(2));
6480 unittest.expect(o[0], unittest.equals('foo')); 6515 unittest.expect(o[0], unittest.equals('foo'));
6481 unittest.expect(o[1], unittest.equals('foo')); 6516 unittest.expect(o[1], unittest.equals('foo'));
6482 } 6517 }
6483 6518
6484 core.int buildCounterSubaccount = 0; 6519 core.int buildCounterSubaccount = 0;
6485 buildSubaccount() { 6520 buildSubaccount() {
6486 var o = new api.Subaccount(); 6521 var o = new api.Subaccount();
6487 buildCounterSubaccount++; 6522 buildCounterSubaccount++;
6488 if (buildCounterSubaccount < 3) { 6523 if (buildCounterSubaccount < 3) {
6489 o.accountId = "foo"; 6524 o.accountId = "foo";
6490 o.availablePermissionIds = buildUnnamed430(); 6525 o.availablePermissionIds = buildUnnamed843();
6491 o.id = "foo"; 6526 o.id = "foo";
6492 o.kind = "foo"; 6527 o.kind = "foo";
6493 o.name = "foo"; 6528 o.name = "foo";
6494 } 6529 }
6495 buildCounterSubaccount--; 6530 buildCounterSubaccount--;
6496 return o; 6531 return o;
6497 } 6532 }
6498 6533
6499 checkSubaccount(api.Subaccount o) { 6534 checkSubaccount(api.Subaccount o) {
6500 buildCounterSubaccount++; 6535 buildCounterSubaccount++;
6501 if (buildCounterSubaccount < 3) { 6536 if (buildCounterSubaccount < 3) {
6502 unittest.expect(o.accountId, unittest.equals('foo')); 6537 unittest.expect(o.accountId, unittest.equals('foo'));
6503 checkUnnamed430(o.availablePermissionIds); 6538 checkUnnamed843(o.availablePermissionIds);
6504 unittest.expect(o.id, unittest.equals('foo')); 6539 unittest.expect(o.id, unittest.equals('foo'));
6505 unittest.expect(o.kind, unittest.equals('foo')); 6540 unittest.expect(o.kind, unittest.equals('foo'));
6506 unittest.expect(o.name, unittest.equals('foo')); 6541 unittest.expect(o.name, unittest.equals('foo'));
6507 } 6542 }
6508 buildCounterSubaccount--; 6543 buildCounterSubaccount--;
6509 } 6544 }
6510 6545
6511 buildUnnamed431() { 6546 buildUnnamed844() {
6512 var o = new core.List<api.Subaccount>(); 6547 var o = new core.List<api.Subaccount>();
6513 o.add(buildSubaccount()); 6548 o.add(buildSubaccount());
6514 o.add(buildSubaccount()); 6549 o.add(buildSubaccount());
6515 return o; 6550 return o;
6516 } 6551 }
6517 6552
6518 checkUnnamed431(core.List<api.Subaccount> o) { 6553 checkUnnamed844(core.List<api.Subaccount> o) {
6519 unittest.expect(o, unittest.hasLength(2)); 6554 unittest.expect(o, unittest.hasLength(2));
6520 checkSubaccount(o[0]); 6555 checkSubaccount(o[0]);
6521 checkSubaccount(o[1]); 6556 checkSubaccount(o[1]);
6522 } 6557 }
6523 6558
6524 core.int buildCounterSubaccountsListResponse = 0; 6559 core.int buildCounterSubaccountsListResponse = 0;
6525 buildSubaccountsListResponse() { 6560 buildSubaccountsListResponse() {
6526 var o = new api.SubaccountsListResponse(); 6561 var o = new api.SubaccountsListResponse();
6527 buildCounterSubaccountsListResponse++; 6562 buildCounterSubaccountsListResponse++;
6528 if (buildCounterSubaccountsListResponse < 3) { 6563 if (buildCounterSubaccountsListResponse < 3) {
6529 o.kind = "foo"; 6564 o.kind = "foo";
6530 o.nextPageToken = "foo"; 6565 o.nextPageToken = "foo";
6531 o.subaccounts = buildUnnamed431(); 6566 o.subaccounts = buildUnnamed844();
6532 } 6567 }
6533 buildCounterSubaccountsListResponse--; 6568 buildCounterSubaccountsListResponse--;
6534 return o; 6569 return o;
6535 } 6570 }
6536 6571
6537 checkSubaccountsListResponse(api.SubaccountsListResponse o) { 6572 checkSubaccountsListResponse(api.SubaccountsListResponse o) {
6538 buildCounterSubaccountsListResponse++; 6573 buildCounterSubaccountsListResponse++;
6539 if (buildCounterSubaccountsListResponse < 3) { 6574 if (buildCounterSubaccountsListResponse < 3) {
6540 unittest.expect(o.kind, unittest.equals('foo')); 6575 unittest.expect(o.kind, unittest.equals('foo'));
6541 unittest.expect(o.nextPageToken, unittest.equals('foo')); 6576 unittest.expect(o.nextPageToken, unittest.equals('foo'));
6542 checkUnnamed431(o.subaccounts); 6577 checkUnnamed844(o.subaccounts);
6543 } 6578 }
6544 buildCounterSubaccountsListResponse--; 6579 buildCounterSubaccountsListResponse--;
6545 } 6580 }
6546 6581
6547 core.int buildCounterTagData = 0; 6582 core.int buildCounterTagData = 0;
6548 buildTagData() { 6583 buildTagData() {
6549 var o = new api.TagData(); 6584 var o = new api.TagData();
6550 buildCounterTagData++; 6585 buildCounterTagData++;
6551 if (buildCounterTagData < 3) { 6586 if (buildCounterTagData < 3) {
6552 o.adId = "foo"; 6587 o.adId = "foo";
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
6631 6666
6632 checkTargetWindow(api.TargetWindow o) { 6667 checkTargetWindow(api.TargetWindow o) {
6633 buildCounterTargetWindow++; 6668 buildCounterTargetWindow++;
6634 if (buildCounterTargetWindow < 3) { 6669 if (buildCounterTargetWindow < 3) {
6635 unittest.expect(o.customHtml, unittest.equals('foo')); 6670 unittest.expect(o.customHtml, unittest.equals('foo'));
6636 unittest.expect(o.targetWindowOption, unittest.equals('foo')); 6671 unittest.expect(o.targetWindowOption, unittest.equals('foo'));
6637 } 6672 }
6638 buildCounterTargetWindow--; 6673 buildCounterTargetWindow--;
6639 } 6674 }
6640 6675
6641 buildUnnamed432() { 6676 buildUnnamed845() {
6642 var o = new core.List<api.Browser>(); 6677 var o = new core.List<api.Browser>();
6643 o.add(buildBrowser()); 6678 o.add(buildBrowser());
6644 o.add(buildBrowser()); 6679 o.add(buildBrowser());
6645 return o; 6680 return o;
6646 } 6681 }
6647 6682
6648 checkUnnamed432(core.List<api.Browser> o) { 6683 checkUnnamed845(core.List<api.Browser> o) {
6649 unittest.expect(o, unittest.hasLength(2)); 6684 unittest.expect(o, unittest.hasLength(2));
6650 checkBrowser(o[0]); 6685 checkBrowser(o[0]);
6651 checkBrowser(o[1]); 6686 checkBrowser(o[1]);
6652 } 6687 }
6653 6688
6654 buildUnnamed433() { 6689 buildUnnamed846() {
6655 var o = new core.List<api.ConnectionType>(); 6690 var o = new core.List<api.ConnectionType>();
6656 o.add(buildConnectionType()); 6691 o.add(buildConnectionType());
6657 o.add(buildConnectionType()); 6692 o.add(buildConnectionType());
6658 return o; 6693 return o;
6659 } 6694 }
6660 6695
6661 checkUnnamed433(core.List<api.ConnectionType> o) { 6696 checkUnnamed846(core.List<api.ConnectionType> o) {
6662 unittest.expect(o, unittest.hasLength(2)); 6697 unittest.expect(o, unittest.hasLength(2));
6663 checkConnectionType(o[0]); 6698 checkConnectionType(o[0]);
6664 checkConnectionType(o[1]); 6699 checkConnectionType(o[1]);
6665 } 6700 }
6666 6701
6667 buildUnnamed434() { 6702 buildUnnamed847() {
6668 var o = new core.List<api.MobileCarrier>(); 6703 var o = new core.List<api.MobileCarrier>();
6669 o.add(buildMobileCarrier()); 6704 o.add(buildMobileCarrier());
6670 o.add(buildMobileCarrier()); 6705 o.add(buildMobileCarrier());
6671 return o; 6706 return o;
6672 } 6707 }
6673 6708
6674 checkUnnamed434(core.List<api.MobileCarrier> o) { 6709 checkUnnamed847(core.List<api.MobileCarrier> o) {
6675 unittest.expect(o, unittest.hasLength(2)); 6710 unittest.expect(o, unittest.hasLength(2));
6676 checkMobileCarrier(o[0]); 6711 checkMobileCarrier(o[0]);
6677 checkMobileCarrier(o[1]); 6712 checkMobileCarrier(o[1]);
6678 } 6713 }
6679 6714
6680 buildUnnamed435() { 6715 buildUnnamed848() {
6681 var o = new core.List<api.OperatingSystemVersion>(); 6716 var o = new core.List<api.OperatingSystemVersion>();
6682 o.add(buildOperatingSystemVersion()); 6717 o.add(buildOperatingSystemVersion());
6683 o.add(buildOperatingSystemVersion()); 6718 o.add(buildOperatingSystemVersion());
6684 return o; 6719 return o;
6685 } 6720 }
6686 6721
6687 checkUnnamed435(core.List<api.OperatingSystemVersion> o) { 6722 checkUnnamed848(core.List<api.OperatingSystemVersion> o) {
6688 unittest.expect(o, unittest.hasLength(2)); 6723 unittest.expect(o, unittest.hasLength(2));
6689 checkOperatingSystemVersion(o[0]); 6724 checkOperatingSystemVersion(o[0]);
6690 checkOperatingSystemVersion(o[1]); 6725 checkOperatingSystemVersion(o[1]);
6691 } 6726 }
6692 6727
6693 buildUnnamed436() { 6728 buildUnnamed849() {
6694 var o = new core.List<api.OperatingSystem>(); 6729 var o = new core.List<api.OperatingSystem>();
6695 o.add(buildOperatingSystem()); 6730 o.add(buildOperatingSystem());
6696 o.add(buildOperatingSystem()); 6731 o.add(buildOperatingSystem());
6697 return o; 6732 return o;
6698 } 6733 }
6699 6734
6700 checkUnnamed436(core.List<api.OperatingSystem> o) { 6735 checkUnnamed849(core.List<api.OperatingSystem> o) {
6701 unittest.expect(o, unittest.hasLength(2)); 6736 unittest.expect(o, unittest.hasLength(2));
6702 checkOperatingSystem(o[0]); 6737 checkOperatingSystem(o[0]);
6703 checkOperatingSystem(o[1]); 6738 checkOperatingSystem(o[1]);
6704 } 6739 }
6705 6740
6706 buildUnnamed437() { 6741 buildUnnamed850() {
6707 var o = new core.List<api.PlatformType>(); 6742 var o = new core.List<api.PlatformType>();
6708 o.add(buildPlatformType()); 6743 o.add(buildPlatformType());
6709 o.add(buildPlatformType()); 6744 o.add(buildPlatformType());
6710 return o; 6745 return o;
6711 } 6746 }
6712 6747
6713 checkUnnamed437(core.List<api.PlatformType> o) { 6748 checkUnnamed850(core.List<api.PlatformType> o) {
6714 unittest.expect(o, unittest.hasLength(2)); 6749 unittest.expect(o, unittest.hasLength(2));
6715 checkPlatformType(o[0]); 6750 checkPlatformType(o[0]);
6716 checkPlatformType(o[1]); 6751 checkPlatformType(o[1]);
6717 } 6752 }
6718 6753
6719 core.int buildCounterTechnologyTargeting = 0; 6754 core.int buildCounterTechnologyTargeting = 0;
6720 buildTechnologyTargeting() { 6755 buildTechnologyTargeting() {
6721 var o = new api.TechnologyTargeting(); 6756 var o = new api.TechnologyTargeting();
6722 buildCounterTechnologyTargeting++; 6757 buildCounterTechnologyTargeting++;
6723 if (buildCounterTechnologyTargeting < 3) { 6758 if (buildCounterTechnologyTargeting < 3) {
6724 o.browsers = buildUnnamed432(); 6759 o.browsers = buildUnnamed845();
6725 o.connectionTypes = buildUnnamed433(); 6760 o.connectionTypes = buildUnnamed846();
6726 o.mobileCarriers = buildUnnamed434(); 6761 o.mobileCarriers = buildUnnamed847();
6727 o.operatingSystemVersions = buildUnnamed435(); 6762 o.operatingSystemVersions = buildUnnamed848();
6728 o.operatingSystems = buildUnnamed436(); 6763 o.operatingSystems = buildUnnamed849();
6729 o.platformTypes = buildUnnamed437(); 6764 o.platformTypes = buildUnnamed850();
6730 } 6765 }
6731 buildCounterTechnologyTargeting--; 6766 buildCounterTechnologyTargeting--;
6732 return o; 6767 return o;
6733 } 6768 }
6734 6769
6735 checkTechnologyTargeting(api.TechnologyTargeting o) { 6770 checkTechnologyTargeting(api.TechnologyTargeting o) {
6736 buildCounterTechnologyTargeting++; 6771 buildCounterTechnologyTargeting++;
6737 if (buildCounterTechnologyTargeting < 3) { 6772 if (buildCounterTechnologyTargeting < 3) {
6738 checkUnnamed432(o.browsers); 6773 checkUnnamed845(o.browsers);
6739 checkUnnamed433(o.connectionTypes); 6774 checkUnnamed846(o.connectionTypes);
6740 checkUnnamed434(o.mobileCarriers); 6775 checkUnnamed847(o.mobileCarriers);
6741 checkUnnamed435(o.operatingSystemVersions); 6776 checkUnnamed848(o.operatingSystemVersions);
6742 checkUnnamed436(o.operatingSystems); 6777 checkUnnamed849(o.operatingSystems);
6743 checkUnnamed437(o.platformTypes); 6778 checkUnnamed850(o.platformTypes);
6744 } 6779 }
6745 buildCounterTechnologyTargeting--; 6780 buildCounterTechnologyTargeting--;
6746 } 6781 }
6747 6782
6748 core.int buildCounterThirdPartyTrackingUrl = 0; 6783 core.int buildCounterThirdPartyTrackingUrl = 0;
6749 buildThirdPartyTrackingUrl() { 6784 buildThirdPartyTrackingUrl() {
6750 var o = new api.ThirdPartyTrackingUrl(); 6785 var o = new api.ThirdPartyTrackingUrl();
6751 buildCounterThirdPartyTrackingUrl++; 6786 buildCounterThirdPartyTrackingUrl++;
6752 if (buildCounterThirdPartyTrackingUrl < 3) { 6787 if (buildCounterThirdPartyTrackingUrl < 3) {
6753 o.thirdPartyUrlType = "foo"; 6788 o.thirdPartyUrlType = "foo";
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
6815 unittest.expect(o.etag, unittest.equals('foo')); 6850 unittest.expect(o.etag, unittest.equals('foo'));
6816 unittest.expect(o.kind, unittest.equals('foo')); 6851 unittest.expect(o.kind, unittest.equals('foo'));
6817 unittest.expect(o.profileId, unittest.equals('foo')); 6852 unittest.expect(o.profileId, unittest.equals('foo'));
6818 unittest.expect(o.subAccountId, unittest.equals('foo')); 6853 unittest.expect(o.subAccountId, unittest.equals('foo'));
6819 unittest.expect(o.subAccountName, unittest.equals('foo')); 6854 unittest.expect(o.subAccountName, unittest.equals('foo'));
6820 unittest.expect(o.userName, unittest.equals('foo')); 6855 unittest.expect(o.userName, unittest.equals('foo'));
6821 } 6856 }
6822 buildCounterUserProfile--; 6857 buildCounterUserProfile--;
6823 } 6858 }
6824 6859
6825 buildUnnamed438() { 6860 buildUnnamed851() {
6826 var o = new core.List<api.UserProfile>(); 6861 var o = new core.List<api.UserProfile>();
6827 o.add(buildUserProfile()); 6862 o.add(buildUserProfile());
6828 o.add(buildUserProfile()); 6863 o.add(buildUserProfile());
6829 return o; 6864 return o;
6830 } 6865 }
6831 6866
6832 checkUnnamed438(core.List<api.UserProfile> o) { 6867 checkUnnamed851(core.List<api.UserProfile> o) {
6833 unittest.expect(o, unittest.hasLength(2)); 6868 unittest.expect(o, unittest.hasLength(2));
6834 checkUserProfile(o[0]); 6869 checkUserProfile(o[0]);
6835 checkUserProfile(o[1]); 6870 checkUserProfile(o[1]);
6836 } 6871 }
6837 6872
6838 core.int buildCounterUserProfileList = 0; 6873 core.int buildCounterUserProfileList = 0;
6839 buildUserProfileList() { 6874 buildUserProfileList() {
6840 var o = new api.UserProfileList(); 6875 var o = new api.UserProfileList();
6841 buildCounterUserProfileList++; 6876 buildCounterUserProfileList++;
6842 if (buildCounterUserProfileList < 3) { 6877 if (buildCounterUserProfileList < 3) {
6843 o.etag = "foo"; 6878 o.etag = "foo";
6844 o.items = buildUnnamed438(); 6879 o.items = buildUnnamed851();
6845 o.kind = "foo"; 6880 o.kind = "foo";
6846 } 6881 }
6847 buildCounterUserProfileList--; 6882 buildCounterUserProfileList--;
6848 return o; 6883 return o;
6849 } 6884 }
6850 6885
6851 checkUserProfileList(api.UserProfileList o) { 6886 checkUserProfileList(api.UserProfileList o) {
6852 buildCounterUserProfileList++; 6887 buildCounterUserProfileList++;
6853 if (buildCounterUserProfileList < 3) { 6888 if (buildCounterUserProfileList < 3) {
6854 unittest.expect(o.etag, unittest.equals('foo')); 6889 unittest.expect(o.etag, unittest.equals('foo'));
6855 checkUnnamed438(o.items); 6890 checkUnnamed851(o.items);
6856 unittest.expect(o.kind, unittest.equals('foo')); 6891 unittest.expect(o.kind, unittest.equals('foo'));
6857 } 6892 }
6858 buildCounterUserProfileList--; 6893 buildCounterUserProfileList--;
6859 } 6894 }
6860 6895
6861 buildUnnamed439() { 6896 buildUnnamed852() {
6862 var o = new core.List<api.UserRolePermission>(); 6897 var o = new core.List<api.UserRolePermission>();
6863 o.add(buildUserRolePermission()); 6898 o.add(buildUserRolePermission());
6864 o.add(buildUserRolePermission()); 6899 o.add(buildUserRolePermission());
6865 return o; 6900 return o;
6866 } 6901 }
6867 6902
6868 checkUnnamed439(core.List<api.UserRolePermission> o) { 6903 checkUnnamed852(core.List<api.UserRolePermission> o) {
6869 unittest.expect(o, unittest.hasLength(2)); 6904 unittest.expect(o, unittest.hasLength(2));
6870 checkUserRolePermission(o[0]); 6905 checkUserRolePermission(o[0]);
6871 checkUserRolePermission(o[1]); 6906 checkUserRolePermission(o[1]);
6872 } 6907 }
6873 6908
6874 core.int buildCounterUserRole = 0; 6909 core.int buildCounterUserRole = 0;
6875 buildUserRole() { 6910 buildUserRole() {
6876 var o = new api.UserRole(); 6911 var o = new api.UserRole();
6877 buildCounterUserRole++; 6912 buildCounterUserRole++;
6878 if (buildCounterUserRole < 3) { 6913 if (buildCounterUserRole < 3) {
6879 o.accountId = "foo"; 6914 o.accountId = "foo";
6880 o.defaultUserRole = true; 6915 o.defaultUserRole = true;
6881 o.id = "foo"; 6916 o.id = "foo";
6882 o.kind = "foo"; 6917 o.kind = "foo";
6883 o.name = "foo"; 6918 o.name = "foo";
6884 o.parentUserRoleId = "foo"; 6919 o.parentUserRoleId = "foo";
6885 o.permissions = buildUnnamed439(); 6920 o.permissions = buildUnnamed852();
6886 o.subaccountId = "foo"; 6921 o.subaccountId = "foo";
6887 } 6922 }
6888 buildCounterUserRole--; 6923 buildCounterUserRole--;
6889 return o; 6924 return o;
6890 } 6925 }
6891 6926
6892 checkUserRole(api.UserRole o) { 6927 checkUserRole(api.UserRole o) {
6893 buildCounterUserRole++; 6928 buildCounterUserRole++;
6894 if (buildCounterUserRole < 3) { 6929 if (buildCounterUserRole < 3) {
6895 unittest.expect(o.accountId, unittest.equals('foo')); 6930 unittest.expect(o.accountId, unittest.equals('foo'));
6896 unittest.expect(o.defaultUserRole, unittest.isTrue); 6931 unittest.expect(o.defaultUserRole, unittest.isTrue);
6897 unittest.expect(o.id, unittest.equals('foo')); 6932 unittest.expect(o.id, unittest.equals('foo'));
6898 unittest.expect(o.kind, unittest.equals('foo')); 6933 unittest.expect(o.kind, unittest.equals('foo'));
6899 unittest.expect(o.name, unittest.equals('foo')); 6934 unittest.expect(o.name, unittest.equals('foo'));
6900 unittest.expect(o.parentUserRoleId, unittest.equals('foo')); 6935 unittest.expect(o.parentUserRoleId, unittest.equals('foo'));
6901 checkUnnamed439(o.permissions); 6936 checkUnnamed852(o.permissions);
6902 unittest.expect(o.subaccountId, unittest.equals('foo')); 6937 unittest.expect(o.subaccountId, unittest.equals('foo'));
6903 } 6938 }
6904 buildCounterUserRole--; 6939 buildCounterUserRole--;
6905 } 6940 }
6906 6941
6907 core.int buildCounterUserRolePermission = 0; 6942 core.int buildCounterUserRolePermission = 0;
6908 buildUserRolePermission() { 6943 buildUserRolePermission() {
6909 var o = new api.UserRolePermission(); 6944 var o = new api.UserRolePermission();
6910 buildCounterUserRolePermission++; 6945 buildCounterUserRolePermission++;
6911 if (buildCounterUserRolePermission < 3) { 6946 if (buildCounterUserRolePermission < 3) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
6947 checkUserRolePermissionGroup(api.UserRolePermissionGroup o) { 6982 checkUserRolePermissionGroup(api.UserRolePermissionGroup o) {
6948 buildCounterUserRolePermissionGroup++; 6983 buildCounterUserRolePermissionGroup++;
6949 if (buildCounterUserRolePermissionGroup < 3) { 6984 if (buildCounterUserRolePermissionGroup < 3) {
6950 unittest.expect(o.id, unittest.equals('foo')); 6985 unittest.expect(o.id, unittest.equals('foo'));
6951 unittest.expect(o.kind, unittest.equals('foo')); 6986 unittest.expect(o.kind, unittest.equals('foo'));
6952 unittest.expect(o.name, unittest.equals('foo')); 6987 unittest.expect(o.name, unittest.equals('foo'));
6953 } 6988 }
6954 buildCounterUserRolePermissionGroup--; 6989 buildCounterUserRolePermissionGroup--;
6955 } 6990 }
6956 6991
6957 buildUnnamed440() { 6992 buildUnnamed853() {
6958 var o = new core.List<api.UserRolePermissionGroup>(); 6993 var o = new core.List<api.UserRolePermissionGroup>();
6959 o.add(buildUserRolePermissionGroup()); 6994 o.add(buildUserRolePermissionGroup());
6960 o.add(buildUserRolePermissionGroup()); 6995 o.add(buildUserRolePermissionGroup());
6961 return o; 6996 return o;
6962 } 6997 }
6963 6998
6964 checkUnnamed440(core.List<api.UserRolePermissionGroup> o) { 6999 checkUnnamed853(core.List<api.UserRolePermissionGroup> o) {
6965 unittest.expect(o, unittest.hasLength(2)); 7000 unittest.expect(o, unittest.hasLength(2));
6966 checkUserRolePermissionGroup(o[0]); 7001 checkUserRolePermissionGroup(o[0]);
6967 checkUserRolePermissionGroup(o[1]); 7002 checkUserRolePermissionGroup(o[1]);
6968 } 7003 }
6969 7004
6970 core.int buildCounterUserRolePermissionGroupsListResponse = 0; 7005 core.int buildCounterUserRolePermissionGroupsListResponse = 0;
6971 buildUserRolePermissionGroupsListResponse() { 7006 buildUserRolePermissionGroupsListResponse() {
6972 var o = new api.UserRolePermissionGroupsListResponse(); 7007 var o = new api.UserRolePermissionGroupsListResponse();
6973 buildCounterUserRolePermissionGroupsListResponse++; 7008 buildCounterUserRolePermissionGroupsListResponse++;
6974 if (buildCounterUserRolePermissionGroupsListResponse < 3) { 7009 if (buildCounterUserRolePermissionGroupsListResponse < 3) {
6975 o.kind = "foo"; 7010 o.kind = "foo";
6976 o.userRolePermissionGroups = buildUnnamed440(); 7011 o.userRolePermissionGroups = buildUnnamed853();
6977 } 7012 }
6978 buildCounterUserRolePermissionGroupsListResponse--; 7013 buildCounterUserRolePermissionGroupsListResponse--;
6979 return o; 7014 return o;
6980 } 7015 }
6981 7016
6982 checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListRespon se o) { 7017 checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListRespon se o) {
6983 buildCounterUserRolePermissionGroupsListResponse++; 7018 buildCounterUserRolePermissionGroupsListResponse++;
6984 if (buildCounterUserRolePermissionGroupsListResponse < 3) { 7019 if (buildCounterUserRolePermissionGroupsListResponse < 3) {
6985 unittest.expect(o.kind, unittest.equals('foo')); 7020 unittest.expect(o.kind, unittest.equals('foo'));
6986 checkUnnamed440(o.userRolePermissionGroups); 7021 checkUnnamed853(o.userRolePermissionGroups);
6987 } 7022 }
6988 buildCounterUserRolePermissionGroupsListResponse--; 7023 buildCounterUserRolePermissionGroupsListResponse--;
6989 } 7024 }
6990 7025
6991 buildUnnamed441() { 7026 buildUnnamed854() {
6992 var o = new core.List<api.UserRolePermission>(); 7027 var o = new core.List<api.UserRolePermission>();
6993 o.add(buildUserRolePermission()); 7028 o.add(buildUserRolePermission());
6994 o.add(buildUserRolePermission()); 7029 o.add(buildUserRolePermission());
6995 return o; 7030 return o;
6996 } 7031 }
6997 7032
6998 checkUnnamed441(core.List<api.UserRolePermission> o) { 7033 checkUnnamed854(core.List<api.UserRolePermission> o) {
6999 unittest.expect(o, unittest.hasLength(2)); 7034 unittest.expect(o, unittest.hasLength(2));
7000 checkUserRolePermission(o[0]); 7035 checkUserRolePermission(o[0]);
7001 checkUserRolePermission(o[1]); 7036 checkUserRolePermission(o[1]);
7002 } 7037 }
7003 7038
7004 core.int buildCounterUserRolePermissionsListResponse = 0; 7039 core.int buildCounterUserRolePermissionsListResponse = 0;
7005 buildUserRolePermissionsListResponse() { 7040 buildUserRolePermissionsListResponse() {
7006 var o = new api.UserRolePermissionsListResponse(); 7041 var o = new api.UserRolePermissionsListResponse();
7007 buildCounterUserRolePermissionsListResponse++; 7042 buildCounterUserRolePermissionsListResponse++;
7008 if (buildCounterUserRolePermissionsListResponse < 3) { 7043 if (buildCounterUserRolePermissionsListResponse < 3) {
7009 o.kind = "foo"; 7044 o.kind = "foo";
7010 o.userRolePermissions = buildUnnamed441(); 7045 o.userRolePermissions = buildUnnamed854();
7011 } 7046 }
7012 buildCounterUserRolePermissionsListResponse--; 7047 buildCounterUserRolePermissionsListResponse--;
7013 return o; 7048 return o;
7014 } 7049 }
7015 7050
7016 checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) { 7051 checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) {
7017 buildCounterUserRolePermissionsListResponse++; 7052 buildCounterUserRolePermissionsListResponse++;
7018 if (buildCounterUserRolePermissionsListResponse < 3) { 7053 if (buildCounterUserRolePermissionsListResponse < 3) {
7019 unittest.expect(o.kind, unittest.equals('foo')); 7054 unittest.expect(o.kind, unittest.equals('foo'));
7020 checkUnnamed441(o.userRolePermissions); 7055 checkUnnamed854(o.userRolePermissions);
7021 } 7056 }
7022 buildCounterUserRolePermissionsListResponse--; 7057 buildCounterUserRolePermissionsListResponse--;
7023 } 7058 }
7024 7059
7025 buildUnnamed442() { 7060 buildUnnamed855() {
7026 var o = new core.List<api.UserRole>(); 7061 var o = new core.List<api.UserRole>();
7027 o.add(buildUserRole()); 7062 o.add(buildUserRole());
7028 o.add(buildUserRole()); 7063 o.add(buildUserRole());
7029 return o; 7064 return o;
7030 } 7065 }
7031 7066
7032 checkUnnamed442(core.List<api.UserRole> o) { 7067 checkUnnamed855(core.List<api.UserRole> o) {
7033 unittest.expect(o, unittest.hasLength(2)); 7068 unittest.expect(o, unittest.hasLength(2));
7034 checkUserRole(o[0]); 7069 checkUserRole(o[0]);
7035 checkUserRole(o[1]); 7070 checkUserRole(o[1]);
7036 } 7071 }
7037 7072
7038 core.int buildCounterUserRolesListResponse = 0; 7073 core.int buildCounterUserRolesListResponse = 0;
7039 buildUserRolesListResponse() { 7074 buildUserRolesListResponse() {
7040 var o = new api.UserRolesListResponse(); 7075 var o = new api.UserRolesListResponse();
7041 buildCounterUserRolesListResponse++; 7076 buildCounterUserRolesListResponse++;
7042 if (buildCounterUserRolesListResponse < 3) { 7077 if (buildCounterUserRolesListResponse < 3) {
7043 o.kind = "foo"; 7078 o.kind = "foo";
7044 o.nextPageToken = "foo"; 7079 o.nextPageToken = "foo";
7045 o.userRoles = buildUnnamed442(); 7080 o.userRoles = buildUnnamed855();
7046 } 7081 }
7047 buildCounterUserRolesListResponse--; 7082 buildCounterUserRolesListResponse--;
7048 return o; 7083 return o;
7049 } 7084 }
7050 7085
7051 checkUserRolesListResponse(api.UserRolesListResponse o) { 7086 checkUserRolesListResponse(api.UserRolesListResponse o) {
7052 buildCounterUserRolesListResponse++; 7087 buildCounterUserRolesListResponse++;
7053 if (buildCounterUserRolesListResponse < 3) { 7088 if (buildCounterUserRolesListResponse < 3) {
7054 unittest.expect(o.kind, unittest.equals('foo')); 7089 unittest.expect(o.kind, unittest.equals('foo'));
7055 unittest.expect(o.nextPageToken, unittest.equals('foo')); 7090 unittest.expect(o.nextPageToken, unittest.equals('foo'));
7056 checkUnnamed442(o.userRoles); 7091 checkUnnamed855(o.userRoles);
7057 } 7092 }
7058 buildCounterUserRolesListResponse--; 7093 buildCounterUserRolesListResponse--;
7059 } 7094 }
7060 7095
7061 buildUnnamed443() { 7096 buildUnnamed856() {
7062 var o = new core.List<core.String>(); 7097 var o = new core.List<core.String>();
7063 o.add("foo"); 7098 o.add("foo");
7064 o.add("foo"); 7099 o.add("foo");
7065 return o; 7100 return o;
7066 } 7101 }
7067 7102
7068 checkUnnamed443(core.List<core.String> o) { 7103 checkUnnamed856(core.List<core.String> o) {
7069 unittest.expect(o, unittest.hasLength(2)); 7104 unittest.expect(o, unittest.hasLength(2));
7070 unittest.expect(o[0], unittest.equals('foo')); 7105 unittest.expect(o[0], unittest.equals('foo'));
7071 unittest.expect(o[1], unittest.equals('foo')); 7106 unittest.expect(o[1], unittest.equals('foo'));
7072 } 7107 }
7073 7108
7074 buildUnnamed444() { 7109 buildUnnamed857() {
7075 var o = new core.List<core.String>(); 7110 var o = new core.List<core.String>();
7076 o.add("foo"); 7111 o.add("foo");
7077 o.add("foo"); 7112 o.add("foo");
7078 return o; 7113 return o;
7079 } 7114 }
7080 7115
7081 checkUnnamed444(core.List<core.String> o) { 7116 checkUnnamed857(core.List<core.String> o) {
7082 unittest.expect(o, unittest.hasLength(2)); 7117 unittest.expect(o, unittest.hasLength(2));
7083 unittest.expect(o[0], unittest.equals('foo')); 7118 unittest.expect(o[0], unittest.equals('foo'));
7084 unittest.expect(o[1], unittest.equals('foo')); 7119 unittest.expect(o[1], unittest.equals('foo'));
7085 } 7120 }
7086 7121
7087 buildUnnamed445() { 7122 buildUnnamed858() {
7088 var o = new core.List<core.String>(); 7123 var o = new core.List<core.String>();
7089 o.add("foo"); 7124 o.add("foo");
7090 o.add("foo"); 7125 o.add("foo");
7091 return o; 7126 return o;
7092 } 7127 }
7093 7128
7094 checkUnnamed445(core.List<core.String> o) { 7129 checkUnnamed858(core.List<core.String> o) {
7095 unittest.expect(o, unittest.hasLength(2)); 7130 unittest.expect(o, unittest.hasLength(2));
7096 unittest.expect(o[0], unittest.equals('foo')); 7131 unittest.expect(o[0], unittest.equals('foo'));
7097 unittest.expect(o[1], unittest.equals('foo')); 7132 unittest.expect(o[1], unittest.equals('foo'));
7098 } 7133 }
7099 7134
7100 buildUnnamed446() { 7135 buildUnnamed859() {
7101 var o = new core.List<core.String>(); 7136 var o = new core.List<core.String>();
7102 o.add("foo"); 7137 o.add("foo");
7103 o.add("foo"); 7138 o.add("foo");
7104 return o; 7139 return o;
7105 } 7140 }
7106 7141
7107 checkUnnamed446(core.List<core.String> o) { 7142 checkUnnamed859(core.List<core.String> o) {
7108 unittest.expect(o, unittest.hasLength(2)); 7143 unittest.expect(o, unittest.hasLength(2));
7109 unittest.expect(o[0], unittest.equals('foo')); 7144 unittest.expect(o[0], unittest.equals('foo'));
7110 unittest.expect(o[1], unittest.equals('foo')); 7145 unittest.expect(o[1], unittest.equals('foo'));
7111 } 7146 }
7112 7147
7113 buildUnnamed447() { 7148 buildUnnamed860() {
7114 var o = new core.List<core.String>(); 7149 var o = new core.List<core.String>();
7115 o.add("foo"); 7150 o.add("foo");
7116 o.add("foo"); 7151 o.add("foo");
7117 return o; 7152 return o;
7118 } 7153 }
7119 7154
7120 checkUnnamed447(core.List<core.String> o) { 7155 checkUnnamed860(core.List<core.String> o) {
7121 unittest.expect(o, unittest.hasLength(2)); 7156 unittest.expect(o, unittest.hasLength(2));
7122 unittest.expect(o[0], unittest.equals('foo')); 7157 unittest.expect(o[0], unittest.equals('foo'));
7123 unittest.expect(o[1], unittest.equals('foo')); 7158 unittest.expect(o[1], unittest.equals('foo'));
7124 } 7159 }
7125 7160
7126 buildUnnamed448() { 7161 buildUnnamed861() {
7127 var o = new core.List<core.String>(); 7162 var o = new core.List<core.String>();
7128 o.add("foo"); 7163 o.add("foo");
7129 o.add("foo"); 7164 o.add("foo");
7130 return o; 7165 return o;
7131 } 7166 }
7132 7167
7133 checkUnnamed448(core.List<core.String> o) { 7168 checkUnnamed861(core.List<core.String> o) {
7134 unittest.expect(o, unittest.hasLength(2)); 7169 unittest.expect(o, unittest.hasLength(2));
7135 unittest.expect(o[0], unittest.equals('foo')); 7170 unittest.expect(o[0], unittest.equals('foo'));
7136 unittest.expect(o[1], unittest.equals('foo')); 7171 unittest.expect(o[1], unittest.equals('foo'));
7137 } 7172 }
7138 7173
7139 buildUnnamed449() { 7174 buildUnnamed862() {
7140 var o = new core.List<core.String>(); 7175 var o = new core.List<core.String>();
7141 o.add("foo"); 7176 o.add("foo");
7142 o.add("foo"); 7177 o.add("foo");
7143 return o; 7178 return o;
7144 } 7179 }
7145 7180
7146 checkUnnamed449(core.List<core.String> o) { 7181 checkUnnamed862(core.List<core.String> o) {
7147 unittest.expect(o, unittest.hasLength(2)); 7182 unittest.expect(o, unittest.hasLength(2));
7148 unittest.expect(o[0], unittest.equals('foo')); 7183 unittest.expect(o[0], unittest.equals('foo'));
7149 unittest.expect(o[1], unittest.equals('foo')); 7184 unittest.expect(o[1], unittest.equals('foo'));
7150 } 7185 }
7151 7186
7152 buildUnnamed450() { 7187 buildUnnamed863() {
7153 var o = new core.List<core.String>(); 7188 var o = new core.List<core.String>();
7154 o.add("foo"); 7189 o.add("foo");
7155 o.add("foo"); 7190 o.add("foo");
7156 return o; 7191 return o;
7157 } 7192 }
7158 7193
7159 checkUnnamed450(core.List<core.String> o) { 7194 checkUnnamed863(core.List<core.String> o) {
7160 unittest.expect(o, unittest.hasLength(2)); 7195 unittest.expect(o, unittest.hasLength(2));
7161 unittest.expect(o[0], unittest.equals('foo')); 7196 unittest.expect(o[0], unittest.equals('foo'));
7162 unittest.expect(o[1], unittest.equals('foo')); 7197 unittest.expect(o[1], unittest.equals('foo'));
7163 } 7198 }
7164 7199
7165 buildUnnamed451() { 7200 buildUnnamed864() {
7166 var o = new core.List<core.String>(); 7201 var o = new core.List<core.String>();
7167 o.add("foo"); 7202 o.add("foo");
7168 o.add("foo"); 7203 o.add("foo");
7169 return o; 7204 return o;
7170 } 7205 }
7171 7206
7172 checkUnnamed451(core.List<core.String> o) { 7207 checkUnnamed864(core.List<core.String> o) {
7173 unittest.expect(o, unittest.hasLength(2)); 7208 unittest.expect(o, unittest.hasLength(2));
7174 unittest.expect(o[0], unittest.equals('foo')); 7209 unittest.expect(o[0], unittest.equals('foo'));
7175 unittest.expect(o[1], unittest.equals('foo')); 7210 unittest.expect(o[1], unittest.equals('foo'));
7176 } 7211 }
7177 7212
7178 buildUnnamed452() { 7213 buildUnnamed865() {
7179 var o = new core.List<core.String>(); 7214 var o = new core.List<core.String>();
7180 o.add("foo"); 7215 o.add("foo");
7181 o.add("foo"); 7216 o.add("foo");
7182 return o; 7217 return o;
7183 } 7218 }
7184 7219
7185 checkUnnamed452(core.List<core.String> o) { 7220 checkUnnamed865(core.List<core.String> o) {
7186 unittest.expect(o, unittest.hasLength(2)); 7221 unittest.expect(o, unittest.hasLength(2));
7187 unittest.expect(o[0], unittest.equals('foo')); 7222 unittest.expect(o[0], unittest.equals('foo'));
7188 unittest.expect(o[1], unittest.equals('foo')); 7223 unittest.expect(o[1], unittest.equals('foo'));
7189 } 7224 }
7190 7225
7191 buildUnnamed453() { 7226 buildUnnamed866() {
7192 var o = new core.List<core.String>(); 7227 var o = new core.List<core.String>();
7193 o.add("foo"); 7228 o.add("foo");
7194 o.add("foo"); 7229 o.add("foo");
7195 return o; 7230 return o;
7196 } 7231 }
7197 7232
7198 checkUnnamed453(core.List<core.String> o) { 7233 checkUnnamed866(core.List<core.String> o) {
7199 unittest.expect(o, unittest.hasLength(2)); 7234 unittest.expect(o, unittest.hasLength(2));
7200 unittest.expect(o[0], unittest.equals('foo')); 7235 unittest.expect(o[0], unittest.equals('foo'));
7201 unittest.expect(o[1], unittest.equals('foo')); 7236 unittest.expect(o[1], unittest.equals('foo'));
7202 } 7237 }
7203 7238
7204 buildUnnamed454() { 7239 buildUnnamed867() {
7205 var o = new core.List<core.String>(); 7240 var o = new core.List<core.String>();
7206 o.add("foo"); 7241 o.add("foo");
7207 o.add("foo"); 7242 o.add("foo");
7208 return o; 7243 return o;
7209 } 7244 }
7210 7245
7211 checkUnnamed454(core.List<core.String> o) { 7246 checkUnnamed867(core.List<core.String> o) {
7212 unittest.expect(o, unittest.hasLength(2)); 7247 unittest.expect(o, unittest.hasLength(2));
7213 unittest.expect(o[0], unittest.equals('foo')); 7248 unittest.expect(o[0], unittest.equals('foo'));
7214 unittest.expect(o[1], unittest.equals('foo')); 7249 unittest.expect(o[1], unittest.equals('foo'));
7215 } 7250 }
7216 7251
7217 buildUnnamed455() { 7252 buildUnnamed868() {
7218 var o = new core.List<core.String>(); 7253 var o = new core.List<core.String>();
7219 o.add("foo"); 7254 o.add("foo");
7220 o.add("foo"); 7255 o.add("foo");
7221 return o; 7256 return o;
7222 } 7257 }
7223 7258
7224 checkUnnamed455(core.List<core.String> o) { 7259 checkUnnamed868(core.List<core.String> o) {
7225 unittest.expect(o, unittest.hasLength(2)); 7260 unittest.expect(o, unittest.hasLength(2));
7226 unittest.expect(o[0], unittest.equals('foo')); 7261 unittest.expect(o[0], unittest.equals('foo'));
7227 unittest.expect(o[1], unittest.equals('foo')); 7262 unittest.expect(o[1], unittest.equals('foo'));
7228 } 7263 }
7229 7264
7230 buildUnnamed456() { 7265 buildUnnamed869() {
7231 var o = new core.List<core.String>(); 7266 var o = new core.List<core.String>();
7232 o.add("foo"); 7267 o.add("foo");
7233 o.add("foo"); 7268 o.add("foo");
7234 return o; 7269 return o;
7235 } 7270 }
7236 7271
7237 checkUnnamed456(core.List<core.String> o) { 7272 checkUnnamed869(core.List<core.String> o) {
7238 unittest.expect(o, unittest.hasLength(2)); 7273 unittest.expect(o, unittest.hasLength(2));
7239 unittest.expect(o[0], unittest.equals('foo')); 7274 unittest.expect(o[0], unittest.equals('foo'));
7240 unittest.expect(o[1], unittest.equals('foo')); 7275 unittest.expect(o[1], unittest.equals('foo'));
7241 } 7276 }
7242 7277
7243 buildUnnamed457() { 7278 buildUnnamed870() {
7244 var o = new core.List<core.String>(); 7279 var o = new core.List<core.String>();
7245 o.add("foo"); 7280 o.add("foo");
7246 o.add("foo"); 7281 o.add("foo");
7247 return o; 7282 return o;
7248 } 7283 }
7249 7284
7250 checkUnnamed457(core.List<core.String> o) { 7285 checkUnnamed870(core.List<core.String> o) {
7251 unittest.expect(o, unittest.hasLength(2)); 7286 unittest.expect(o, unittest.hasLength(2));
7252 unittest.expect(o[0], unittest.equals('foo')); 7287 unittest.expect(o[0], unittest.equals('foo'));
7253 unittest.expect(o[1], unittest.equals('foo')); 7288 unittest.expect(o[1], unittest.equals('foo'));
7254 } 7289 }
7255 7290
7256 buildUnnamed458() { 7291 buildUnnamed871() {
7257 var o = new core.List<core.String>(); 7292 var o = new core.List<core.String>();
7258 o.add("foo"); 7293 o.add("foo");
7259 o.add("foo"); 7294 o.add("foo");
7260 return o; 7295 return o;
7261 } 7296 }
7262 7297
7263 checkUnnamed458(core.List<core.String> o) { 7298 checkUnnamed871(core.List<core.String> o) {
7264 unittest.expect(o, unittest.hasLength(2)); 7299 unittest.expect(o, unittest.hasLength(2));
7265 unittest.expect(o[0], unittest.equals('foo')); 7300 unittest.expect(o[0], unittest.equals('foo'));
7266 unittest.expect(o[1], unittest.equals('foo')); 7301 unittest.expect(o[1], unittest.equals('foo'));
7267 } 7302 }
7268 7303
7269 buildUnnamed459() { 7304 buildUnnamed872() {
7270 var o = new core.List<core.String>(); 7305 var o = new core.List<core.String>();
7271 o.add("foo"); 7306 o.add("foo");
7272 o.add("foo"); 7307 o.add("foo");
7273 return o; 7308 return o;
7274 } 7309 }
7275 7310
7276 checkUnnamed459(core.List<core.String> o) { 7311 checkUnnamed872(core.List<core.String> o) {
7277 unittest.expect(o, unittest.hasLength(2)); 7312 unittest.expect(o, unittest.hasLength(2));
7278 unittest.expect(o[0], unittest.equals('foo')); 7313 unittest.expect(o[0], unittest.equals('foo'));
7279 unittest.expect(o[1], unittest.equals('foo')); 7314 unittest.expect(o[1], unittest.equals('foo'));
7280 } 7315 }
7281 7316
7282 buildUnnamed460() { 7317 buildUnnamed873() {
7283 var o = new core.List<core.String>(); 7318 var o = new core.List<core.String>();
7284 o.add("foo"); 7319 o.add("foo");
7285 o.add("foo"); 7320 o.add("foo");
7286 return o; 7321 return o;
7287 } 7322 }
7288 7323
7289 checkUnnamed460(core.List<core.String> o) { 7324 checkUnnamed873(core.List<core.String> o) {
7290 unittest.expect(o, unittest.hasLength(2)); 7325 unittest.expect(o, unittest.hasLength(2));
7291 unittest.expect(o[0], unittest.equals('foo')); 7326 unittest.expect(o[0], unittest.equals('foo'));
7292 unittest.expect(o[1], unittest.equals('foo')); 7327 unittest.expect(o[1], unittest.equals('foo'));
7293 } 7328 }
7294 7329
7295 buildUnnamed461() { 7330 buildUnnamed874() {
7296 var o = new core.List<core.String>(); 7331 var o = new core.List<core.String>();
7297 o.add("foo"); 7332 o.add("foo");
7298 o.add("foo"); 7333 o.add("foo");
7299 return o; 7334 return o;
7300 } 7335 }
7301 7336
7302 checkUnnamed461(core.List<core.String> o) { 7337 checkUnnamed874(core.List<core.String> o) {
7303 unittest.expect(o, unittest.hasLength(2)); 7338 unittest.expect(o, unittest.hasLength(2));
7304 unittest.expect(o[0], unittest.equals('foo')); 7339 unittest.expect(o[0], unittest.equals('foo'));
7305 unittest.expect(o[1], unittest.equals('foo')); 7340 unittest.expect(o[1], unittest.equals('foo'));
7306 } 7341 }
7307 7342
7308 buildUnnamed462() { 7343 buildUnnamed875() {
7309 var o = new core.List<core.String>(); 7344 var o = new core.List<core.String>();
7310 o.add("foo"); 7345 o.add("foo");
7311 o.add("foo"); 7346 o.add("foo");
7312 return o; 7347 return o;
7313 } 7348 }
7314 7349
7315 checkUnnamed462(core.List<core.String> o) { 7350 checkUnnamed875(core.List<core.String> o) {
7316 unittest.expect(o, unittest.hasLength(2)); 7351 unittest.expect(o, unittest.hasLength(2));
7317 unittest.expect(o[0], unittest.equals('foo')); 7352 unittest.expect(o[0], unittest.equals('foo'));
7318 unittest.expect(o[1], unittest.equals('foo')); 7353 unittest.expect(o[1], unittest.equals('foo'));
7319 } 7354 }
7320 7355
7321 buildUnnamed463() { 7356 buildUnnamed876() {
7322 var o = new core.List<core.String>(); 7357 var o = new core.List<core.String>();
7323 o.add("foo"); 7358 o.add("foo");
7324 o.add("foo"); 7359 o.add("foo");
7325 return o; 7360 return o;
7326 } 7361 }
7327 7362
7328 checkUnnamed463(core.List<core.String> o) { 7363 checkUnnamed876(core.List<core.String> o) {
7329 unittest.expect(o, unittest.hasLength(2)); 7364 unittest.expect(o, unittest.hasLength(2));
7330 unittest.expect(o[0], unittest.equals('foo')); 7365 unittest.expect(o[0], unittest.equals('foo'));
7331 unittest.expect(o[1], unittest.equals('foo')); 7366 unittest.expect(o[1], unittest.equals('foo'));
7332 } 7367 }
7333 7368
7334 buildUnnamed464() { 7369 buildUnnamed877() {
7335 var o = new core.List<core.String>(); 7370 var o = new core.List<core.String>();
7336 o.add("foo"); 7371 o.add("foo");
7337 o.add("foo"); 7372 o.add("foo");
7338 return o; 7373 return o;
7339 } 7374 }
7340 7375
7341 checkUnnamed464(core.List<core.String> o) { 7376 checkUnnamed877(core.List<core.String> o) {
7342 unittest.expect(o, unittest.hasLength(2)); 7377 unittest.expect(o, unittest.hasLength(2));
7343 unittest.expect(o[0], unittest.equals('foo')); 7378 unittest.expect(o[0], unittest.equals('foo'));
7344 unittest.expect(o[1], unittest.equals('foo')); 7379 unittest.expect(o[1], unittest.equals('foo'));
7345 } 7380 }
7346 7381
7347 buildUnnamed465() { 7382 buildUnnamed878() {
7348 var o = new core.List<core.String>(); 7383 var o = new core.List<core.String>();
7349 o.add("foo"); 7384 o.add("foo");
7350 o.add("foo"); 7385 o.add("foo");
7351 return o; 7386 return o;
7352 } 7387 }
7353 7388
7354 checkUnnamed465(core.List<core.String> o) { 7389 checkUnnamed878(core.List<core.String> o) {
7355 unittest.expect(o, unittest.hasLength(2)); 7390 unittest.expect(o, unittest.hasLength(2));
7356 unittest.expect(o[0], unittest.equals('foo')); 7391 unittest.expect(o[0], unittest.equals('foo'));
7357 unittest.expect(o[1], unittest.equals('foo')); 7392 unittest.expect(o[1], unittest.equals('foo'));
7358 } 7393 }
7359 7394
7360 buildUnnamed466() { 7395 buildUnnamed879() {
7361 var o = new core.List<core.String>(); 7396 var o = new core.List<core.String>();
7362 o.add("foo"); 7397 o.add("foo");
7363 o.add("foo"); 7398 o.add("foo");
7364 return o; 7399 return o;
7365 } 7400 }
7366 7401
7367 checkUnnamed466(core.List<core.String> o) { 7402 checkUnnamed879(core.List<core.String> o) {
7368 unittest.expect(o, unittest.hasLength(2)); 7403 unittest.expect(o, unittest.hasLength(2));
7369 unittest.expect(o[0], unittest.equals('foo')); 7404 unittest.expect(o[0], unittest.equals('foo'));
7370 unittest.expect(o[1], unittest.equals('foo')); 7405 unittest.expect(o[1], unittest.equals('foo'));
7371 } 7406 }
7372 7407
7373 buildUnnamed467() { 7408 buildUnnamed880() {
7374 var o = new core.List<core.String>(); 7409 var o = new core.List<core.String>();
7375 o.add("foo"); 7410 o.add("foo");
7376 o.add("foo"); 7411 o.add("foo");
7377 return o; 7412 return o;
7378 } 7413 }
7379 7414
7380 checkUnnamed467(core.List<core.String> o) { 7415 checkUnnamed880(core.List<core.String> o) {
7381 unittest.expect(o, unittest.hasLength(2)); 7416 unittest.expect(o, unittest.hasLength(2));
7382 unittest.expect(o[0], unittest.equals('foo')); 7417 unittest.expect(o[0], unittest.equals('foo'));
7383 unittest.expect(o[1], unittest.equals('foo')); 7418 unittest.expect(o[1], unittest.equals('foo'));
7384 } 7419 }
7385 7420
7386 buildUnnamed468() { 7421 buildUnnamed881() {
7387 var o = new core.List<core.String>(); 7422 var o = new core.List<core.String>();
7388 o.add("foo"); 7423 o.add("foo");
7389 o.add("foo"); 7424 o.add("foo");
7390 return o; 7425 return o;
7391 } 7426 }
7392 7427
7393 checkUnnamed468(core.List<core.String> o) { 7428 checkUnnamed881(core.List<core.String> o) {
7394 unittest.expect(o, unittest.hasLength(2)); 7429 unittest.expect(o, unittest.hasLength(2));
7395 unittest.expect(o[0], unittest.equals('foo')); 7430 unittest.expect(o[0], unittest.equals('foo'));
7396 unittest.expect(o[1], unittest.equals('foo')); 7431 unittest.expect(o[1], unittest.equals('foo'));
7397 } 7432 }
7398 7433
7399 buildUnnamed469() { 7434 buildUnnamed882() {
7400 var o = new core.List<core.String>(); 7435 var o = new core.List<core.String>();
7401 o.add("foo"); 7436 o.add("foo");
7402 o.add("foo"); 7437 o.add("foo");
7403 return o; 7438 return o;
7404 } 7439 }
7405 7440
7406 checkUnnamed469(core.List<core.String> o) { 7441 checkUnnamed882(core.List<core.String> o) {
7407 unittest.expect(o, unittest.hasLength(2)); 7442 unittest.expect(o, unittest.hasLength(2));
7408 unittest.expect(o[0], unittest.equals('foo')); 7443 unittest.expect(o[0], unittest.equals('foo'));
7409 unittest.expect(o[1], unittest.equals('foo')); 7444 unittest.expect(o[1], unittest.equals('foo'));
7410 } 7445 }
7411 7446
7412 buildUnnamed470() { 7447 buildUnnamed883() {
7413 var o = new core.List<core.String>(); 7448 var o = new core.List<core.String>();
7414 o.add("foo"); 7449 o.add("foo");
7415 o.add("foo"); 7450 o.add("foo");
7416 return o; 7451 return o;
7417 } 7452 }
7418 7453
7419 checkUnnamed470(core.List<core.String> o) { 7454 checkUnnamed883(core.List<core.String> o) {
7420 unittest.expect(o, unittest.hasLength(2)); 7455 unittest.expect(o, unittest.hasLength(2));
7421 unittest.expect(o[0], unittest.equals('foo')); 7456 unittest.expect(o[0], unittest.equals('foo'));
7422 unittest.expect(o[1], unittest.equals('foo')); 7457 unittest.expect(o[1], unittest.equals('foo'));
7423 } 7458 }
7424 7459
7425 buildUnnamed471() { 7460 buildUnnamed884() {
7426 var o = new core.List<core.String>(); 7461 var o = new core.List<core.String>();
7427 o.add("foo"); 7462 o.add("foo");
7428 o.add("foo"); 7463 o.add("foo");
7429 return o; 7464 return o;
7430 } 7465 }
7431 7466
7432 checkUnnamed471(core.List<core.String> o) { 7467 checkUnnamed884(core.List<core.String> o) {
7433 unittest.expect(o, unittest.hasLength(2)); 7468 unittest.expect(o, unittest.hasLength(2));
7434 unittest.expect(o[0], unittest.equals('foo')); 7469 unittest.expect(o[0], unittest.equals('foo'));
7435 unittest.expect(o[1], unittest.equals('foo')); 7470 unittest.expect(o[1], unittest.equals('foo'));
7436 } 7471 }
7437 7472
7438 buildUnnamed472() { 7473 buildUnnamed885() {
7439 var o = new core.List<core.String>(); 7474 var o = new core.List<core.String>();
7440 o.add("foo"); 7475 o.add("foo");
7441 o.add("foo"); 7476 o.add("foo");
7442 return o; 7477 return o;
7443 } 7478 }
7444 7479
7445 checkUnnamed472(core.List<core.String> o) { 7480 checkUnnamed885(core.List<core.String> o) {
7446 unittest.expect(o, unittest.hasLength(2)); 7481 unittest.expect(o, unittest.hasLength(2));
7447 unittest.expect(o[0], unittest.equals('foo')); 7482 unittest.expect(o[0], unittest.equals('foo'));
7448 unittest.expect(o[1], unittest.equals('foo')); 7483 unittest.expect(o[1], unittest.equals('foo'));
7449 } 7484 }
7450 7485
7451 buildUnnamed473() { 7486 buildUnnamed886() {
7452 var o = new core.List<core.String>(); 7487 var o = new core.List<core.String>();
7453 o.add("foo"); 7488 o.add("foo");
7454 o.add("foo"); 7489 o.add("foo");
7455 return o; 7490 return o;
7456 } 7491 }
7457 7492
7458 checkUnnamed473(core.List<core.String> o) { 7493 checkUnnamed886(core.List<core.String> o) {
7459 unittest.expect(o, unittest.hasLength(2)); 7494 unittest.expect(o, unittest.hasLength(2));
7460 unittest.expect(o[0], unittest.equals('foo')); 7495 unittest.expect(o[0], unittest.equals('foo'));
7461 unittest.expect(o[1], unittest.equals('foo')); 7496 unittest.expect(o[1], unittest.equals('foo'));
7462 } 7497 }
7463 7498
7464 buildUnnamed474() { 7499 buildUnnamed887() {
7465 var o = new core.List<core.String>(); 7500 var o = new core.List<core.String>();
7466 o.add("foo"); 7501 o.add("foo");
7467 o.add("foo"); 7502 o.add("foo");
7468 return o; 7503 return o;
7469 } 7504 }
7470 7505
7471 checkUnnamed474(core.List<core.String> o) { 7506 checkUnnamed887(core.List<core.String> o) {
7472 unittest.expect(o, unittest.hasLength(2)); 7507 unittest.expect(o, unittest.hasLength(2));
7473 unittest.expect(o[0], unittest.equals('foo')); 7508 unittest.expect(o[0], unittest.equals('foo'));
7474 unittest.expect(o[1], unittest.equals('foo')); 7509 unittest.expect(o[1], unittest.equals('foo'));
7475 } 7510 }
7476 7511
7477 buildUnnamed475() { 7512 buildUnnamed888() {
7478 var o = new core.List<core.String>(); 7513 var o = new core.List<core.String>();
7479 o.add("foo"); 7514 o.add("foo");
7480 o.add("foo"); 7515 o.add("foo");
7481 return o; 7516 return o;
7482 } 7517 }
7483 7518
7484 checkUnnamed475(core.List<core.String> o) { 7519 checkUnnamed888(core.List<core.String> o) {
7485 unittest.expect(o, unittest.hasLength(2)); 7520 unittest.expect(o, unittest.hasLength(2));
7486 unittest.expect(o[0], unittest.equals('foo')); 7521 unittest.expect(o[0], unittest.equals('foo'));
7487 unittest.expect(o[1], unittest.equals('foo')); 7522 unittest.expect(o[1], unittest.equals('foo'));
7488 } 7523 }
7489 7524
7490 buildUnnamed476() { 7525 buildUnnamed889() {
7491 var o = new core.List<core.String>(); 7526 var o = new core.List<core.String>();
7492 o.add("foo"); 7527 o.add("foo");
7493 o.add("foo"); 7528 o.add("foo");
7494 return o; 7529 return o;
7495 } 7530 }
7496 7531
7497 checkUnnamed476(core.List<core.String> o) { 7532 checkUnnamed889(core.List<core.String> o) {
7498 unittest.expect(o, unittest.hasLength(2)); 7533 unittest.expect(o, unittest.hasLength(2));
7499 unittest.expect(o[0], unittest.equals('foo')); 7534 unittest.expect(o[0], unittest.equals('foo'));
7500 unittest.expect(o[1], unittest.equals('foo')); 7535 unittest.expect(o[1], unittest.equals('foo'));
7501 } 7536 }
7502 7537
7503 buildUnnamed477() { 7538 buildUnnamed890() {
7504 var o = new core.List<core.String>(); 7539 var o = new core.List<core.String>();
7505 o.add("foo"); 7540 o.add("foo");
7506 o.add("foo"); 7541 o.add("foo");
7507 return o; 7542 return o;
7508 } 7543 }
7509 7544
7510 checkUnnamed477(core.List<core.String> o) { 7545 checkUnnamed890(core.List<core.String> o) {
7511 unittest.expect(o, unittest.hasLength(2)); 7546 unittest.expect(o, unittest.hasLength(2));
7512 unittest.expect(o[0], unittest.equals('foo')); 7547 unittest.expect(o[0], unittest.equals('foo'));
7513 unittest.expect(o[1], unittest.equals('foo')); 7548 unittest.expect(o[1], unittest.equals('foo'));
7514 } 7549 }
7515 7550
7516 buildUnnamed478() { 7551 buildUnnamed891() {
7517 var o = new core.List<core.String>(); 7552 var o = new core.List<core.String>();
7518 o.add("foo"); 7553 o.add("foo");
7519 o.add("foo"); 7554 o.add("foo");
7520 return o; 7555 return o;
7521 } 7556 }
7522 7557
7523 checkUnnamed478(core.List<core.String> o) { 7558 checkUnnamed891(core.List<core.String> o) {
7524 unittest.expect(o, unittest.hasLength(2)); 7559 unittest.expect(o, unittest.hasLength(2));
7525 unittest.expect(o[0], unittest.equals('foo')); 7560 unittest.expect(o[0], unittest.equals('foo'));
7526 unittest.expect(o[1], unittest.equals('foo')); 7561 unittest.expect(o[1], unittest.equals('foo'));
7527 } 7562 }
7528 7563
7529 buildUnnamed479() { 7564 buildUnnamed892() {
7530 var o = new core.List<core.String>(); 7565 var o = new core.List<core.String>();
7531 o.add("foo"); 7566 o.add("foo");
7532 o.add("foo"); 7567 o.add("foo");
7533 return o; 7568 return o;
7534 } 7569 }
7535 7570
7536 checkUnnamed479(core.List<core.String> o) { 7571 checkUnnamed892(core.List<core.String> o) {
7537 unittest.expect(o, unittest.hasLength(2)); 7572 unittest.expect(o, unittest.hasLength(2));
7538 unittest.expect(o[0], unittest.equals('foo')); 7573 unittest.expect(o[0], unittest.equals('foo'));
7539 unittest.expect(o[1], unittest.equals('foo')); 7574 unittest.expect(o[1], unittest.equals('foo'));
7540 } 7575 }
7541 7576
7542 buildUnnamed480() { 7577 buildUnnamed893() {
7543 var o = new core.List<core.String>(); 7578 var o = new core.List<core.String>();
7544 o.add("foo"); 7579 o.add("foo");
7545 o.add("foo"); 7580 o.add("foo");
7546 return o; 7581 return o;
7547 } 7582 }
7548 7583
7549 checkUnnamed480(core.List<core.String> o) { 7584 checkUnnamed893(core.List<core.String> o) {
7550 unittest.expect(o, unittest.hasLength(2)); 7585 unittest.expect(o, unittest.hasLength(2));
7551 unittest.expect(o[0], unittest.equals('foo')); 7586 unittest.expect(o[0], unittest.equals('foo'));
7552 unittest.expect(o[1], unittest.equals('foo')); 7587 unittest.expect(o[1], unittest.equals('foo'));
7553 } 7588 }
7554 7589
7555 buildUnnamed481() { 7590 buildUnnamed894() {
7556 var o = new core.List<core.String>(); 7591 var o = new core.List<core.String>();
7557 o.add("foo"); 7592 o.add("foo");
7558 o.add("foo"); 7593 o.add("foo");
7559 return o; 7594 return o;
7560 } 7595 }
7561 7596
7562 checkUnnamed481(core.List<core.String> o) { 7597 checkUnnamed894(core.List<core.String> o) {
7563 unittest.expect(o, unittest.hasLength(2)); 7598 unittest.expect(o, unittest.hasLength(2));
7564 unittest.expect(o[0], unittest.equals('foo')); 7599 unittest.expect(o[0], unittest.equals('foo'));
7565 unittest.expect(o[1], unittest.equals('foo')); 7600 unittest.expect(o[1], unittest.equals('foo'));
7566 } 7601 }
7567 7602
7568 buildUnnamed482() { 7603 buildUnnamed895() {
7569 var o = new core.List<core.String>(); 7604 var o = new core.List<core.String>();
7570 o.add("foo"); 7605 o.add("foo");
7571 o.add("foo"); 7606 o.add("foo");
7572 return o; 7607 return o;
7573 } 7608 }
7574 7609
7575 checkUnnamed482(core.List<core.String> o) { 7610 checkUnnamed895(core.List<core.String> o) {
7576 unittest.expect(o, unittest.hasLength(2)); 7611 unittest.expect(o, unittest.hasLength(2));
7577 unittest.expect(o[0], unittest.equals('foo')); 7612 unittest.expect(o[0], unittest.equals('foo'));
7578 unittest.expect(o[1], unittest.equals('foo')); 7613 unittest.expect(o[1], unittest.equals('foo'));
7579 } 7614 }
7580 7615
7581 buildUnnamed483() { 7616 buildUnnamed896() {
7582 var o = new core.List<core.String>(); 7617 var o = new core.List<core.String>();
7583 o.add("foo"); 7618 o.add("foo");
7584 o.add("foo"); 7619 o.add("foo");
7585 return o; 7620 return o;
7586 } 7621 }
7587 7622
7588 checkUnnamed483(core.List<core.String> o) { 7623 checkUnnamed896(core.List<core.String> o) {
7589 unittest.expect(o, unittest.hasLength(2)); 7624 unittest.expect(o, unittest.hasLength(2));
7590 unittest.expect(o[0], unittest.equals('foo')); 7625 unittest.expect(o[0], unittest.equals('foo'));
7591 unittest.expect(o[1], unittest.equals('foo')); 7626 unittest.expect(o[1], unittest.equals('foo'));
7592 } 7627 }
7593 7628
7594 buildUnnamed484() { 7629 buildUnnamed897() {
7595 var o = new core.List<core.String>(); 7630 var o = new core.List<core.String>();
7596 o.add("foo"); 7631 o.add("foo");
7597 o.add("foo"); 7632 o.add("foo");
7598 return o; 7633 return o;
7599 } 7634 }
7600 7635
7601 checkUnnamed484(core.List<core.String> o) { 7636 checkUnnamed897(core.List<core.String> o) {
7602 unittest.expect(o, unittest.hasLength(2)); 7637 unittest.expect(o, unittest.hasLength(2));
7603 unittest.expect(o[0], unittest.equals('foo')); 7638 unittest.expect(o[0], unittest.equals('foo'));
7604 unittest.expect(o[1], unittest.equals('foo')); 7639 unittest.expect(o[1], unittest.equals('foo'));
7605 } 7640 }
7606 7641
7607 buildUnnamed485() { 7642 buildUnnamed898() {
7608 var o = new core.List<core.String>(); 7643 var o = new core.List<core.String>();
7609 o.add("foo"); 7644 o.add("foo");
7610 o.add("foo"); 7645 o.add("foo");
7611 return o; 7646 return o;
7612 } 7647 }
7613 7648
7614 checkUnnamed485(core.List<core.String> o) { 7649 checkUnnamed898(core.List<core.String> o) {
7615 unittest.expect(o, unittest.hasLength(2)); 7650 unittest.expect(o, unittest.hasLength(2));
7616 unittest.expect(o[0], unittest.equals('foo')); 7651 unittest.expect(o[0], unittest.equals('foo'));
7617 unittest.expect(o[1], unittest.equals('foo')); 7652 unittest.expect(o[1], unittest.equals('foo'));
7618 } 7653 }
7619 7654
7620 buildUnnamed486() { 7655 buildUnnamed899() {
7621 var o = new core.List<core.String>(); 7656 var o = new core.List<core.String>();
7622 o.add("foo"); 7657 o.add("foo");
7623 o.add("foo"); 7658 o.add("foo");
7624 return o; 7659 return o;
7625 } 7660 }
7626 7661
7627 checkUnnamed486(core.List<core.String> o) { 7662 checkUnnamed899(core.List<core.String> o) {
7628 unittest.expect(o, unittest.hasLength(2)); 7663 unittest.expect(o, unittest.hasLength(2));
7629 unittest.expect(o[0], unittest.equals('foo')); 7664 unittest.expect(o[0], unittest.equals('foo'));
7630 unittest.expect(o[1], unittest.equals('foo')); 7665 unittest.expect(o[1], unittest.equals('foo'));
7631 } 7666 }
7632 7667
7633 buildUnnamed487() { 7668 buildUnnamed900() {
7634 var o = new core.List<core.String>(); 7669 var o = new core.List<core.String>();
7635 o.add("foo"); 7670 o.add("foo");
7636 o.add("foo"); 7671 o.add("foo");
7637 return o; 7672 return o;
7638 } 7673 }
7639 7674
7640 checkUnnamed487(core.List<core.String> o) { 7675 checkUnnamed900(core.List<core.String> o) {
7641 unittest.expect(o, unittest.hasLength(2)); 7676 unittest.expect(o, unittest.hasLength(2));
7642 unittest.expect(o[0], unittest.equals('foo')); 7677 unittest.expect(o[0], unittest.equals('foo'));
7643 unittest.expect(o[1], unittest.equals('foo')); 7678 unittest.expect(o[1], unittest.equals('foo'));
7644 } 7679 }
7645 7680
7646 buildUnnamed488() { 7681 buildUnnamed901() {
7647 var o = new core.List<core.String>(); 7682 var o = new core.List<core.String>();
7648 o.add("foo"); 7683 o.add("foo");
7649 o.add("foo"); 7684 o.add("foo");
7650 return o; 7685 return o;
7651 } 7686 }
7652 7687
7653 checkUnnamed488(core.List<core.String> o) { 7688 checkUnnamed901(core.List<core.String> o) {
7654 unittest.expect(o, unittest.hasLength(2)); 7689 unittest.expect(o, unittest.hasLength(2));
7655 unittest.expect(o[0], unittest.equals('foo')); 7690 unittest.expect(o[0], unittest.equals('foo'));
7656 unittest.expect(o[1], unittest.equals('foo')); 7691 unittest.expect(o[1], unittest.equals('foo'));
7657 } 7692 }
7658 7693
7659 buildUnnamed489() { 7694 buildUnnamed902() {
7660 var o = new core.List<core.String>(); 7695 var o = new core.List<core.String>();
7661 o.add("foo"); 7696 o.add("foo");
7662 o.add("foo"); 7697 o.add("foo");
7663 return o; 7698 return o;
7664 } 7699 }
7665 7700
7666 checkUnnamed489(core.List<core.String> o) { 7701 checkUnnamed902(core.List<core.String> o) {
7667 unittest.expect(o, unittest.hasLength(2)); 7702 unittest.expect(o, unittest.hasLength(2));
7668 unittest.expect(o[0], unittest.equals('foo')); 7703 unittest.expect(o[0], unittest.equals('foo'));
7669 unittest.expect(o[1], unittest.equals('foo')); 7704 unittest.expect(o[1], unittest.equals('foo'));
7670 } 7705 }
7671 7706
7672 buildUnnamed490() { 7707 buildUnnamed903() {
7673 var o = new core.List<core.String>(); 7708 var o = new core.List<core.String>();
7674 o.add("foo"); 7709 o.add("foo");
7675 o.add("foo"); 7710 o.add("foo");
7676 return o; 7711 return o;
7677 } 7712 }
7678 7713
7679 checkUnnamed490(core.List<core.String> o) { 7714 checkUnnamed903(core.List<core.String> o) {
7680 unittest.expect(o, unittest.hasLength(2)); 7715 unittest.expect(o, unittest.hasLength(2));
7681 unittest.expect(o[0], unittest.equals('foo')); 7716 unittest.expect(o[0], unittest.equals('foo'));
7682 unittest.expect(o[1], unittest.equals('foo')); 7717 unittest.expect(o[1], unittest.equals('foo'));
7683 } 7718 }
7684 7719
7685 buildUnnamed491() { 7720 buildUnnamed904() {
7686 var o = new core.List<core.String>(); 7721 var o = new core.List<core.String>();
7687 o.add("foo"); 7722 o.add("foo");
7688 o.add("foo"); 7723 o.add("foo");
7689 return o; 7724 return o;
7690 } 7725 }
7691 7726
7692 checkUnnamed491(core.List<core.String> o) { 7727 checkUnnamed904(core.List<core.String> o) {
7693 unittest.expect(o, unittest.hasLength(2)); 7728 unittest.expect(o, unittest.hasLength(2));
7694 unittest.expect(o[0], unittest.equals('foo')); 7729 unittest.expect(o[0], unittest.equals('foo'));
7695 unittest.expect(o[1], unittest.equals('foo')); 7730 unittest.expect(o[1], unittest.equals('foo'));
7696 } 7731 }
7697 7732
7698 buildUnnamed492() { 7733 buildUnnamed905() {
7699 var o = new core.List<core.String>(); 7734 var o = new core.List<core.String>();
7700 o.add("foo"); 7735 o.add("foo");
7701 o.add("foo"); 7736 o.add("foo");
7702 return o; 7737 return o;
7703 } 7738 }
7704 7739
7705 checkUnnamed492(core.List<core.String> o) { 7740 checkUnnamed905(core.List<core.String> o) {
7706 unittest.expect(o, unittest.hasLength(2)); 7741 unittest.expect(o, unittest.hasLength(2));
7707 unittest.expect(o[0], unittest.equals('foo')); 7742 unittest.expect(o[0], unittest.equals('foo'));
7708 unittest.expect(o[1], unittest.equals('foo')); 7743 unittest.expect(o[1], unittest.equals('foo'));
7709 } 7744 }
7710 7745
7711 buildUnnamed493() { 7746 buildUnnamed906() {
7712 var o = new core.List<core.String>(); 7747 var o = new core.List<core.String>();
7713 o.add("foo"); 7748 o.add("foo");
7714 o.add("foo"); 7749 o.add("foo");
7715 return o; 7750 return o;
7716 } 7751 }
7717 7752
7718 checkUnnamed493(core.List<core.String> o) { 7753 checkUnnamed906(core.List<core.String> o) {
7719 unittest.expect(o, unittest.hasLength(2)); 7754 unittest.expect(o, unittest.hasLength(2));
7720 unittest.expect(o[0], unittest.equals('foo')); 7755 unittest.expect(o[0], unittest.equals('foo'));
7721 unittest.expect(o[1], unittest.equals('foo')); 7756 unittest.expect(o[1], unittest.equals('foo'));
7722 } 7757 }
7723 7758
7724 buildUnnamed494() { 7759 buildUnnamed907() {
7725 var o = new core.List<core.String>(); 7760 var o = new core.List<core.String>();
7726 o.add("foo"); 7761 o.add("foo");
7727 o.add("foo"); 7762 o.add("foo");
7728 return o; 7763 return o;
7729 } 7764 }
7730 7765
7731 checkUnnamed494(core.List<core.String> o) { 7766 checkUnnamed907(core.List<core.String> o) {
7732 unittest.expect(o, unittest.hasLength(2)); 7767 unittest.expect(o, unittest.hasLength(2));
7733 unittest.expect(o[0], unittest.equals('foo')); 7768 unittest.expect(o[0], unittest.equals('foo'));
7734 unittest.expect(o[1], unittest.equals('foo')); 7769 unittest.expect(o[1], unittest.equals('foo'));
7735 } 7770 }
7736 7771
7737 buildUnnamed495() { 7772 buildUnnamed908() {
7738 var o = new core.List<core.String>(); 7773 var o = new core.List<core.String>();
7739 o.add("foo"); 7774 o.add("foo");
7740 o.add("foo"); 7775 o.add("foo");
7741 return o; 7776 return o;
7742 } 7777 }
7743 7778
7744 checkUnnamed495(core.List<core.String> o) { 7779 checkUnnamed908(core.List<core.String> o) {
7745 unittest.expect(o, unittest.hasLength(2)); 7780 unittest.expect(o, unittest.hasLength(2));
7746 unittest.expect(o[0], unittest.equals('foo')); 7781 unittest.expect(o[0], unittest.equals('foo'));
7747 unittest.expect(o[1], unittest.equals('foo')); 7782 unittest.expect(o[1], unittest.equals('foo'));
7748 } 7783 }
7749 7784
7750 buildUnnamed496() { 7785 buildUnnamed909() {
7751 var o = new core.List<core.String>(); 7786 var o = new core.List<core.String>();
7752 o.add("foo"); 7787 o.add("foo");
7753 o.add("foo"); 7788 o.add("foo");
7754 return o; 7789 return o;
7755 } 7790 }
7756 7791
7757 checkUnnamed496(core.List<core.String> o) { 7792 checkUnnamed909(core.List<core.String> o) {
7758 unittest.expect(o, unittest.hasLength(2)); 7793 unittest.expect(o, unittest.hasLength(2));
7759 unittest.expect(o[0], unittest.equals('foo')); 7794 unittest.expect(o[0], unittest.equals('foo'));
7760 unittest.expect(o[1], unittest.equals('foo')); 7795 unittest.expect(o[1], unittest.equals('foo'));
7761 } 7796 }
7762 7797
7763 buildUnnamed497() { 7798 buildUnnamed910() {
7764 var o = new core.List<core.String>(); 7799 var o = new core.List<core.String>();
7765 o.add("foo"); 7800 o.add("foo");
7766 o.add("foo"); 7801 o.add("foo");
7767 return o; 7802 return o;
7768 } 7803 }
7769 7804
7770 checkUnnamed497(core.List<core.String> o) { 7805 checkUnnamed910(core.List<core.String> o) {
7771 unittest.expect(o, unittest.hasLength(2)); 7806 unittest.expect(o, unittest.hasLength(2));
7772 unittest.expect(o[0], unittest.equals('foo')); 7807 unittest.expect(o[0], unittest.equals('foo'));
7773 unittest.expect(o[1], unittest.equals('foo')); 7808 unittest.expect(o[1], unittest.equals('foo'));
7774 } 7809 }
7775 7810
7776 buildUnnamed498() { 7811 buildUnnamed911() {
7777 var o = new core.List<core.String>(); 7812 var o = new core.List<core.String>();
7778 o.add("foo"); 7813 o.add("foo");
7779 o.add("foo"); 7814 o.add("foo");
7780 return o; 7815 return o;
7781 } 7816 }
7782 7817
7783 checkUnnamed498(core.List<core.String> o) { 7818 checkUnnamed911(core.List<core.String> o) {
7784 unittest.expect(o, unittest.hasLength(2)); 7819 unittest.expect(o, unittest.hasLength(2));
7785 unittest.expect(o[0], unittest.equals('foo')); 7820 unittest.expect(o[0], unittest.equals('foo'));
7786 unittest.expect(o[1], unittest.equals('foo')); 7821 unittest.expect(o[1], unittest.equals('foo'));
7787 } 7822 }
7788 7823
7789 buildUnnamed499() { 7824 buildUnnamed912() {
7790 var o = new core.List<core.String>(); 7825 var o = new core.List<core.String>();
7791 o.add("foo"); 7826 o.add("foo");
7792 o.add("foo"); 7827 o.add("foo");
7793 return o; 7828 return o;
7794 } 7829 }
7795 7830
7796 checkUnnamed499(core.List<core.String> o) { 7831 checkUnnamed912(core.List<core.String> o) {
7797 unittest.expect(o, unittest.hasLength(2)); 7832 unittest.expect(o, unittest.hasLength(2));
7798 unittest.expect(o[0], unittest.equals('foo')); 7833 unittest.expect(o[0], unittest.equals('foo'));
7799 unittest.expect(o[1], unittest.equals('foo')); 7834 unittest.expect(o[1], unittest.equals('foo'));
7800 } 7835 }
7801 7836
7802 buildUnnamed500() { 7837 buildUnnamed913() {
7803 var o = new core.List<core.String>(); 7838 var o = new core.List<core.String>();
7804 o.add("foo"); 7839 o.add("foo");
7805 o.add("foo"); 7840 o.add("foo");
7806 return o; 7841 return o;
7807 } 7842 }
7808 7843
7809 checkUnnamed500(core.List<core.String> o) { 7844 checkUnnamed913(core.List<core.String> o) {
7810 unittest.expect(o, unittest.hasLength(2)); 7845 unittest.expect(o, unittest.hasLength(2));
7811 unittest.expect(o[0], unittest.equals('foo')); 7846 unittest.expect(o[0], unittest.equals('foo'));
7812 unittest.expect(o[1], unittest.equals('foo')); 7847 unittest.expect(o[1], unittest.equals('foo'));
7813 } 7848 }
7814 7849
7815 buildUnnamed501() { 7850 buildUnnamed914() {
7816 var o = new core.List<core.String>(); 7851 var o = new core.List<core.String>();
7817 o.add("foo"); 7852 o.add("foo");
7818 o.add("foo"); 7853 o.add("foo");
7819 return o; 7854 return o;
7820 } 7855 }
7821 7856
7822 checkUnnamed501(core.List<core.String> o) { 7857 checkUnnamed914(core.List<core.String> o) {
7823 unittest.expect(o, unittest.hasLength(2)); 7858 unittest.expect(o, unittest.hasLength(2));
7824 unittest.expect(o[0], unittest.equals('foo')); 7859 unittest.expect(o[0], unittest.equals('foo'));
7825 unittest.expect(o[1], unittest.equals('foo')); 7860 unittest.expect(o[1], unittest.equals('foo'));
7826 } 7861 }
7827 7862
7828 buildUnnamed502() { 7863 buildUnnamed915() {
7829 var o = new core.List<core.String>(); 7864 var o = new core.List<core.String>();
7830 o.add("foo"); 7865 o.add("foo");
7831 o.add("foo"); 7866 o.add("foo");
7832 return o; 7867 return o;
7833 } 7868 }
7834 7869
7835 checkUnnamed502(core.List<core.String> o) { 7870 checkUnnamed915(core.List<core.String> o) {
7836 unittest.expect(o, unittest.hasLength(2)); 7871 unittest.expect(o, unittest.hasLength(2));
7837 unittest.expect(o[0], unittest.equals('foo')); 7872 unittest.expect(o[0], unittest.equals('foo'));
7838 unittest.expect(o[1], unittest.equals('foo')); 7873 unittest.expect(o[1], unittest.equals('foo'));
7839 } 7874 }
7840 7875
7841 buildUnnamed503() { 7876 buildUnnamed916() {
7842 var o = new core.List<core.String>(); 7877 var o = new core.List<core.String>();
7843 o.add("foo"); 7878 o.add("foo");
7844 o.add("foo"); 7879 o.add("foo");
7845 return o; 7880 return o;
7846 } 7881 }
7847 7882
7848 checkUnnamed503(core.List<core.String> o) { 7883 checkUnnamed916(core.List<core.String> o) {
7849 unittest.expect(o, unittest.hasLength(2)); 7884 unittest.expect(o, unittest.hasLength(2));
7850 unittest.expect(o[0], unittest.equals('foo')); 7885 unittest.expect(o[0], unittest.equals('foo'));
7851 unittest.expect(o[1], unittest.equals('foo')); 7886 unittest.expect(o[1], unittest.equals('foo'));
7852 } 7887 }
7853 7888
7854 buildUnnamed504() { 7889 buildUnnamed917() {
7855 var o = new core.List<core.String>(); 7890 var o = new core.List<core.String>();
7856 o.add("foo"); 7891 o.add("foo");
7857 o.add("foo"); 7892 o.add("foo");
7858 return o; 7893 return o;
7859 } 7894 }
7860 7895
7861 checkUnnamed504(core.List<core.String> o) { 7896 checkUnnamed917(core.List<core.String> o) {
7862 unittest.expect(o, unittest.hasLength(2)); 7897 unittest.expect(o, unittest.hasLength(2));
7863 unittest.expect(o[0], unittest.equals('foo')); 7898 unittest.expect(o[0], unittest.equals('foo'));
7864 unittest.expect(o[1], unittest.equals('foo')); 7899 unittest.expect(o[1], unittest.equals('foo'));
7865 } 7900 }
7866 7901
7867 buildUnnamed505() { 7902 buildUnnamed918() {
7868 var o = new core.List<core.String>(); 7903 var o = new core.List<core.String>();
7869 o.add("foo"); 7904 o.add("foo");
7870 o.add("foo"); 7905 o.add("foo");
7871 return o; 7906 return o;
7872 } 7907 }
7873 7908
7874 checkUnnamed505(core.List<core.String> o) { 7909 checkUnnamed918(core.List<core.String> o) {
7875 unittest.expect(o, unittest.hasLength(2)); 7910 unittest.expect(o, unittest.hasLength(2));
7876 unittest.expect(o[0], unittest.equals('foo')); 7911 unittest.expect(o[0], unittest.equals('foo'));
7877 unittest.expect(o[1], unittest.equals('foo')); 7912 unittest.expect(o[1], unittest.equals('foo'));
7878 } 7913 }
7879 7914
7880 buildUnnamed506() { 7915 buildUnnamed919() {
7881 var o = new core.List<core.String>(); 7916 var o = new core.List<core.String>();
7882 o.add("foo"); 7917 o.add("foo");
7883 o.add("foo"); 7918 o.add("foo");
7884 return o; 7919 return o;
7885 } 7920 }
7886 7921
7887 checkUnnamed506(core.List<core.String> o) { 7922 checkUnnamed919(core.List<core.String> o) {
7888 unittest.expect(o, unittest.hasLength(2)); 7923 unittest.expect(o, unittest.hasLength(2));
7889 unittest.expect(o[0], unittest.equals('foo')); 7924 unittest.expect(o[0], unittest.equals('foo'));
7890 unittest.expect(o[1], unittest.equals('foo')); 7925 unittest.expect(o[1], unittest.equals('foo'));
7891 } 7926 }
7892 7927
7893 buildUnnamed507() { 7928 buildUnnamed920() {
7894 var o = new core.List<core.String>(); 7929 var o = new core.List<core.String>();
7895 o.add("foo"); 7930 o.add("foo");
7896 o.add("foo"); 7931 o.add("foo");
7897 return o; 7932 return o;
7898 } 7933 }
7899 7934
7900 checkUnnamed507(core.List<core.String> o) { 7935 checkUnnamed920(core.List<core.String> o) {
7901 unittest.expect(o, unittest.hasLength(2)); 7936 unittest.expect(o, unittest.hasLength(2));
7902 unittest.expect(o[0], unittest.equals('foo')); 7937 unittest.expect(o[0], unittest.equals('foo'));
7903 unittest.expect(o[1], unittest.equals('foo')); 7938 unittest.expect(o[1], unittest.equals('foo'));
7904 } 7939 }
7905 7940
7906 buildUnnamed508() { 7941 buildUnnamed921() {
7907 var o = new core.List<core.String>(); 7942 var o = new core.List<core.String>();
7908 o.add("foo"); 7943 o.add("foo");
7909 o.add("foo"); 7944 o.add("foo");
7910 return o; 7945 return o;
7911 } 7946 }
7912 7947
7913 checkUnnamed508(core.List<core.String> o) { 7948 checkUnnamed921(core.List<core.String> o) {
7914 unittest.expect(o, unittest.hasLength(2)); 7949 unittest.expect(o, unittest.hasLength(2));
7915 unittest.expect(o[0], unittest.equals('foo')); 7950 unittest.expect(o[0], unittest.equals('foo'));
7916 unittest.expect(o[1], unittest.equals('foo')); 7951 unittest.expect(o[1], unittest.equals('foo'));
7917 } 7952 }
7918 7953
7919 buildUnnamed509() { 7954 buildUnnamed922() {
7920 var o = new core.List<core.String>(); 7955 var o = new core.List<core.String>();
7921 o.add("foo"); 7956 o.add("foo");
7922 o.add("foo"); 7957 o.add("foo");
7923 return o; 7958 return o;
7924 } 7959 }
7925 7960
7926 checkUnnamed509(core.List<core.String> o) { 7961 checkUnnamed922(core.List<core.String> o) {
7927 unittest.expect(o, unittest.hasLength(2)); 7962 unittest.expect(o, unittest.hasLength(2));
7928 unittest.expect(o[0], unittest.equals('foo')); 7963 unittest.expect(o[0], unittest.equals('foo'));
7929 unittest.expect(o[1], unittest.equals('foo')); 7964 unittest.expect(o[1], unittest.equals('foo'));
7930 } 7965 }
7931 7966
7932 buildUnnamed510() { 7967 buildUnnamed923() {
7933 var o = new core.List<core.String>(); 7968 var o = new core.List<core.String>();
7934 o.add("foo"); 7969 o.add("foo");
7935 o.add("foo"); 7970 o.add("foo");
7936 return o; 7971 return o;
7937 } 7972 }
7938 7973
7939 checkUnnamed510(core.List<core.String> o) { 7974 checkUnnamed923(core.List<core.String> o) {
7940 unittest.expect(o, unittest.hasLength(2)); 7975 unittest.expect(o, unittest.hasLength(2));
7941 unittest.expect(o[0], unittest.equals('foo')); 7976 unittest.expect(o[0], unittest.equals('foo'));
7942 unittest.expect(o[1], unittest.equals('foo')); 7977 unittest.expect(o[1], unittest.equals('foo'));
7943 } 7978 }
7944 7979
7945 buildUnnamed511() { 7980 buildUnnamed924() {
7946 var o = new core.List<core.String>(); 7981 var o = new core.List<core.String>();
7947 o.add("foo"); 7982 o.add("foo");
7948 o.add("foo"); 7983 o.add("foo");
7949 return o; 7984 return o;
7950 } 7985 }
7951 7986
7952 checkUnnamed511(core.List<core.String> o) { 7987 checkUnnamed924(core.List<core.String> o) {
7953 unittest.expect(o, unittest.hasLength(2)); 7988 unittest.expect(o, unittest.hasLength(2));
7954 unittest.expect(o[0], unittest.equals('foo')); 7989 unittest.expect(o[0], unittest.equals('foo'));
7955 unittest.expect(o[1], unittest.equals('foo')); 7990 unittest.expect(o[1], unittest.equals('foo'));
7956 } 7991 }
7957 7992
7958 buildUnnamed512() { 7993 buildUnnamed925() {
7959 var o = new core.List<core.String>(); 7994 var o = new core.List<core.String>();
7960 o.add("foo"); 7995 o.add("foo");
7961 o.add("foo"); 7996 o.add("foo");
7962 return o; 7997 return o;
7963 } 7998 }
7964 7999
7965 checkUnnamed512(core.List<core.String> o) { 8000 checkUnnamed925(core.List<core.String> o) {
7966 unittest.expect(o, unittest.hasLength(2)); 8001 unittest.expect(o, unittest.hasLength(2));
7967 unittest.expect(o[0], unittest.equals('foo')); 8002 unittest.expect(o[0], unittest.equals('foo'));
7968 unittest.expect(o[1], unittest.equals('foo')); 8003 unittest.expect(o[1], unittest.equals('foo'));
7969 } 8004 }
7970 8005
7971 buildUnnamed513() { 8006 buildUnnamed926() {
7972 var o = new core.List<core.String>(); 8007 var o = new core.List<core.String>();
7973 o.add("foo"); 8008 o.add("foo");
7974 o.add("foo"); 8009 o.add("foo");
7975 return o; 8010 return o;
7976 } 8011 }
7977 8012
7978 checkUnnamed513(core.List<core.String> o) { 8013 checkUnnamed926(core.List<core.String> o) {
7979 unittest.expect(o, unittest.hasLength(2)); 8014 unittest.expect(o, unittest.hasLength(2));
7980 unittest.expect(o[0], unittest.equals('foo')); 8015 unittest.expect(o[0], unittest.equals('foo'));
7981 unittest.expect(o[1], unittest.equals('foo')); 8016 unittest.expect(o[1], unittest.equals('foo'));
7982 } 8017 }
7983 8018
7984 buildUnnamed514() { 8019 buildUnnamed927() {
7985 var o = new core.List<core.String>(); 8020 var o = new core.List<core.String>();
7986 o.add("foo"); 8021 o.add("foo");
7987 o.add("foo"); 8022 o.add("foo");
7988 return o; 8023 return o;
7989 } 8024 }
7990 8025
7991 checkUnnamed514(core.List<core.String> o) { 8026 checkUnnamed927(core.List<core.String> o) {
7992 unittest.expect(o, unittest.hasLength(2)); 8027 unittest.expect(o, unittest.hasLength(2));
7993 unittest.expect(o[0], unittest.equals('foo')); 8028 unittest.expect(o[0], unittest.equals('foo'));
7994 unittest.expect(o[1], unittest.equals('foo')); 8029 unittest.expect(o[1], unittest.equals('foo'));
7995 } 8030 }
7996 8031
7997 buildUnnamed515() { 8032 buildUnnamed928() {
7998 var o = new core.List<core.String>(); 8033 var o = new core.List<core.String>();
7999 o.add("foo"); 8034 o.add("foo");
8000 o.add("foo"); 8035 o.add("foo");
8001 return o; 8036 return o;
8002 } 8037 }
8003 8038
8004 checkUnnamed515(core.List<core.String> o) { 8039 checkUnnamed928(core.List<core.String> o) {
8005 unittest.expect(o, unittest.hasLength(2)); 8040 unittest.expect(o, unittest.hasLength(2));
8006 unittest.expect(o[0], unittest.equals('foo')); 8041 unittest.expect(o[0], unittest.equals('foo'));
8007 unittest.expect(o[1], unittest.equals('foo')); 8042 unittest.expect(o[1], unittest.equals('foo'));
8008 } 8043 }
8009 8044
8010 buildUnnamed516() { 8045 buildUnnamed929() {
8011 var o = new core.List<core.String>(); 8046 var o = new core.List<core.String>();
8012 o.add("foo"); 8047 o.add("foo");
8013 o.add("foo"); 8048 o.add("foo");
8014 return o; 8049 return o;
8015 } 8050 }
8016 8051
8017 checkUnnamed516(core.List<core.String> o) { 8052 checkUnnamed929(core.List<core.String> o) {
8018 unittest.expect(o, unittest.hasLength(2)); 8053 unittest.expect(o, unittest.hasLength(2));
8019 unittest.expect(o[0], unittest.equals('foo')); 8054 unittest.expect(o[0], unittest.equals('foo'));
8020 unittest.expect(o[1], unittest.equals('foo')); 8055 unittest.expect(o[1], unittest.equals('foo'));
8021 } 8056 }
8022 8057
8023 buildUnnamed517() { 8058 buildUnnamed930() {
8024 var o = new core.List<core.String>(); 8059 var o = new core.List<core.String>();
8025 o.add("foo"); 8060 o.add("foo");
8026 o.add("foo"); 8061 o.add("foo");
8027 return o; 8062 return o;
8028 } 8063 }
8029 8064
8030 checkUnnamed517(core.List<core.String> o) { 8065 checkUnnamed930(core.List<core.String> o) {
8031 unittest.expect(o, unittest.hasLength(2)); 8066 unittest.expect(o, unittest.hasLength(2));
8032 unittest.expect(o[0], unittest.equals('foo')); 8067 unittest.expect(o[0], unittest.equals('foo'));
8033 unittest.expect(o[1], unittest.equals('foo')); 8068 unittest.expect(o[1], unittest.equals('foo'));
8034 } 8069 }
8035 8070
8036 buildUnnamed518() { 8071 buildUnnamed931() {
8037 var o = new core.List<core.String>(); 8072 var o = new core.List<core.String>();
8038 o.add("foo"); 8073 o.add("foo");
8039 o.add("foo"); 8074 o.add("foo");
8040 return o; 8075 return o;
8041 } 8076 }
8042 8077
8043 checkUnnamed518(core.List<core.String> o) { 8078 checkUnnamed931(core.List<core.String> o) {
8044 unittest.expect(o, unittest.hasLength(2)); 8079 unittest.expect(o, unittest.hasLength(2));
8045 unittest.expect(o[0], unittest.equals('foo')); 8080 unittest.expect(o[0], unittest.equals('foo'));
8046 unittest.expect(o[1], unittest.equals('foo')); 8081 unittest.expect(o[1], unittest.equals('foo'));
8047 } 8082 }
8048 8083
8049 8084
8050 main() { 8085 main() {
8051 unittest.group("obj-schema-Account", () { 8086 unittest.group("obj-schema-Account", () {
8052 unittest.test("to-json--from-json", () { 8087 unittest.test("to-json--from-json", () {
8053 var o = buildAccount(); 8088 var o = buildAccount();
8054 var od = new api.Account.fromJson(o.toJson()); 8089 var od = new api.Account.fromJson(o.toJson());
8055 checkAccount(od); 8090 checkAccount(od);
8056 }); 8091 });
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
9601 var o = buildUserRolesListResponse(); 9636 var o = buildUserRolesListResponse();
9602 var od = new api.UserRolesListResponse.fromJson(o.toJson()); 9637 var od = new api.UserRolesListResponse.fromJson(o.toJson());
9603 checkUserRolesListResponse(od); 9638 checkUserRolesListResponse(od);
9604 }); 9639 });
9605 }); 9640 });
9606 9641
9607 9642
9608 unittest.group("resource-AccountActiveAdSummariesResourceApi", () { 9643 unittest.group("resource-AccountActiveAdSummariesResourceApi", () {
9609 unittest.test("method--get", () { 9644 unittest.test("method--get", () {
9610 9645
9611 var mock = new common_test.HttpServerMock(); 9646 var mock = new HttpServerMock();
9612 api.AccountActiveAdSummariesResourceApi res = new api.DfareportingApi(mock ).accountActiveAdSummaries; 9647 api.AccountActiveAdSummariesResourceApi res = new api.DfareportingApi(mock ).accountActiveAdSummaries;
9613 var arg_profileId = "foo"; 9648 var arg_profileId = "foo";
9614 var arg_summaryAccountId = "foo"; 9649 var arg_summaryAccountId = "foo";
9615 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9650 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9616 var path = (req.url).path; 9651 var path = (req.url).path;
9617 var pathOffset = 0; 9652 var pathOffset = 0;
9618 var index; 9653 var index;
9619 var subPart; 9654 var subPart;
9620 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9621 pathOffset += 1; 9656 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
9649 var keyvalue = part.split("="); 9684 var keyvalue = part.split("=");
9650 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9685 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9651 } 9686 }
9652 } 9687 }
9653 9688
9654 9689
9655 var h = { 9690 var h = {
9656 "content-type" : "application/json; charset=utf-8", 9691 "content-type" : "application/json; charset=utf-8",
9657 }; 9692 };
9658 var resp = convert.JSON.encode(buildAccountActiveAdSummary()); 9693 var resp = convert.JSON.encode(buildAccountActiveAdSummary());
9659 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9694 return new async.Future.value(stringResponse(200, h, resp));
9660 }), true); 9695 }), true);
9661 res.get(arg_profileId, arg_summaryAccountId).then(unittest.expectAsync(((a pi.AccountActiveAdSummary response) { 9696 res.get(arg_profileId, arg_summaryAccountId).then(unittest.expectAsync(((a pi.AccountActiveAdSummary response) {
9662 checkAccountActiveAdSummary(response); 9697 checkAccountActiveAdSummary(response);
9663 }))); 9698 })));
9664 }); 9699 });
9665 9700
9666 }); 9701 });
9667 9702
9668 9703
9669 unittest.group("resource-AccountPermissionGroupsResourceApi", () { 9704 unittest.group("resource-AccountPermissionGroupsResourceApi", () {
9670 unittest.test("method--get", () { 9705 unittest.test("method--get", () {
9671 9706
9672 var mock = new common_test.HttpServerMock(); 9707 var mock = new HttpServerMock();
9673 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock) .accountPermissionGroups; 9708 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock) .accountPermissionGroups;
9674 var arg_profileId = "foo"; 9709 var arg_profileId = "foo";
9675 var arg_id = "foo"; 9710 var arg_id = "foo";
9676 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9711 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9677 var path = (req.url).path; 9712 var path = (req.url).path;
9678 var pathOffset = 0; 9713 var pathOffset = 0;
9679 var index; 9714 var index;
9680 var subPart; 9715 var subPart;
9681 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9716 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9682 pathOffset += 1; 9717 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
9710 var keyvalue = part.split("="); 9745 var keyvalue = part.split("=");
9711 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9746 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9712 } 9747 }
9713 } 9748 }
9714 9749
9715 9750
9716 var h = { 9751 var h = {
9717 "content-type" : "application/json; charset=utf-8", 9752 "content-type" : "application/json; charset=utf-8",
9718 }; 9753 };
9719 var resp = convert.JSON.encode(buildAccountPermissionGroup()); 9754 var resp = convert.JSON.encode(buildAccountPermissionGroup());
9720 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9755 return new async.Future.value(stringResponse(200, h, resp));
9721 }), true); 9756 }), true);
9722 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountPerm issionGroup response) { 9757 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountPerm issionGroup response) {
9723 checkAccountPermissionGroup(response); 9758 checkAccountPermissionGroup(response);
9724 }))); 9759 })));
9725 }); 9760 });
9726 9761
9727 unittest.test("method--list", () { 9762 unittest.test("method--list", () {
9728 9763
9729 var mock = new common_test.HttpServerMock(); 9764 var mock = new HttpServerMock();
9730 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock) .accountPermissionGroups; 9765 api.AccountPermissionGroupsResourceApi res = new api.DfareportingApi(mock) .accountPermissionGroups;
9731 var arg_profileId = "foo"; 9766 var arg_profileId = "foo";
9732 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9767 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9733 var path = (req.url).path; 9768 var path = (req.url).path;
9734 var pathOffset = 0; 9769 var pathOffset = 0;
9735 var index; 9770 var index;
9736 var subPart; 9771 var subPart;
9737 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9738 pathOffset += 1; 9773 pathOffset += 1;
9739 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 9774 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
9763 var keyvalue = part.split("="); 9798 var keyvalue = part.split("=");
9764 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9799 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9765 } 9800 }
9766 } 9801 }
9767 9802
9768 9803
9769 var h = { 9804 var h = {
9770 "content-type" : "application/json; charset=utf-8", 9805 "content-type" : "application/json; charset=utf-8",
9771 }; 9806 };
9772 var resp = convert.JSON.encode(buildAccountPermissionGroupsListResponse( )); 9807 var resp = convert.JSON.encode(buildAccountPermissionGroupsListResponse( ));
9773 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9808 return new async.Future.value(stringResponse(200, h, resp));
9774 }), true); 9809 }), true);
9775 res.list(arg_profileId).then(unittest.expectAsync(((api.AccountPermissionG roupsListResponse response) { 9810 res.list(arg_profileId).then(unittest.expectAsync(((api.AccountPermissionG roupsListResponse response) {
9776 checkAccountPermissionGroupsListResponse(response); 9811 checkAccountPermissionGroupsListResponse(response);
9777 }))); 9812 })));
9778 }); 9813 });
9779 9814
9780 }); 9815 });
9781 9816
9782 9817
9783 unittest.group("resource-AccountPermissionsResourceApi", () { 9818 unittest.group("resource-AccountPermissionsResourceApi", () {
9784 unittest.test("method--get", () { 9819 unittest.test("method--get", () {
9785 9820
9786 var mock = new common_test.HttpServerMock(); 9821 var mock = new HttpServerMock();
9787 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco untPermissions; 9822 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco untPermissions;
9788 var arg_profileId = "foo"; 9823 var arg_profileId = "foo";
9789 var arg_id = "foo"; 9824 var arg_id = "foo";
9790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9825 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9791 var path = (req.url).path; 9826 var path = (req.url).path;
9792 var pathOffset = 0; 9827 var pathOffset = 0;
9793 var index; 9828 var index;
9794 var subPart; 9829 var subPart;
9795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9830 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9796 pathOffset += 1; 9831 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
9824 var keyvalue = part.split("="); 9859 var keyvalue = part.split("=");
9825 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9860 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9826 } 9861 }
9827 } 9862 }
9828 9863
9829 9864
9830 var h = { 9865 var h = {
9831 "content-type" : "application/json; charset=utf-8", 9866 "content-type" : "application/json; charset=utf-8",
9832 }; 9867 };
9833 var resp = convert.JSON.encode(buildAccountPermission()); 9868 var resp = convert.JSON.encode(buildAccountPermission());
9834 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9869 return new async.Future.value(stringResponse(200, h, resp));
9835 }), true); 9870 }), true);
9836 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountPerm ission response) { 9871 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountPerm ission response) {
9837 checkAccountPermission(response); 9872 checkAccountPermission(response);
9838 }))); 9873 })));
9839 }); 9874 });
9840 9875
9841 unittest.test("method--list", () { 9876 unittest.test("method--list", () {
9842 9877
9843 var mock = new common_test.HttpServerMock(); 9878 var mock = new HttpServerMock();
9844 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco untPermissions; 9879 api.AccountPermissionsResourceApi res = new api.DfareportingApi(mock).acco untPermissions;
9845 var arg_profileId = "foo"; 9880 var arg_profileId = "foo";
9846 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9881 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9847 var path = (req.url).path; 9882 var path = (req.url).path;
9848 var pathOffset = 0; 9883 var pathOffset = 0;
9849 var index; 9884 var index;
9850 var subPart; 9885 var subPart;
9851 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9886 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9852 pathOffset += 1; 9887 pathOffset += 1;
9853 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 9888 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
9877 var keyvalue = part.split("="); 9912 var keyvalue = part.split("=");
9878 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9913 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9879 } 9914 }
9880 } 9915 }
9881 9916
9882 9917
9883 var h = { 9918 var h = {
9884 "content-type" : "application/json; charset=utf-8", 9919 "content-type" : "application/json; charset=utf-8",
9885 }; 9920 };
9886 var resp = convert.JSON.encode(buildAccountPermissionsListResponse()); 9921 var resp = convert.JSON.encode(buildAccountPermissionsListResponse());
9887 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9922 return new async.Future.value(stringResponse(200, h, resp));
9888 }), true); 9923 }), true);
9889 res.list(arg_profileId).then(unittest.expectAsync(((api.AccountPermissions ListResponse response) { 9924 res.list(arg_profileId).then(unittest.expectAsync(((api.AccountPermissions ListResponse response) {
9890 checkAccountPermissionsListResponse(response); 9925 checkAccountPermissionsListResponse(response);
9891 }))); 9926 })));
9892 }); 9927 });
9893 9928
9894 }); 9929 });
9895 9930
9896 9931
9897 unittest.group("resource-AccountUserProfilesResourceApi", () { 9932 unittest.group("resource-AccountUserProfilesResourceApi", () {
9898 unittest.test("method--get", () { 9933 unittest.test("method--get", () {
9899 9934
9900 var mock = new common_test.HttpServerMock(); 9935 var mock = new HttpServerMock();
9901 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc ountUserProfiles; 9936 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc ountUserProfiles;
9902 var arg_profileId = "foo"; 9937 var arg_profileId = "foo";
9903 var arg_id = "foo"; 9938 var arg_id = "foo";
9904 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 9939 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9905 var path = (req.url).path; 9940 var path = (req.url).path;
9906 var pathOffset = 0; 9941 var pathOffset = 0;
9907 var index; 9942 var index;
9908 var subPart; 9943 var subPart;
9909 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 9944 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
9910 pathOffset += 1; 9945 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
9938 var keyvalue = part.split("="); 9973 var keyvalue = part.split("=");
9939 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 9974 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
9940 } 9975 }
9941 } 9976 }
9942 9977
9943 9978
9944 var h = { 9979 var h = {
9945 "content-type" : "application/json; charset=utf-8", 9980 "content-type" : "application/json; charset=utf-8",
9946 }; 9981 };
9947 var resp = convert.JSON.encode(buildAccountUserProfile()); 9982 var resp = convert.JSON.encode(buildAccountUserProfile());
9948 return new async.Future.value(common_test.stringResponse(200, h, resp)); 9983 return new async.Future.value(stringResponse(200, h, resp));
9949 }), true); 9984 }), true);
9950 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUser Profile response) { 9985 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AccountUser Profile response) {
9951 checkAccountUserProfile(response); 9986 checkAccountUserProfile(response);
9952 }))); 9987 })));
9953 }); 9988 });
9954 9989
9955 unittest.test("method--list", () { 9990 unittest.test("method--list", () {
9956 9991
9957 var mock = new common_test.HttpServerMock(); 9992 var mock = new HttpServerMock();
9958 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc ountUserProfiles; 9993 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc ountUserProfiles;
9959 var arg_profileId = "foo"; 9994 var arg_profileId = "foo";
9960 var arg_active = true; 9995 var arg_active = true;
9961 var arg_ids = buildUnnamed443(); 9996 var arg_ids = buildUnnamed856();
9962 var arg_maxResults = 42; 9997 var arg_maxResults = 42;
9963 var arg_pageToken = "foo"; 9998 var arg_pageToken = "foo";
9964 var arg_searchString = "foo"; 9999 var arg_searchString = "foo";
9965 var arg_sortField = "foo"; 10000 var arg_sortField = "foo";
9966 var arg_sortOrder = "foo"; 10001 var arg_sortOrder = "foo";
9967 var arg_subaccountId = "foo"; 10002 var arg_subaccountId = "foo";
9968 var arg_userRoleId = "foo"; 10003 var arg_userRoleId = "foo";
9969 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10004 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
9970 var path = (req.url).path; 10005 var path = (req.url).path;
9971 var pathOffset = 0; 10006 var pathOffset = 0;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
10009 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 10044 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
10010 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 10045 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
10011 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId)); 10046 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId));
10012 unittest.expect(queryMap["userRoleId"].first, unittest.equals(arg_userRo leId)); 10047 unittest.expect(queryMap["userRoleId"].first, unittest.equals(arg_userRo leId));
10013 10048
10014 10049
10015 var h = { 10050 var h = {
10016 "content-type" : "application/json; charset=utf-8", 10051 "content-type" : "application/json; charset=utf-8",
10017 }; 10052 };
10018 var resp = convert.JSON.encode(buildAccountUserProfilesListResponse()); 10053 var resp = convert.JSON.encode(buildAccountUserProfilesListResponse());
10019 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10054 return new async.Future.value(stringResponse(200, h, resp));
10020 }), true); 10055 }), true);
10021 res.list(arg_profileId, active: arg_active, ids: arg_ids, maxResults: arg_ maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, userRo leId: arg_userRoleId).then(unittest.expectAsync(((api.AccountUserProfilesListRes ponse response) { 10056 res.list(arg_profileId, active: arg_active, ids: arg_ids, maxResults: arg_ maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, userRo leId: arg_userRoleId).then(unittest.expectAsync(((api.AccountUserProfilesListRes ponse response) {
10022 checkAccountUserProfilesListResponse(response); 10057 checkAccountUserProfilesListResponse(response);
10023 }))); 10058 })));
10024 }); 10059 });
10025 10060
10026 unittest.test("method--patch", () { 10061 unittest.test("method--patch", () {
10027 10062
10028 var mock = new common_test.HttpServerMock(); 10063 var mock = new HttpServerMock();
10029 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc ountUserProfiles; 10064 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc ountUserProfiles;
10030 var arg_request = buildAccountUserProfile(); 10065 var arg_request = buildAccountUserProfile();
10031 var arg_profileId = "foo"; 10066 var arg_profileId = "foo";
10032 var arg_id = "foo"; 10067 var arg_id = "foo";
10033 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10068 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10034 var obj = new api.AccountUserProfile.fromJson(json); 10069 var obj = new api.AccountUserProfile.fromJson(json);
10035 checkAccountUserProfile(obj); 10070 checkAccountUserProfile(obj);
10036 10071
10037 var path = (req.url).path; 10072 var path = (req.url).path;
10038 var pathOffset = 0; 10073 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
10068 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10103 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10069 } 10104 }
10070 } 10105 }
10071 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 10106 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
10072 10107
10073 10108
10074 var h = { 10109 var h = {
10075 "content-type" : "application/json; charset=utf-8", 10110 "content-type" : "application/json; charset=utf-8",
10076 }; 10111 };
10077 var resp = convert.JSON.encode(buildAccountUserProfile()); 10112 var resp = convert.JSON.encode(buildAccountUserProfile());
10078 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10113 return new async.Future.value(stringResponse(200, h, resp));
10079 }), true); 10114 }), true);
10080 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.AccountUserProfile response) { 10115 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.AccountUserProfile response) {
10081 checkAccountUserProfile(response); 10116 checkAccountUserProfile(response);
10082 }))); 10117 })));
10083 }); 10118 });
10084 10119
10085 unittest.test("method--update", () { 10120 unittest.test("method--update", () {
10086 10121
10087 var mock = new common_test.HttpServerMock(); 10122 var mock = new HttpServerMock();
10088 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc ountUserProfiles; 10123 api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).acc ountUserProfiles;
10089 var arg_request = buildAccountUserProfile(); 10124 var arg_request = buildAccountUserProfile();
10090 var arg_profileId = "foo"; 10125 var arg_profileId = "foo";
10091 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10126 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10092 var obj = new api.AccountUserProfile.fromJson(json); 10127 var obj = new api.AccountUserProfile.fromJson(json);
10093 checkAccountUserProfile(obj); 10128 checkAccountUserProfile(obj);
10094 10129
10095 var path = (req.url).path; 10130 var path = (req.url).path;
10096 var pathOffset = 0; 10131 var pathOffset = 0;
10097 var index; 10132 var index;
(...skipping 27 matching lines...) Expand all
10125 var keyvalue = part.split("="); 10160 var keyvalue = part.split("=");
10126 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10161 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10127 } 10162 }
10128 } 10163 }
10129 10164
10130 10165
10131 var h = { 10166 var h = {
10132 "content-type" : "application/json; charset=utf-8", 10167 "content-type" : "application/json; charset=utf-8",
10133 }; 10168 };
10134 var resp = convert.JSON.encode(buildAccountUserProfile()); 10169 var resp = convert.JSON.encode(buildAccountUserProfile());
10135 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10170 return new async.Future.value(stringResponse(200, h, resp));
10136 }), true); 10171 }), true);
10137 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Acc ountUserProfile response) { 10172 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Acc ountUserProfile response) {
10138 checkAccountUserProfile(response); 10173 checkAccountUserProfile(response);
10139 }))); 10174 })));
10140 }); 10175 });
10141 10176
10142 }); 10177 });
10143 10178
10144 10179
10145 unittest.group("resource-AccountsResourceApi", () { 10180 unittest.group("resource-AccountsResourceApi", () {
10146 unittest.test("method--get", () { 10181 unittest.test("method--get", () {
10147 10182
10148 var mock = new common_test.HttpServerMock(); 10183 var mock = new HttpServerMock();
10149 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; 10184 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts;
10150 var arg_profileId = "foo"; 10185 var arg_profileId = "foo";
10151 var arg_id = "foo"; 10186 var arg_id = "foo";
10152 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10187 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10153 var path = (req.url).path; 10188 var path = (req.url).path;
10154 var pathOffset = 0; 10189 var pathOffset = 0;
10155 var index; 10190 var index;
10156 var subPart; 10191 var subPart;
10157 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10192 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10158 pathOffset += 1; 10193 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
10186 var keyvalue = part.split("="); 10221 var keyvalue = part.split("=");
10187 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10222 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10188 } 10223 }
10189 } 10224 }
10190 10225
10191 10226
10192 var h = { 10227 var h = {
10193 "content-type" : "application/json; charset=utf-8", 10228 "content-type" : "application/json; charset=utf-8",
10194 }; 10229 };
10195 var resp = convert.JSON.encode(buildAccount()); 10230 var resp = convert.JSON.encode(buildAccount());
10196 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10231 return new async.Future.value(stringResponse(200, h, resp));
10197 }), true); 10232 }), true);
10198 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Account res ponse) { 10233 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Account res ponse) {
10199 checkAccount(response); 10234 checkAccount(response);
10200 }))); 10235 })));
10201 }); 10236 });
10202 10237
10203 unittest.test("method--list", () { 10238 unittest.test("method--list", () {
10204 10239
10205 var mock = new common_test.HttpServerMock(); 10240 var mock = new HttpServerMock();
10206 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; 10241 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts;
10207 var arg_profileId = "foo"; 10242 var arg_profileId = "foo";
10208 var arg_active = true; 10243 var arg_active = true;
10209 var arg_ids = buildUnnamed444(); 10244 var arg_ids = buildUnnamed857();
10210 var arg_maxResults = 42; 10245 var arg_maxResults = 42;
10211 var arg_pageToken = "foo"; 10246 var arg_pageToken = "foo";
10212 var arg_searchString = "foo"; 10247 var arg_searchString = "foo";
10213 var arg_sortField = "foo"; 10248 var arg_sortField = "foo";
10214 var arg_sortOrder = "foo"; 10249 var arg_sortOrder = "foo";
10215 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10250 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10216 var path = (req.url).path; 10251 var path = (req.url).path;
10217 var pathOffset = 0; 10252 var pathOffset = 0;
10218 var index; 10253 var index;
10219 var subPart; 10254 var subPart;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
10253 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 10288 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
10254 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 10289 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
10255 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 10290 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
10256 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 10291 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
10257 10292
10258 10293
10259 var h = { 10294 var h = {
10260 "content-type" : "application/json; charset=utf-8", 10295 "content-type" : "application/json; charset=utf-8",
10261 }; 10296 };
10262 var resp = convert.JSON.encode(buildAccountsListResponse()); 10297 var resp = convert.JSON.encode(buildAccountsListResponse());
10263 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10298 return new async.Future.value(stringResponse(200, h, resp));
10264 }), true); 10299 }), true);
10265 res.list(arg_profileId, active: arg_active, ids: arg_ids, maxResults: arg_ maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.Accoun tsListResponse response) { 10300 res.list(arg_profileId, active: arg_active, ids: arg_ids, maxResults: arg_ maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.Accoun tsListResponse response) {
10266 checkAccountsListResponse(response); 10301 checkAccountsListResponse(response);
10267 }))); 10302 })));
10268 }); 10303 });
10269 10304
10270 unittest.test("method--patch", () { 10305 unittest.test("method--patch", () {
10271 10306
10272 var mock = new common_test.HttpServerMock(); 10307 var mock = new HttpServerMock();
10273 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; 10308 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts;
10274 var arg_request = buildAccount(); 10309 var arg_request = buildAccount();
10275 var arg_profileId = "foo"; 10310 var arg_profileId = "foo";
10276 var arg_id = "foo"; 10311 var arg_id = "foo";
10277 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10312 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10278 var obj = new api.Account.fromJson(json); 10313 var obj = new api.Account.fromJson(json);
10279 checkAccount(obj); 10314 checkAccount(obj);
10280 10315
10281 var path = (req.url).path; 10316 var path = (req.url).path;
10282 var pathOffset = 0; 10317 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
10312 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10347 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10313 } 10348 }
10314 } 10349 }
10315 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 10350 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
10316 10351
10317 10352
10318 var h = { 10353 var h = {
10319 "content-type" : "application/json; charset=utf-8", 10354 "content-type" : "application/json; charset=utf-8",
10320 }; 10355 };
10321 var resp = convert.JSON.encode(buildAccount()); 10356 var resp = convert.JSON.encode(buildAccount());
10322 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10357 return new async.Future.value(stringResponse(200, h, resp));
10323 }), true); 10358 }), true);
10324 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Account response) { 10359 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Account response) {
10325 checkAccount(response); 10360 checkAccount(response);
10326 }))); 10361 })));
10327 }); 10362 });
10328 10363
10329 unittest.test("method--update", () { 10364 unittest.test("method--update", () {
10330 10365
10331 var mock = new common_test.HttpServerMock(); 10366 var mock = new HttpServerMock();
10332 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; 10367 api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts;
10333 var arg_request = buildAccount(); 10368 var arg_request = buildAccount();
10334 var arg_profileId = "foo"; 10369 var arg_profileId = "foo";
10335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10370 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10336 var obj = new api.Account.fromJson(json); 10371 var obj = new api.Account.fromJson(json);
10337 checkAccount(obj); 10372 checkAccount(obj);
10338 10373
10339 var path = (req.url).path; 10374 var path = (req.url).path;
10340 var pathOffset = 0; 10375 var pathOffset = 0;
10341 var index; 10376 var index;
(...skipping 27 matching lines...) Expand all
10369 var keyvalue = part.split("="); 10404 var keyvalue = part.split("=");
10370 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10405 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10371 } 10406 }
10372 } 10407 }
10373 10408
10374 10409
10375 var h = { 10410 var h = {
10376 "content-type" : "application/json; charset=utf-8", 10411 "content-type" : "application/json; charset=utf-8",
10377 }; 10412 };
10378 var resp = convert.JSON.encode(buildAccount()); 10413 var resp = convert.JSON.encode(buildAccount());
10379 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10414 return new async.Future.value(stringResponse(200, h, resp));
10380 }), true); 10415 }), true);
10381 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Acc ount response) { 10416 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Acc ount response) {
10382 checkAccount(response); 10417 checkAccount(response);
10383 }))); 10418 })));
10384 }); 10419 });
10385 10420
10386 }); 10421 });
10387 10422
10388 10423
10389 unittest.group("resource-AdsResourceApi", () { 10424 unittest.group("resource-AdsResourceApi", () {
10390 unittest.test("method--get", () { 10425 unittest.test("method--get", () {
10391 10426
10392 var mock = new common_test.HttpServerMock(); 10427 var mock = new HttpServerMock();
10393 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; 10428 api.AdsResourceApi res = new api.DfareportingApi(mock).ads;
10394 var arg_profileId = "foo"; 10429 var arg_profileId = "foo";
10395 var arg_id = "foo"; 10430 var arg_id = "foo";
10396 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10431 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10397 var path = (req.url).path; 10432 var path = (req.url).path;
10398 var pathOffset = 0; 10433 var pathOffset = 0;
10399 var index; 10434 var index;
10400 var subPart; 10435 var subPart;
10401 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10402 pathOffset += 1; 10437 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
10430 var keyvalue = part.split("="); 10465 var keyvalue = part.split("=");
10431 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10466 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10432 } 10467 }
10433 } 10468 }
10434 10469
10435 10470
10436 var h = { 10471 var h = {
10437 "content-type" : "application/json; charset=utf-8", 10472 "content-type" : "application/json; charset=utf-8",
10438 }; 10473 };
10439 var resp = convert.JSON.encode(buildAd()); 10474 var resp = convert.JSON.encode(buildAd());
10440 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10475 return new async.Future.value(stringResponse(200, h, resp));
10441 }), true); 10476 }), true);
10442 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Ad response ) { 10477 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Ad response ) {
10443 checkAd(response); 10478 checkAd(response);
10444 }))); 10479 })));
10445 }); 10480 });
10446 10481
10447 unittest.test("method--insert", () { 10482 unittest.test("method--insert", () {
10448 10483
10449 var mock = new common_test.HttpServerMock(); 10484 var mock = new HttpServerMock();
10450 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; 10485 api.AdsResourceApi res = new api.DfareportingApi(mock).ads;
10451 var arg_request = buildAd(); 10486 var arg_request = buildAd();
10452 var arg_profileId = "foo"; 10487 var arg_profileId = "foo";
10453 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10488 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10454 var obj = new api.Ad.fromJson(json); 10489 var obj = new api.Ad.fromJson(json);
10455 checkAd(obj); 10490 checkAd(obj);
10456 10491
10457 var path = (req.url).path; 10492 var path = (req.url).path;
10458 var pathOffset = 0; 10493 var pathOffset = 0;
10459 var index; 10494 var index;
(...skipping 27 matching lines...) Expand all
10487 var keyvalue = part.split("="); 10522 var keyvalue = part.split("=");
10488 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10523 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10489 } 10524 }
10490 } 10525 }
10491 10526
10492 10527
10493 var h = { 10528 var h = {
10494 "content-type" : "application/json; charset=utf-8", 10529 "content-type" : "application/json; charset=utf-8",
10495 }; 10530 };
10496 var resp = convert.JSON.encode(buildAd()); 10531 var resp = convert.JSON.encode(buildAd());
10497 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10532 return new async.Future.value(stringResponse(200, h, resp));
10498 }), true); 10533 }), true);
10499 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Ad response) { 10534 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Ad response) {
10500 checkAd(response); 10535 checkAd(response);
10501 }))); 10536 })));
10502 }); 10537 });
10503 10538
10504 unittest.test("method--list", () { 10539 unittest.test("method--list", () {
10505 10540
10506 var mock = new common_test.HttpServerMock(); 10541 var mock = new HttpServerMock();
10507 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; 10542 api.AdsResourceApi res = new api.DfareportingApi(mock).ads;
10508 var arg_profileId = "foo"; 10543 var arg_profileId = "foo";
10509 var arg_active = true; 10544 var arg_active = true;
10510 var arg_advertiserId = "foo"; 10545 var arg_advertiserId = "foo";
10511 var arg_archived = true; 10546 var arg_archived = true;
10512 var arg_audienceSegmentIds = buildUnnamed445(); 10547 var arg_audienceSegmentIds = buildUnnamed858();
10513 var arg_campaignIds = buildUnnamed446(); 10548 var arg_campaignIds = buildUnnamed859();
10514 var arg_compatibility = "foo"; 10549 var arg_compatibility = "foo";
10515 var arg_creativeIds = buildUnnamed447(); 10550 var arg_creativeIds = buildUnnamed860();
10516 var arg_creativeOptimizationConfigurationIds = buildUnnamed448(); 10551 var arg_creativeOptimizationConfigurationIds = buildUnnamed861();
10517 var arg_creativeType = "foo"; 10552 var arg_creativeType = "foo";
10518 var arg_dynamicClickTracker = true; 10553 var arg_dynamicClickTracker = true;
10519 var arg_ids = buildUnnamed449(); 10554 var arg_ids = buildUnnamed862();
10520 var arg_landingPageIds = buildUnnamed450(); 10555 var arg_landingPageIds = buildUnnamed863();
10521 var arg_maxResults = 42; 10556 var arg_maxResults = 42;
10522 var arg_overriddenEventTagId = "foo"; 10557 var arg_overriddenEventTagId = "foo";
10523 var arg_pageToken = "foo"; 10558 var arg_pageToken = "foo";
10524 var arg_placementIds = buildUnnamed451(); 10559 var arg_placementIds = buildUnnamed864();
10525 var arg_remarketingListIds = buildUnnamed452(); 10560 var arg_remarketingListIds = buildUnnamed865();
10526 var arg_searchString = "foo"; 10561 var arg_searchString = "foo";
10527 var arg_sizeIds = buildUnnamed453(); 10562 var arg_sizeIds = buildUnnamed866();
10528 var arg_sortField = "foo"; 10563 var arg_sortField = "foo";
10529 var arg_sortOrder = "foo"; 10564 var arg_sortOrder = "foo";
10530 var arg_sslCompliant = true; 10565 var arg_sslCompliant = true;
10531 var arg_sslRequired = true; 10566 var arg_sslRequired = true;
10532 var arg_type = buildUnnamed454(); 10567 var arg_type = buildUnnamed867();
10533 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10568 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10534 var path = (req.url).path; 10569 var path = (req.url).path;
10535 var pathOffset = 0; 10570 var pathOffset = 0;
10536 var index; 10571 var index;
10537 var subPart; 10572 var subPart;
10538 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10539 pathOffset += 1; 10574 pathOffset += 1;
10540 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 10575 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
10541 pathOffset += 18; 10576 pathOffset += 18;
10542 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/")); 10577 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/"));
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
10588 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 10623 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
10589 unittest.expect(queryMap["sslCompliant"].first, unittest.equals("$arg_ss lCompliant")); 10624 unittest.expect(queryMap["sslCompliant"].first, unittest.equals("$arg_ss lCompliant"));
10590 unittest.expect(queryMap["sslRequired"].first, unittest.equals("$arg_ssl Required")); 10625 unittest.expect(queryMap["sslRequired"].first, unittest.equals("$arg_ssl Required"));
10591 unittest.expect(queryMap["type"], unittest.equals(arg_type)); 10626 unittest.expect(queryMap["type"], unittest.equals(arg_type));
10592 10627
10593 10628
10594 var h = { 10629 var h = {
10595 "content-type" : "application/json; charset=utf-8", 10630 "content-type" : "application/json; charset=utf-8",
10596 }; 10631 };
10597 var resp = convert.JSON.encode(buildAdsListResponse()); 10632 var resp = convert.JSON.encode(buildAdsListResponse());
10598 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10633 return new async.Future.value(stringResponse(200, h, resp));
10599 }), true); 10634 }), true);
10600 res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId , archived: arg_archived, audienceSegmentIds: arg_audienceSegmentIds, campaignId s: arg_campaignIds, compatibility: arg_compatibility, creativeIds: arg_creativeI ds, creativeOptimizationConfigurationIds: arg_creativeOptimizationConfigurationI ds, creativeType: arg_creativeType, dynamicClickTracker: arg_dynamicClickTracker , ids: arg_ids, landingPageIds: arg_landingPageIds, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, placem entIds: arg_placementIds, remarketingListIds: arg_remarketingListIds, searchStri ng: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder, sslCompliant: arg_sslCompliant, sslRequired: arg_sslRequired, ty pe: arg_type).then(unittest.expectAsync(((api.AdsListResponse response) { 10635 res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId , archived: arg_archived, audienceSegmentIds: arg_audienceSegmentIds, campaignId s: arg_campaignIds, compatibility: arg_compatibility, creativeIds: arg_creativeI ds, creativeOptimizationConfigurationIds: arg_creativeOptimizationConfigurationI ds, creativeType: arg_creativeType, dynamicClickTracker: arg_dynamicClickTracker , ids: arg_ids, landingPageIds: arg_landingPageIds, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, placem entIds: arg_placementIds, remarketingListIds: arg_remarketingListIds, searchStri ng: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: arg_sortOrder, sslCompliant: arg_sslCompliant, sslRequired: arg_sslRequired, ty pe: arg_type).then(unittest.expectAsync(((api.AdsListResponse response) {
10601 checkAdsListResponse(response); 10636 checkAdsListResponse(response);
10602 }))); 10637 })));
10603 }); 10638 });
10604 10639
10605 unittest.test("method--patch", () { 10640 unittest.test("method--patch", () {
10606 10641
10607 var mock = new common_test.HttpServerMock(); 10642 var mock = new HttpServerMock();
10608 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; 10643 api.AdsResourceApi res = new api.DfareportingApi(mock).ads;
10609 var arg_request = buildAd(); 10644 var arg_request = buildAd();
10610 var arg_profileId = "foo"; 10645 var arg_profileId = "foo";
10611 var arg_id = "foo"; 10646 var arg_id = "foo";
10612 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10647 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10613 var obj = new api.Ad.fromJson(json); 10648 var obj = new api.Ad.fromJson(json);
10614 checkAd(obj); 10649 checkAd(obj);
10615 10650
10616 var path = (req.url).path; 10651 var path = (req.url).path;
10617 var pathOffset = 0; 10652 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
10647 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10682 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10648 } 10683 }
10649 } 10684 }
10650 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 10685 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
10651 10686
10652 10687
10653 var h = { 10688 var h = {
10654 "content-type" : "application/json; charset=utf-8", 10689 "content-type" : "application/json; charset=utf-8",
10655 }; 10690 };
10656 var resp = convert.JSON.encode(buildAd()); 10691 var resp = convert.JSON.encode(buildAd());
10657 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10692 return new async.Future.value(stringResponse(200, h, resp));
10658 }), true); 10693 }), true);
10659 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Ad response) { 10694 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Ad response) {
10660 checkAd(response); 10695 checkAd(response);
10661 }))); 10696 })));
10662 }); 10697 });
10663 10698
10664 unittest.test("method--update", () { 10699 unittest.test("method--update", () {
10665 10700
10666 var mock = new common_test.HttpServerMock(); 10701 var mock = new HttpServerMock();
10667 api.AdsResourceApi res = new api.DfareportingApi(mock).ads; 10702 api.AdsResourceApi res = new api.DfareportingApi(mock).ads;
10668 var arg_request = buildAd(); 10703 var arg_request = buildAd();
10669 var arg_profileId = "foo"; 10704 var arg_profileId = "foo";
10670 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10705 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10671 var obj = new api.Ad.fromJson(json); 10706 var obj = new api.Ad.fromJson(json);
10672 checkAd(obj); 10707 checkAd(obj);
10673 10708
10674 var path = (req.url).path; 10709 var path = (req.url).path;
10675 var pathOffset = 0; 10710 var pathOffset = 0;
10676 var index; 10711 var index;
(...skipping 27 matching lines...) Expand all
10704 var keyvalue = part.split("="); 10739 var keyvalue = part.split("=");
10705 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10740 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10706 } 10741 }
10707 } 10742 }
10708 10743
10709 10744
10710 var h = { 10745 var h = {
10711 "content-type" : "application/json; charset=utf-8", 10746 "content-type" : "application/json; charset=utf-8",
10712 }; 10747 };
10713 var resp = convert.JSON.encode(buildAd()); 10748 var resp = convert.JSON.encode(buildAd());
10714 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10749 return new async.Future.value(stringResponse(200, h, resp));
10715 }), true); 10750 }), true);
10716 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Ad response) { 10751 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Ad response) {
10717 checkAd(response); 10752 checkAd(response);
10718 }))); 10753 })));
10719 }); 10754 });
10720 10755
10721 }); 10756 });
10722 10757
10723 10758
10724 unittest.group("resource-AdvertiserGroupsResourceApi", () { 10759 unittest.group("resource-AdvertiserGroupsResourceApi", () {
10725 unittest.test("method--delete", () { 10760 unittest.test("method--delete", () {
10726 10761
10727 var mock = new common_test.HttpServerMock(); 10762 var mock = new HttpServerMock();
10728 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups; 10763 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups;
10729 var arg_profileId = "foo"; 10764 var arg_profileId = "foo";
10730 var arg_id = "foo"; 10765 var arg_id = "foo";
10731 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10766 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10732 var path = (req.url).path; 10767 var path = (req.url).path;
10733 var pathOffset = 0; 10768 var pathOffset = 0;
10734 var index; 10769 var index;
10735 var subPart; 10770 var subPart;
10736 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10771 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10737 pathOffset += 1; 10772 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
10765 var keyvalue = part.split("="); 10800 var keyvalue = part.split("=");
10766 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10801 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10767 } 10802 }
10768 } 10803 }
10769 10804
10770 10805
10771 var h = { 10806 var h = {
10772 "content-type" : "application/json; charset=utf-8", 10807 "content-type" : "application/json; charset=utf-8",
10773 }; 10808 };
10774 var resp = ""; 10809 var resp = "";
10775 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10810 return new async.Future.value(stringResponse(200, h, resp));
10776 }), true); 10811 }), true);
10777 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); 10812 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
10778 }); 10813 });
10779 10814
10780 unittest.test("method--get", () { 10815 unittest.test("method--get", () {
10781 10816
10782 var mock = new common_test.HttpServerMock(); 10817 var mock = new HttpServerMock();
10783 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups; 10818 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups;
10784 var arg_profileId = "foo"; 10819 var arg_profileId = "foo";
10785 var arg_id = "foo"; 10820 var arg_id = "foo";
10786 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10821 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10787 var path = (req.url).path; 10822 var path = (req.url).path;
10788 var pathOffset = 0; 10823 var pathOffset = 0;
10789 var index; 10824 var index;
10790 var subPart; 10825 var subPart;
10791 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 10826 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
10792 pathOffset += 1; 10827 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
10820 var keyvalue = part.split("="); 10855 var keyvalue = part.split("=");
10821 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10856 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10822 } 10857 }
10823 } 10858 }
10824 10859
10825 10860
10826 var h = { 10861 var h = {
10827 "content-type" : "application/json; charset=utf-8", 10862 "content-type" : "application/json; charset=utf-8",
10828 }; 10863 };
10829 var resp = convert.JSON.encode(buildAdvertiserGroup()); 10864 var resp = convert.JSON.encode(buildAdvertiserGroup());
10830 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10865 return new async.Future.value(stringResponse(200, h, resp));
10831 }), true); 10866 }), true);
10832 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AdvertiserG roup response) { 10867 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.AdvertiserG roup response) {
10833 checkAdvertiserGroup(response); 10868 checkAdvertiserGroup(response);
10834 }))); 10869 })));
10835 }); 10870 });
10836 10871
10837 unittest.test("method--insert", () { 10872 unittest.test("method--insert", () {
10838 10873
10839 var mock = new common_test.HttpServerMock(); 10874 var mock = new HttpServerMock();
10840 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups; 10875 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups;
10841 var arg_request = buildAdvertiserGroup(); 10876 var arg_request = buildAdvertiserGroup();
10842 var arg_profileId = "foo"; 10877 var arg_profileId = "foo";
10843 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10878 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10844 var obj = new api.AdvertiserGroup.fromJson(json); 10879 var obj = new api.AdvertiserGroup.fromJson(json);
10845 checkAdvertiserGroup(obj); 10880 checkAdvertiserGroup(obj);
10846 10881
10847 var path = (req.url).path; 10882 var path = (req.url).path;
10848 var pathOffset = 0; 10883 var pathOffset = 0;
10849 var index; 10884 var index;
(...skipping 27 matching lines...) Expand all
10877 var keyvalue = part.split("="); 10912 var keyvalue = part.split("=");
10878 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 10913 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
10879 } 10914 }
10880 } 10915 }
10881 10916
10882 10917
10883 var h = { 10918 var h = {
10884 "content-type" : "application/json; charset=utf-8", 10919 "content-type" : "application/json; charset=utf-8",
10885 }; 10920 };
10886 var resp = convert.JSON.encode(buildAdvertiserGroup()); 10921 var resp = convert.JSON.encode(buildAdvertiserGroup());
10887 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10922 return new async.Future.value(stringResponse(200, h, resp));
10888 }), true); 10923 }), true);
10889 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv ertiserGroup response) { 10924 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv ertiserGroup response) {
10890 checkAdvertiserGroup(response); 10925 checkAdvertiserGroup(response);
10891 }))); 10926 })));
10892 }); 10927 });
10893 10928
10894 unittest.test("method--list", () { 10929 unittest.test("method--list", () {
10895 10930
10896 var mock = new common_test.HttpServerMock(); 10931 var mock = new HttpServerMock();
10897 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups; 10932 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups;
10898 var arg_profileId = "foo"; 10933 var arg_profileId = "foo";
10899 var arg_ids = buildUnnamed455(); 10934 var arg_ids = buildUnnamed868();
10900 var arg_maxResults = 42; 10935 var arg_maxResults = 42;
10901 var arg_pageToken = "foo"; 10936 var arg_pageToken = "foo";
10902 var arg_searchString = "foo"; 10937 var arg_searchString = "foo";
10903 var arg_sortField = "foo"; 10938 var arg_sortField = "foo";
10904 var arg_sortOrder = "foo"; 10939 var arg_sortOrder = "foo";
10905 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 10940 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10906 var path = (req.url).path; 10941 var path = (req.url).path;
10907 var pathOffset = 0; 10942 var pathOffset = 0;
10908 var index; 10943 var index;
10909 var subPart; 10944 var subPart;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
10942 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 10977 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
10943 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 10978 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
10944 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 10979 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
10945 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 10980 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
10946 10981
10947 10982
10948 var h = { 10983 var h = {
10949 "content-type" : "application/json; charset=utf-8", 10984 "content-type" : "application/json; charset=utf-8",
10950 }; 10985 };
10951 var resp = convert.JSON.encode(buildAdvertiserGroupsListResponse()); 10986 var resp = convert.JSON.encode(buildAdvertiserGroupsListResponse());
10952 return new async.Future.value(common_test.stringResponse(200, h, resp)); 10987 return new async.Future.value(stringResponse(200, h, resp));
10953 }), true); 10988 }), true);
10954 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort Order: arg_sortOrder).then(unittest.expectAsync(((api.AdvertiserGroupsListRespon se response) { 10989 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort Order: arg_sortOrder).then(unittest.expectAsync(((api.AdvertiserGroupsListRespon se response) {
10955 checkAdvertiserGroupsListResponse(response); 10990 checkAdvertiserGroupsListResponse(response);
10956 }))); 10991 })));
10957 }); 10992 });
10958 10993
10959 unittest.test("method--patch", () { 10994 unittest.test("method--patch", () {
10960 10995
10961 var mock = new common_test.HttpServerMock(); 10996 var mock = new HttpServerMock();
10962 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups; 10997 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups;
10963 var arg_request = buildAdvertiserGroup(); 10998 var arg_request = buildAdvertiserGroup();
10964 var arg_profileId = "foo"; 10999 var arg_profileId = "foo";
10965 var arg_id = "foo"; 11000 var arg_id = "foo";
10966 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11001 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
10967 var obj = new api.AdvertiserGroup.fromJson(json); 11002 var obj = new api.AdvertiserGroup.fromJson(json);
10968 checkAdvertiserGroup(obj); 11003 checkAdvertiserGroup(obj);
10969 11004
10970 var path = (req.url).path; 11005 var path = (req.url).path;
10971 var pathOffset = 0; 11006 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
11001 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11036 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11002 } 11037 }
11003 } 11038 }
11004 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 11039 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
11005 11040
11006 11041
11007 var h = { 11042 var h = {
11008 "content-type" : "application/json; charset=utf-8", 11043 "content-type" : "application/json; charset=utf-8",
11009 }; 11044 };
11010 var resp = convert.JSON.encode(buildAdvertiserGroup()); 11045 var resp = convert.JSON.encode(buildAdvertiserGroup());
11011 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11046 return new async.Future.value(stringResponse(200, h, resp));
11012 }), true); 11047 }), true);
11013 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.AdvertiserGroup response) { 11048 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.AdvertiserGroup response) {
11014 checkAdvertiserGroup(response); 11049 checkAdvertiserGroup(response);
11015 }))); 11050 })));
11016 }); 11051 });
11017 11052
11018 unittest.test("method--update", () { 11053 unittest.test("method--update", () {
11019 11054
11020 var mock = new common_test.HttpServerMock(); 11055 var mock = new HttpServerMock();
11021 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups; 11056 api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advert iserGroups;
11022 var arg_request = buildAdvertiserGroup(); 11057 var arg_request = buildAdvertiserGroup();
11023 var arg_profileId = "foo"; 11058 var arg_profileId = "foo";
11024 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11059 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11025 var obj = new api.AdvertiserGroup.fromJson(json); 11060 var obj = new api.AdvertiserGroup.fromJson(json);
11026 checkAdvertiserGroup(obj); 11061 checkAdvertiserGroup(obj);
11027 11062
11028 var path = (req.url).path; 11063 var path = (req.url).path;
11029 var pathOffset = 0; 11064 var pathOffset = 0;
11030 var index; 11065 var index;
(...skipping 27 matching lines...) Expand all
11058 var keyvalue = part.split("="); 11093 var keyvalue = part.split("=");
11059 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11094 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11060 } 11095 }
11061 } 11096 }
11062 11097
11063 11098
11064 var h = { 11099 var h = {
11065 "content-type" : "application/json; charset=utf-8", 11100 "content-type" : "application/json; charset=utf-8",
11066 }; 11101 };
11067 var resp = convert.JSON.encode(buildAdvertiserGroup()); 11102 var resp = convert.JSON.encode(buildAdvertiserGroup());
11068 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11103 return new async.Future.value(stringResponse(200, h, resp));
11069 }), true); 11104 }), true);
11070 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv ertiserGroup response) { 11105 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv ertiserGroup response) {
11071 checkAdvertiserGroup(response); 11106 checkAdvertiserGroup(response);
11072 }))); 11107 })));
11073 }); 11108 });
11074 11109
11075 }); 11110 });
11076 11111
11077 11112
11078 unittest.group("resource-AdvertisersResourceApi", () { 11113 unittest.group("resource-AdvertisersResourceApi", () {
11079 unittest.test("method--get", () { 11114 unittest.test("method--get", () {
11080 11115
11081 var mock = new common_test.HttpServerMock(); 11116 var mock = new HttpServerMock();
11082 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ; 11117 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ;
11083 var arg_profileId = "foo"; 11118 var arg_profileId = "foo";
11084 var arg_id = "foo"; 11119 var arg_id = "foo";
11085 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11120 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11086 var path = (req.url).path; 11121 var path = (req.url).path;
11087 var pathOffset = 0; 11122 var pathOffset = 0;
11088 var index; 11123 var index;
11089 var subPart; 11124 var subPart;
11090 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11125 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11091 pathOffset += 1; 11126 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
11119 var keyvalue = part.split("="); 11154 var keyvalue = part.split("=");
11120 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11155 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11121 } 11156 }
11122 } 11157 }
11123 11158
11124 11159
11125 var h = { 11160 var h = {
11126 "content-type" : "application/json; charset=utf-8", 11161 "content-type" : "application/json; charset=utf-8",
11127 }; 11162 };
11128 var resp = convert.JSON.encode(buildAdvertiser()); 11163 var resp = convert.JSON.encode(buildAdvertiser());
11129 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11164 return new async.Future.value(stringResponse(200, h, resp));
11130 }), true); 11165 }), true);
11131 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Advertiser response) { 11166 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Advertiser response) {
11132 checkAdvertiser(response); 11167 checkAdvertiser(response);
11133 }))); 11168 })));
11134 }); 11169 });
11135 11170
11136 unittest.test("method--insert", () { 11171 unittest.test("method--insert", () {
11137 11172
11138 var mock = new common_test.HttpServerMock(); 11173 var mock = new HttpServerMock();
11139 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ; 11174 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ;
11140 var arg_request = buildAdvertiser(); 11175 var arg_request = buildAdvertiser();
11141 var arg_profileId = "foo"; 11176 var arg_profileId = "foo";
11142 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11177 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11143 var obj = new api.Advertiser.fromJson(json); 11178 var obj = new api.Advertiser.fromJson(json);
11144 checkAdvertiser(obj); 11179 checkAdvertiser(obj);
11145 11180
11146 var path = (req.url).path; 11181 var path = (req.url).path;
11147 var pathOffset = 0; 11182 var pathOffset = 0;
11148 var index; 11183 var index;
(...skipping 27 matching lines...) Expand all
11176 var keyvalue = part.split("="); 11211 var keyvalue = part.split("=");
11177 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11212 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11178 } 11213 }
11179 } 11214 }
11180 11215
11181 11216
11182 var h = { 11217 var h = {
11183 "content-type" : "application/json; charset=utf-8", 11218 "content-type" : "application/json; charset=utf-8",
11184 }; 11219 };
11185 var resp = convert.JSON.encode(buildAdvertiser()); 11220 var resp = convert.JSON.encode(buildAdvertiser());
11186 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11221 return new async.Future.value(stringResponse(200, h, resp));
11187 }), true); 11222 }), true);
11188 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv ertiser response) { 11223 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv ertiser response) {
11189 checkAdvertiser(response); 11224 checkAdvertiser(response);
11190 }))); 11225 })));
11191 }); 11226 });
11192 11227
11193 unittest.test("method--list", () { 11228 unittest.test("method--list", () {
11194 11229
11195 var mock = new common_test.HttpServerMock(); 11230 var mock = new HttpServerMock();
11196 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ; 11231 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ;
11197 var arg_profileId = "foo"; 11232 var arg_profileId = "foo";
11198 var arg_advertiserGroupIds = buildUnnamed456(); 11233 var arg_advertiserGroupIds = buildUnnamed869();
11199 var arg_floodlightConfigurationIds = buildUnnamed457(); 11234 var arg_floodlightConfigurationIds = buildUnnamed870();
11200 var arg_ids = buildUnnamed458(); 11235 var arg_ids = buildUnnamed871();
11201 var arg_includeAdvertisersWithoutGroupsOnly = true; 11236 var arg_includeAdvertisersWithoutGroupsOnly = true;
11202 var arg_maxResults = 42; 11237 var arg_maxResults = 42;
11203 var arg_onlyParent = true; 11238 var arg_onlyParent = true;
11204 var arg_pageToken = "foo"; 11239 var arg_pageToken = "foo";
11205 var arg_searchString = "foo"; 11240 var arg_searchString = "foo";
11206 var arg_sortField = "foo"; 11241 var arg_sortField = "foo";
11207 var arg_sortOrder = "foo"; 11242 var arg_sortOrder = "foo";
11208 var arg_status = "foo"; 11243 var arg_status = "foo";
11209 var arg_subaccountId = "foo"; 11244 var arg_subaccountId = "foo";
11210 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11245 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
11253 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 11288 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
11254 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 11289 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
11255 unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); 11290 unittest.expect(queryMap["status"].first, unittest.equals(arg_status));
11256 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId)); 11291 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId));
11257 11292
11258 11293
11259 var h = { 11294 var h = {
11260 "content-type" : "application/json; charset=utf-8", 11295 "content-type" : "application/json; charset=utf-8",
11261 }; 11296 };
11262 var resp = convert.JSON.encode(buildAdvertisersListResponse()); 11297 var resp = convert.JSON.encode(buildAdvertisersListResponse());
11263 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11298 return new async.Future.value(stringResponse(200, h, resp));
11264 }), true); 11299 }), true);
11265 res.list(arg_profileId, advertiserGroupIds: arg_advertiserGroupIds, floodl ightConfigurationIds: arg_floodlightConfigurationIds, ids: arg_ids, includeAdver tisersWithoutGroupsOnly: arg_includeAdvertisersWithoutGroupsOnly, maxResults: ar g_maxResults, onlyParent: arg_onlyParent, pageToken: arg_pageToken, searchString : arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, status: arg_status, subaccountId: arg_subaccountId).then(unittest.expectAsync(((api.Adve rtisersListResponse response) { 11300 res.list(arg_profileId, advertiserGroupIds: arg_advertiserGroupIds, floodl ightConfigurationIds: arg_floodlightConfigurationIds, ids: arg_ids, includeAdver tisersWithoutGroupsOnly: arg_includeAdvertisersWithoutGroupsOnly, maxResults: ar g_maxResults, onlyParent: arg_onlyParent, pageToken: arg_pageToken, searchString : arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, status: arg_status, subaccountId: arg_subaccountId).then(unittest.expectAsync(((api.Adve rtisersListResponse response) {
11266 checkAdvertisersListResponse(response); 11301 checkAdvertisersListResponse(response);
11267 }))); 11302 })));
11268 }); 11303 });
11269 11304
11270 unittest.test("method--patch", () { 11305 unittest.test("method--patch", () {
11271 11306
11272 var mock = new common_test.HttpServerMock(); 11307 var mock = new HttpServerMock();
11273 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ; 11308 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ;
11274 var arg_request = buildAdvertiser(); 11309 var arg_request = buildAdvertiser();
11275 var arg_profileId = "foo"; 11310 var arg_profileId = "foo";
11276 var arg_id = "foo"; 11311 var arg_id = "foo";
11277 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11312 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11278 var obj = new api.Advertiser.fromJson(json); 11313 var obj = new api.Advertiser.fromJson(json);
11279 checkAdvertiser(obj); 11314 checkAdvertiser(obj);
11280 11315
11281 var path = (req.url).path; 11316 var path = (req.url).path;
11282 var pathOffset = 0; 11317 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
11312 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11347 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11313 } 11348 }
11314 } 11349 }
11315 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 11350 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
11316 11351
11317 11352
11318 var h = { 11353 var h = {
11319 "content-type" : "application/json; charset=utf-8", 11354 "content-type" : "application/json; charset=utf-8",
11320 }; 11355 };
11321 var resp = convert.JSON.encode(buildAdvertiser()); 11356 var resp = convert.JSON.encode(buildAdvertiser());
11322 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11357 return new async.Future.value(stringResponse(200, h, resp));
11323 }), true); 11358 }), true);
11324 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Advertiser response) { 11359 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Advertiser response) {
11325 checkAdvertiser(response); 11360 checkAdvertiser(response);
11326 }))); 11361 })));
11327 }); 11362 });
11328 11363
11329 unittest.test("method--update", () { 11364 unittest.test("method--update", () {
11330 11365
11331 var mock = new common_test.HttpServerMock(); 11366 var mock = new HttpServerMock();
11332 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ; 11367 api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers ;
11333 var arg_request = buildAdvertiser(); 11368 var arg_request = buildAdvertiser();
11334 var arg_profileId = "foo"; 11369 var arg_profileId = "foo";
11335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11370 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11336 var obj = new api.Advertiser.fromJson(json); 11371 var obj = new api.Advertiser.fromJson(json);
11337 checkAdvertiser(obj); 11372 checkAdvertiser(obj);
11338 11373
11339 var path = (req.url).path; 11374 var path = (req.url).path;
11340 var pathOffset = 0; 11375 var pathOffset = 0;
11341 var index; 11376 var index;
(...skipping 27 matching lines...) Expand all
11369 var keyvalue = part.split("="); 11404 var keyvalue = part.split("=");
11370 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11405 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11371 } 11406 }
11372 } 11407 }
11373 11408
11374 11409
11375 var h = { 11410 var h = {
11376 "content-type" : "application/json; charset=utf-8", 11411 "content-type" : "application/json; charset=utf-8",
11377 }; 11412 };
11378 var resp = convert.JSON.encode(buildAdvertiser()); 11413 var resp = convert.JSON.encode(buildAdvertiser());
11379 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11414 return new async.Future.value(stringResponse(200, h, resp));
11380 }), true); 11415 }), true);
11381 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv ertiser response) { 11416 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Adv ertiser response) {
11382 checkAdvertiser(response); 11417 checkAdvertiser(response);
11383 }))); 11418 })));
11384 }); 11419 });
11385 11420
11386 }); 11421 });
11387 11422
11388 11423
11389 unittest.group("resource-BrowsersResourceApi", () { 11424 unittest.group("resource-BrowsersResourceApi", () {
11390 unittest.test("method--list", () { 11425 unittest.test("method--list", () {
11391 11426
11392 var mock = new common_test.HttpServerMock(); 11427 var mock = new HttpServerMock();
11393 api.BrowsersResourceApi res = new api.DfareportingApi(mock).browsers; 11428 api.BrowsersResourceApi res = new api.DfareportingApi(mock).browsers;
11394 var arg_profileId = "foo"; 11429 var arg_profileId = "foo";
11395 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11430 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11396 var path = (req.url).path; 11431 var path = (req.url).path;
11397 var pathOffset = 0; 11432 var pathOffset = 0;
11398 var index; 11433 var index;
11399 var subPart; 11434 var subPart;
11400 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11435 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11401 pathOffset += 1; 11436 pathOffset += 1;
11402 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 11437 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
11426 var keyvalue = part.split("="); 11461 var keyvalue = part.split("=");
11427 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11462 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11428 } 11463 }
11429 } 11464 }
11430 11465
11431 11466
11432 var h = { 11467 var h = {
11433 "content-type" : "application/json; charset=utf-8", 11468 "content-type" : "application/json; charset=utf-8",
11434 }; 11469 };
11435 var resp = convert.JSON.encode(buildBrowsersListResponse()); 11470 var resp = convert.JSON.encode(buildBrowsersListResponse());
11436 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11471 return new async.Future.value(stringResponse(200, h, resp));
11437 }), true); 11472 }), true);
11438 res.list(arg_profileId).then(unittest.expectAsync(((api.BrowsersListRespon se response) { 11473 res.list(arg_profileId).then(unittest.expectAsync(((api.BrowsersListRespon se response) {
11439 checkBrowsersListResponse(response); 11474 checkBrowsersListResponse(response);
11440 }))); 11475 })));
11441 }); 11476 });
11442 11477
11443 }); 11478 });
11444 11479
11445 11480
11446 unittest.group("resource-CampaignCreativeAssociationsResourceApi", () { 11481 unittest.group("resource-CampaignCreativeAssociationsResourceApi", () {
11447 unittest.test("method--insert", () { 11482 unittest.test("method--insert", () {
11448 11483
11449 var mock = new common_test.HttpServerMock(); 11484 var mock = new HttpServerMock();
11450 api.CampaignCreativeAssociationsResourceApi res = new api.DfareportingApi( mock).campaignCreativeAssociations; 11485 api.CampaignCreativeAssociationsResourceApi res = new api.DfareportingApi( mock).campaignCreativeAssociations;
11451 var arg_request = buildCampaignCreativeAssociation(); 11486 var arg_request = buildCampaignCreativeAssociation();
11452 var arg_profileId = "foo"; 11487 var arg_profileId = "foo";
11453 var arg_campaignId = "foo"; 11488 var arg_campaignId = "foo";
11454 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11489 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11455 var obj = new api.CampaignCreativeAssociation.fromJson(json); 11490 var obj = new api.CampaignCreativeAssociation.fromJson(json);
11456 checkCampaignCreativeAssociation(obj); 11491 checkCampaignCreativeAssociation(obj);
11457 11492
11458 var path = (req.url).path; 11493 var path = (req.url).path;
11459 var pathOffset = 0; 11494 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
11495 var keyvalue = part.split("="); 11530 var keyvalue = part.split("=");
11496 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11531 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11497 } 11532 }
11498 } 11533 }
11499 11534
11500 11535
11501 var h = { 11536 var h = {
11502 "content-type" : "application/json; charset=utf-8", 11537 "content-type" : "application/json; charset=utf-8",
11503 }; 11538 };
11504 var resp = convert.JSON.encode(buildCampaignCreativeAssociation()); 11539 var resp = convert.JSON.encode(buildCampaignCreativeAssociation());
11505 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11540 return new async.Future.value(stringResponse(200, h, resp));
11506 }), true); 11541 }), true);
11507 res.insert(arg_request, arg_profileId, arg_campaignId).then(unittest.expec tAsync(((api.CampaignCreativeAssociation response) { 11542 res.insert(arg_request, arg_profileId, arg_campaignId).then(unittest.expec tAsync(((api.CampaignCreativeAssociation response) {
11508 checkCampaignCreativeAssociation(response); 11543 checkCampaignCreativeAssociation(response);
11509 }))); 11544 })));
11510 }); 11545 });
11511 11546
11512 unittest.test("method--list", () { 11547 unittest.test("method--list", () {
11513 11548
11514 var mock = new common_test.HttpServerMock(); 11549 var mock = new HttpServerMock();
11515 api.CampaignCreativeAssociationsResourceApi res = new api.DfareportingApi( mock).campaignCreativeAssociations; 11550 api.CampaignCreativeAssociationsResourceApi res = new api.DfareportingApi( mock).campaignCreativeAssociations;
11516 var arg_profileId = "foo"; 11551 var arg_profileId = "foo";
11517 var arg_campaignId = "foo"; 11552 var arg_campaignId = "foo";
11518 var arg_maxResults = 42; 11553 var arg_maxResults = 42;
11519 var arg_pageToken = "foo"; 11554 var arg_pageToken = "foo";
11520 var arg_sortOrder = "foo"; 11555 var arg_sortOrder = "foo";
11521 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11556 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11522 var path = (req.url).path; 11557 var path = (req.url).path;
11523 var pathOffset = 0; 11558 var pathOffset = 0;
11524 var index; 11559 var index;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
11562 } 11597 }
11563 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 11598 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
11564 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 11599 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
11565 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 11600 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
11566 11601
11567 11602
11568 var h = { 11603 var h = {
11569 "content-type" : "application/json; charset=utf-8", 11604 "content-type" : "application/json; charset=utf-8",
11570 }; 11605 };
11571 var resp = convert.JSON.encode(buildCampaignCreativeAssociationsListResp onse()); 11606 var resp = convert.JSON.encode(buildCampaignCreativeAssociationsListResp onse());
11572 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11607 return new async.Future.value(stringResponse(200, h, resp));
11573 }), true); 11608 }), true);
11574 res.list(arg_profileId, arg_campaignId, maxResults: arg_maxResults, pageTo ken: arg_pageToken, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.Ca mpaignCreativeAssociationsListResponse response) { 11609 res.list(arg_profileId, arg_campaignId, maxResults: arg_maxResults, pageTo ken: arg_pageToken, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.Ca mpaignCreativeAssociationsListResponse response) {
11575 checkCampaignCreativeAssociationsListResponse(response); 11610 checkCampaignCreativeAssociationsListResponse(response);
11576 }))); 11611 })));
11577 }); 11612 });
11578 11613
11579 }); 11614 });
11580 11615
11581 11616
11582 unittest.group("resource-CampaignsResourceApi", () { 11617 unittest.group("resource-CampaignsResourceApi", () {
11583 unittest.test("method--get", () { 11618 unittest.test("method--get", () {
11584 11619
11585 var mock = new common_test.HttpServerMock(); 11620 var mock = new HttpServerMock();
11586 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; 11621 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns;
11587 var arg_profileId = "foo"; 11622 var arg_profileId = "foo";
11588 var arg_id = "foo"; 11623 var arg_id = "foo";
11589 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11624 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11590 var path = (req.url).path; 11625 var path = (req.url).path;
11591 var pathOffset = 0; 11626 var pathOffset = 0;
11592 var index; 11627 var index;
11593 var subPart; 11628 var subPart;
11594 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11629 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11595 pathOffset += 1; 11630 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
11623 var keyvalue = part.split("="); 11658 var keyvalue = part.split("=");
11624 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11659 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11625 } 11660 }
11626 } 11661 }
11627 11662
11628 11663
11629 var h = { 11664 var h = {
11630 "content-type" : "application/json; charset=utf-8", 11665 "content-type" : "application/json; charset=utf-8",
11631 }; 11666 };
11632 var resp = convert.JSON.encode(buildCampaign()); 11667 var resp = convert.JSON.encode(buildCampaign());
11633 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11668 return new async.Future.value(stringResponse(200, h, resp));
11634 }), true); 11669 }), true);
11635 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Campaign re sponse) { 11670 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Campaign re sponse) {
11636 checkCampaign(response); 11671 checkCampaign(response);
11637 }))); 11672 })));
11638 }); 11673 });
11639 11674
11640 unittest.test("method--insert", () { 11675 unittest.test("method--insert", () {
11641 11676
11642 var mock = new common_test.HttpServerMock(); 11677 var mock = new HttpServerMock();
11643 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; 11678 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns;
11644 var arg_request = buildCampaign(); 11679 var arg_request = buildCampaign();
11645 var arg_profileId = "foo"; 11680 var arg_profileId = "foo";
11646 var arg_defaultLandingPageName = "foo"; 11681 var arg_defaultLandingPageName = "foo";
11647 var arg_defaultLandingPageUrl = "foo"; 11682 var arg_defaultLandingPageUrl = "foo";
11648 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11683 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11649 var obj = new api.Campaign.fromJson(json); 11684 var obj = new api.Campaign.fromJson(json);
11650 checkCampaign(obj); 11685 checkCampaign(obj);
11651 11686
11652 var path = (req.url).path; 11687 var path = (req.url).path;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
11684 } 11719 }
11685 } 11720 }
11686 unittest.expect(queryMap["defaultLandingPageName"].first, unittest.equal s(arg_defaultLandingPageName)); 11721 unittest.expect(queryMap["defaultLandingPageName"].first, unittest.equal s(arg_defaultLandingPageName));
11687 unittest.expect(queryMap["defaultLandingPageUrl"].first, unittest.equals (arg_defaultLandingPageUrl)); 11722 unittest.expect(queryMap["defaultLandingPageUrl"].first, unittest.equals (arg_defaultLandingPageUrl));
11688 11723
11689 11724
11690 var h = { 11725 var h = {
11691 "content-type" : "application/json; charset=utf-8", 11726 "content-type" : "application/json; charset=utf-8",
11692 }; 11727 };
11693 var resp = convert.JSON.encode(buildCampaign()); 11728 var resp = convert.JSON.encode(buildCampaign());
11694 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11729 return new async.Future.value(stringResponse(200, h, resp));
11695 }), true); 11730 }), true);
11696 res.insert(arg_request, arg_profileId, arg_defaultLandingPageName, arg_def aultLandingPageUrl).then(unittest.expectAsync(((api.Campaign response) { 11731 res.insert(arg_request, arg_profileId, arg_defaultLandingPageName, arg_def aultLandingPageUrl).then(unittest.expectAsync(((api.Campaign response) {
11697 checkCampaign(response); 11732 checkCampaign(response);
11698 }))); 11733 })));
11699 }); 11734 });
11700 11735
11701 unittest.test("method--list", () { 11736 unittest.test("method--list", () {
11702 11737
11703 var mock = new common_test.HttpServerMock(); 11738 var mock = new HttpServerMock();
11704 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; 11739 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns;
11705 var arg_profileId = "foo"; 11740 var arg_profileId = "foo";
11706 var arg_advertiserGroupIds = buildUnnamed459(); 11741 var arg_advertiserGroupIds = buildUnnamed872();
11707 var arg_advertiserIds = buildUnnamed460(); 11742 var arg_advertiserIds = buildUnnamed873();
11708 var arg_archived = true; 11743 var arg_archived = true;
11709 var arg_atLeastOneOptimizationActivity = true; 11744 var arg_atLeastOneOptimizationActivity = true;
11710 var arg_excludedIds = buildUnnamed461(); 11745 var arg_excludedIds = buildUnnamed874();
11711 var arg_ids = buildUnnamed462(); 11746 var arg_ids = buildUnnamed875();
11712 var arg_maxResults = 42; 11747 var arg_maxResults = 42;
11713 var arg_overriddenEventTagId = "foo"; 11748 var arg_overriddenEventTagId = "foo";
11714 var arg_pageToken = "foo"; 11749 var arg_pageToken = "foo";
11715 var arg_searchString = "foo"; 11750 var arg_searchString = "foo";
11716 var arg_sortField = "foo"; 11751 var arg_sortField = "foo";
11717 var arg_sortOrder = "foo"; 11752 var arg_sortOrder = "foo";
11718 var arg_subaccountId = "foo"; 11753 var arg_subaccountId = "foo";
11719 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11754 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11720 var path = (req.url).path; 11755 var path = (req.url).path;
11721 var pathOffset = 0; 11756 var pathOffset = 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
11763 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 11798 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
11764 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 11799 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
11765 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 11800 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
11766 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId)); 11801 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId));
11767 11802
11768 11803
11769 var h = { 11804 var h = {
11770 "content-type" : "application/json; charset=utf-8", 11805 "content-type" : "application/json; charset=utf-8",
11771 }; 11806 };
11772 var resp = convert.JSON.encode(buildCampaignsListResponse()); 11807 var resp = convert.JSON.encode(buildCampaignsListResponse());
11773 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11808 return new async.Future.value(stringResponse(200, h, resp));
11774 }), true); 11809 }), true);
11775 res.list(arg_profileId, advertiserGroupIds: arg_advertiserGroupIds, advert iserIds: arg_advertiserIds, archived: arg_archived, atLeastOneOptimizationActivi ty: arg_atLeastOneOptimizationActivity, excludedIds: arg_excludedIds, ids: arg_i ds, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortFie ld, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId).then(unittest.expe ctAsync(((api.CampaignsListResponse response) { 11810 res.list(arg_profileId, advertiserGroupIds: arg_advertiserGroupIds, advert iserIds: arg_advertiserIds, archived: arg_archived, atLeastOneOptimizationActivi ty: arg_atLeastOneOptimizationActivity, excludedIds: arg_excludedIds, ids: arg_i ds, maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortFie ld, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId).then(unittest.expe ctAsync(((api.CampaignsListResponse response) {
11776 checkCampaignsListResponse(response); 11811 checkCampaignsListResponse(response);
11777 }))); 11812 })));
11778 }); 11813 });
11779 11814
11780 unittest.test("method--patch", () { 11815 unittest.test("method--patch", () {
11781 11816
11782 var mock = new common_test.HttpServerMock(); 11817 var mock = new HttpServerMock();
11783 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; 11818 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns;
11784 var arg_request = buildCampaign(); 11819 var arg_request = buildCampaign();
11785 var arg_profileId = "foo"; 11820 var arg_profileId = "foo";
11786 var arg_id = "foo"; 11821 var arg_id = "foo";
11787 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11822 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11788 var obj = new api.Campaign.fromJson(json); 11823 var obj = new api.Campaign.fromJson(json);
11789 checkCampaign(obj); 11824 checkCampaign(obj);
11790 11825
11791 var path = (req.url).path; 11826 var path = (req.url).path;
11792 var pathOffset = 0; 11827 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
11822 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11857 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11823 } 11858 }
11824 } 11859 }
11825 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 11860 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
11826 11861
11827 11862
11828 var h = { 11863 var h = {
11829 "content-type" : "application/json; charset=utf-8", 11864 "content-type" : "application/json; charset=utf-8",
11830 }; 11865 };
11831 var resp = convert.JSON.encode(buildCampaign()); 11866 var resp = convert.JSON.encode(buildCampaign());
11832 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11867 return new async.Future.value(stringResponse(200, h, resp));
11833 }), true); 11868 }), true);
11834 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Campaign response) { 11869 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Campaign response) {
11835 checkCampaign(response); 11870 checkCampaign(response);
11836 }))); 11871 })));
11837 }); 11872 });
11838 11873
11839 unittest.test("method--update", () { 11874 unittest.test("method--update", () {
11840 11875
11841 var mock = new common_test.HttpServerMock(); 11876 var mock = new HttpServerMock();
11842 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; 11877 api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns;
11843 var arg_request = buildCampaign(); 11878 var arg_request = buildCampaign();
11844 var arg_profileId = "foo"; 11879 var arg_profileId = "foo";
11845 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11880 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11846 var obj = new api.Campaign.fromJson(json); 11881 var obj = new api.Campaign.fromJson(json);
11847 checkCampaign(obj); 11882 checkCampaign(obj);
11848 11883
11849 var path = (req.url).path; 11884 var path = (req.url).path;
11850 var pathOffset = 0; 11885 var pathOffset = 0;
11851 var index; 11886 var index;
(...skipping 27 matching lines...) Expand all
11879 var keyvalue = part.split("="); 11914 var keyvalue = part.split("=");
11880 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11915 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11881 } 11916 }
11882 } 11917 }
11883 11918
11884 11919
11885 var h = { 11920 var h = {
11886 "content-type" : "application/json; charset=utf-8", 11921 "content-type" : "application/json; charset=utf-8",
11887 }; 11922 };
11888 var resp = convert.JSON.encode(buildCampaign()); 11923 var resp = convert.JSON.encode(buildCampaign());
11889 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11924 return new async.Future.value(stringResponse(200, h, resp));
11890 }), true); 11925 }), true);
11891 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cam paign response) { 11926 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cam paign response) {
11892 checkCampaign(response); 11927 checkCampaign(response);
11893 }))); 11928 })));
11894 }); 11929 });
11895 11930
11896 }); 11931 });
11897 11932
11898 11933
11899 unittest.group("resource-ChangeLogsResourceApi", () { 11934 unittest.group("resource-ChangeLogsResourceApi", () {
11900 unittest.test("method--get", () { 11935 unittest.test("method--get", () {
11901 11936
11902 var mock = new common_test.HttpServerMock(); 11937 var mock = new HttpServerMock();
11903 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; 11938 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs;
11904 var arg_profileId = "foo"; 11939 var arg_profileId = "foo";
11905 var arg_id = "foo"; 11940 var arg_id = "foo";
11906 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 11941 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11907 var path = (req.url).path; 11942 var path = (req.url).path;
11908 var pathOffset = 0; 11943 var pathOffset = 0;
11909 var index; 11944 var index;
11910 var subPart; 11945 var subPart;
11911 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 11946 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11912 pathOffset += 1; 11947 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
11940 var keyvalue = part.split("="); 11975 var keyvalue = part.split("=");
11941 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 11976 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
11942 } 11977 }
11943 } 11978 }
11944 11979
11945 11980
11946 var h = { 11981 var h = {
11947 "content-type" : "application/json; charset=utf-8", 11982 "content-type" : "application/json; charset=utf-8",
11948 }; 11983 };
11949 var resp = convert.JSON.encode(buildChangeLog()); 11984 var resp = convert.JSON.encode(buildChangeLog());
11950 return new async.Future.value(common_test.stringResponse(200, h, resp)); 11985 return new async.Future.value(stringResponse(200, h, resp));
11951 }), true); 11986 }), true);
11952 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ChangeLog r esponse) { 11987 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ChangeLog r esponse) {
11953 checkChangeLog(response); 11988 checkChangeLog(response);
11954 }))); 11989 })));
11955 }); 11990 });
11956 11991
11957 unittest.test("method--list", () { 11992 unittest.test("method--list", () {
11958 11993
11959 var mock = new common_test.HttpServerMock(); 11994 var mock = new HttpServerMock();
11960 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; 11995 api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs;
11961 var arg_profileId = "foo"; 11996 var arg_profileId = "foo";
11962 var arg_action = "foo"; 11997 var arg_action = "foo";
11963 var arg_ids = buildUnnamed463(); 11998 var arg_ids = buildUnnamed876();
11964 var arg_maxChangeTime = "foo"; 11999 var arg_maxChangeTime = "foo";
11965 var arg_maxResults = 42; 12000 var arg_maxResults = 42;
11966 var arg_minChangeTime = "foo"; 12001 var arg_minChangeTime = "foo";
11967 var arg_objectIds = buildUnnamed464(); 12002 var arg_objectIds = buildUnnamed877();
11968 var arg_objectType = "foo"; 12003 var arg_objectType = "foo";
11969 var arg_pageToken = "foo"; 12004 var arg_pageToken = "foo";
11970 var arg_searchString = "foo"; 12005 var arg_searchString = "foo";
11971 var arg_userProfileIds = buildUnnamed465(); 12006 var arg_userProfileIds = buildUnnamed878();
11972 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12007 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
11973 var path = (req.url).path; 12008 var path = (req.url).path;
11974 var pathOffset = 0; 12009 var pathOffset = 0;
11975 var index; 12010 var index;
11976 var subPart; 12011 var subPart;
11977 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12012 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
11978 pathOffset += 1; 12013 pathOffset += 1;
11979 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 12014 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
11980 pathOffset += 18; 12015 pathOffset += 18;
11981 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/")); 12016 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/"));
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
12013 unittest.expect(queryMap["objectType"].first, unittest.equals(arg_object Type)); 12048 unittest.expect(queryMap["objectType"].first, unittest.equals(arg_object Type));
12014 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 12049 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
12015 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 12050 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
12016 unittest.expect(queryMap["userProfileIds"], unittest.equals(arg_userProf ileIds)); 12051 unittest.expect(queryMap["userProfileIds"], unittest.equals(arg_userProf ileIds));
12017 12052
12018 12053
12019 var h = { 12054 var h = {
12020 "content-type" : "application/json; charset=utf-8", 12055 "content-type" : "application/json; charset=utf-8",
12021 }; 12056 };
12022 var resp = convert.JSON.encode(buildChangeLogsListResponse()); 12057 var resp = convert.JSON.encode(buildChangeLogsListResponse());
12023 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12058 return new async.Future.value(stringResponse(200, h, resp));
12024 }), true); 12059 }), true);
12025 res.list(arg_profileId, action: arg_action, ids: arg_ids, maxChangeTime: a rg_maxChangeTime, maxResults: arg_maxResults, minChangeTime: arg_minChangeTime, objectIds: arg_objectIds, objectType: arg_objectType, pageToken: arg_pageToken, searchString: arg_searchString, userProfileIds: arg_userProfileIds).then(unittes t.expectAsync(((api.ChangeLogsListResponse response) { 12060 res.list(arg_profileId, action: arg_action, ids: arg_ids, maxChangeTime: a rg_maxChangeTime, maxResults: arg_maxResults, minChangeTime: arg_minChangeTime, objectIds: arg_objectIds, objectType: arg_objectType, pageToken: arg_pageToken, searchString: arg_searchString, userProfileIds: arg_userProfileIds).then(unittes t.expectAsync(((api.ChangeLogsListResponse response) {
12026 checkChangeLogsListResponse(response); 12061 checkChangeLogsListResponse(response);
12027 }))); 12062 })));
12028 }); 12063 });
12029 12064
12030 }); 12065 });
12031 12066
12032 12067
12033 unittest.group("resource-CitiesResourceApi", () { 12068 unittest.group("resource-CitiesResourceApi", () {
12034 unittest.test("method--list", () { 12069 unittest.test("method--list", () {
12035 12070
12036 var mock = new common_test.HttpServerMock(); 12071 var mock = new HttpServerMock();
12037 api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; 12072 api.CitiesResourceApi res = new api.DfareportingApi(mock).cities;
12038 var arg_profileId = "foo"; 12073 var arg_profileId = "foo";
12039 var arg_countryDartIds = buildUnnamed466(); 12074 var arg_countryDartIds = buildUnnamed879();
12040 var arg_dartIds = buildUnnamed467(); 12075 var arg_dartIds = buildUnnamed880();
12041 var arg_namePrefix = "foo"; 12076 var arg_namePrefix = "foo";
12042 var arg_regionDartIds = buildUnnamed468(); 12077 var arg_regionDartIds = buildUnnamed881();
12043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12078 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12044 var path = (req.url).path; 12079 var path = (req.url).path;
12045 var pathOffset = 0; 12080 var pathOffset = 0;
12046 var index; 12081 var index;
12047 var subPart; 12082 var subPart;
12048 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12083 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
12049 pathOffset += 1; 12084 pathOffset += 1;
12050 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 12085 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
12051 pathOffset += 18; 12086 pathOffset += 18;
12052 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/")); 12087 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/"));
(...skipping 25 matching lines...) Expand all
12078 unittest.expect(queryMap["countryDartIds"], unittest.equals(arg_countryD artIds)); 12113 unittest.expect(queryMap["countryDartIds"], unittest.equals(arg_countryD artIds));
12079 unittest.expect(queryMap["dartIds"], unittest.equals(arg_dartIds)); 12114 unittest.expect(queryMap["dartIds"], unittest.equals(arg_dartIds));
12080 unittest.expect(queryMap["namePrefix"].first, unittest.equals(arg_namePr efix)); 12115 unittest.expect(queryMap["namePrefix"].first, unittest.equals(arg_namePr efix));
12081 unittest.expect(queryMap["regionDartIds"], unittest.equals(arg_regionDar tIds)); 12116 unittest.expect(queryMap["regionDartIds"], unittest.equals(arg_regionDar tIds));
12082 12117
12083 12118
12084 var h = { 12119 var h = {
12085 "content-type" : "application/json; charset=utf-8", 12120 "content-type" : "application/json; charset=utf-8",
12086 }; 12121 };
12087 var resp = convert.JSON.encode(buildCitiesListResponse()); 12122 var resp = convert.JSON.encode(buildCitiesListResponse());
12088 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12123 return new async.Future.value(stringResponse(200, h, resp));
12089 }), true); 12124 }), true);
12090 res.list(arg_profileId, countryDartIds: arg_countryDartIds, dartIds: arg_d artIds, namePrefix: arg_namePrefix, regionDartIds: arg_regionDartIds).then(unitt est.expectAsync(((api.CitiesListResponse response) { 12125 res.list(arg_profileId, countryDartIds: arg_countryDartIds, dartIds: arg_d artIds, namePrefix: arg_namePrefix, regionDartIds: arg_regionDartIds).then(unitt est.expectAsync(((api.CitiesListResponse response) {
12091 checkCitiesListResponse(response); 12126 checkCitiesListResponse(response);
12092 }))); 12127 })));
12093 }); 12128 });
12094 12129
12095 }); 12130 });
12096 12131
12097 12132
12098 unittest.group("resource-ConnectionTypesResourceApi", () { 12133 unittest.group("resource-ConnectionTypesResourceApi", () {
12099 unittest.test("method--list", () { 12134 unittest.test("method--list", () {
12100 12135
12101 var mock = new common_test.HttpServerMock(); 12136 var mock = new HttpServerMock();
12102 api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connect ionTypes; 12137 api.ConnectionTypesResourceApi res = new api.DfareportingApi(mock).connect ionTypes;
12103 var arg_profileId = "foo"; 12138 var arg_profileId = "foo";
12104 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12139 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12105 var path = (req.url).path; 12140 var path = (req.url).path;
12106 var pathOffset = 0; 12141 var pathOffset = 0;
12107 var index; 12142 var index;
12108 var subPart; 12143 var subPart;
12109 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12144 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
12110 pathOffset += 1; 12145 pathOffset += 1;
12111 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 12146 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
12135 var keyvalue = part.split("="); 12170 var keyvalue = part.split("=");
12136 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12171 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12137 } 12172 }
12138 } 12173 }
12139 12174
12140 12175
12141 var h = { 12176 var h = {
12142 "content-type" : "application/json; charset=utf-8", 12177 "content-type" : "application/json; charset=utf-8",
12143 }; 12178 };
12144 var resp = convert.JSON.encode(buildConnectionTypesListResponse()); 12179 var resp = convert.JSON.encode(buildConnectionTypesListResponse());
12145 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12180 return new async.Future.value(stringResponse(200, h, resp));
12146 }), true); 12181 }), true);
12147 res.list(arg_profileId).then(unittest.expectAsync(((api.ConnectionTypesLis tResponse response) { 12182 res.list(arg_profileId).then(unittest.expectAsync(((api.ConnectionTypesLis tResponse response) {
12148 checkConnectionTypesListResponse(response); 12183 checkConnectionTypesListResponse(response);
12149 }))); 12184 })));
12150 }); 12185 });
12151 12186
12152 }); 12187 });
12153 12188
12154 12189
12155 unittest.group("resource-ContentCategoriesResourceApi", () { 12190 unittest.group("resource-ContentCategoriesResourceApi", () {
12156 unittest.test("method--delete", () { 12191 unittest.test("method--delete", () {
12157 12192
12158 var mock = new common_test.HttpServerMock(); 12193 var mock = new HttpServerMock();
12159 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories; 12194 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories;
12160 var arg_profileId = "foo"; 12195 var arg_profileId = "foo";
12161 var arg_id = "foo"; 12196 var arg_id = "foo";
12162 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12197 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12163 var path = (req.url).path; 12198 var path = (req.url).path;
12164 var pathOffset = 0; 12199 var pathOffset = 0;
12165 var index; 12200 var index;
12166 var subPart; 12201 var subPart;
12167 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12202 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
12168 pathOffset += 1; 12203 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
12196 var keyvalue = part.split("="); 12231 var keyvalue = part.split("=");
12197 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12232 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12198 } 12233 }
12199 } 12234 }
12200 12235
12201 12236
12202 var h = { 12237 var h = {
12203 "content-type" : "application/json; charset=utf-8", 12238 "content-type" : "application/json; charset=utf-8",
12204 }; 12239 };
12205 var resp = ""; 12240 var resp = "";
12206 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12241 return new async.Future.value(stringResponse(200, h, resp));
12207 }), true); 12242 }), true);
12208 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); 12243 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
12209 }); 12244 });
12210 12245
12211 unittest.test("method--get", () { 12246 unittest.test("method--get", () {
12212 12247
12213 var mock = new common_test.HttpServerMock(); 12248 var mock = new HttpServerMock();
12214 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories; 12249 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories;
12215 var arg_profileId = "foo"; 12250 var arg_profileId = "foo";
12216 var arg_id = "foo"; 12251 var arg_id = "foo";
12217 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12252 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12218 var path = (req.url).path; 12253 var path = (req.url).path;
12219 var pathOffset = 0; 12254 var pathOffset = 0;
12220 var index; 12255 var index;
12221 var subPart; 12256 var subPart;
12222 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12257 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
12223 pathOffset += 1; 12258 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
12251 var keyvalue = part.split("="); 12286 var keyvalue = part.split("=");
12252 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12287 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12253 } 12288 }
12254 } 12289 }
12255 12290
12256 12291
12257 var h = { 12292 var h = {
12258 "content-type" : "application/json; charset=utf-8", 12293 "content-type" : "application/json; charset=utf-8",
12259 }; 12294 };
12260 var resp = convert.JSON.encode(buildContentCategory()); 12295 var resp = convert.JSON.encode(buildContentCategory());
12261 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12296 return new async.Future.value(stringResponse(200, h, resp));
12262 }), true); 12297 }), true);
12263 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ContentCate gory response) { 12298 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.ContentCate gory response) {
12264 checkContentCategory(response); 12299 checkContentCategory(response);
12265 }))); 12300 })));
12266 }); 12301 });
12267 12302
12268 unittest.test("method--insert", () { 12303 unittest.test("method--insert", () {
12269 12304
12270 var mock = new common_test.HttpServerMock(); 12305 var mock = new HttpServerMock();
12271 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories; 12306 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories;
12272 var arg_request = buildContentCategory(); 12307 var arg_request = buildContentCategory();
12273 var arg_profileId = "foo"; 12308 var arg_profileId = "foo";
12274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12309 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12275 var obj = new api.ContentCategory.fromJson(json); 12310 var obj = new api.ContentCategory.fromJson(json);
12276 checkContentCategory(obj); 12311 checkContentCategory(obj);
12277 12312
12278 var path = (req.url).path; 12313 var path = (req.url).path;
12279 var pathOffset = 0; 12314 var pathOffset = 0;
12280 var index; 12315 var index;
(...skipping 27 matching lines...) Expand all
12308 var keyvalue = part.split("="); 12343 var keyvalue = part.split("=");
12309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12344 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12310 } 12345 }
12311 } 12346 }
12312 12347
12313 12348
12314 var h = { 12349 var h = {
12315 "content-type" : "application/json; charset=utf-8", 12350 "content-type" : "application/json; charset=utf-8",
12316 }; 12351 };
12317 var resp = convert.JSON.encode(buildContentCategory()); 12352 var resp = convert.JSON.encode(buildContentCategory());
12318 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12353 return new async.Future.value(stringResponse(200, h, resp));
12319 }), true); 12354 }), true);
12320 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Con tentCategory response) { 12355 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Con tentCategory response) {
12321 checkContentCategory(response); 12356 checkContentCategory(response);
12322 }))); 12357 })));
12323 }); 12358 });
12324 12359
12325 unittest.test("method--list", () { 12360 unittest.test("method--list", () {
12326 12361
12327 var mock = new common_test.HttpServerMock(); 12362 var mock = new HttpServerMock();
12328 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories; 12363 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories;
12329 var arg_profileId = "foo"; 12364 var arg_profileId = "foo";
12330 var arg_ids = buildUnnamed469(); 12365 var arg_ids = buildUnnamed882();
12331 var arg_maxResults = 42; 12366 var arg_maxResults = 42;
12332 var arg_pageToken = "foo"; 12367 var arg_pageToken = "foo";
12333 var arg_searchString = "foo"; 12368 var arg_searchString = "foo";
12334 var arg_sortField = "foo"; 12369 var arg_sortField = "foo";
12335 var arg_sortOrder = "foo"; 12370 var arg_sortOrder = "foo";
12336 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12371 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12337 var path = (req.url).path; 12372 var path = (req.url).path;
12338 var pathOffset = 0; 12373 var pathOffset = 0;
12339 var index; 12374 var index;
12340 var subPart; 12375 var subPart;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
12373 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 12408 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
12374 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 12409 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
12375 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 12410 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
12376 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 12411 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
12377 12412
12378 12413
12379 var h = { 12414 var h = {
12380 "content-type" : "application/json; charset=utf-8", 12415 "content-type" : "application/json; charset=utf-8",
12381 }; 12416 };
12382 var resp = convert.JSON.encode(buildContentCategoriesListResponse()); 12417 var resp = convert.JSON.encode(buildContentCategoriesListResponse());
12383 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12418 return new async.Future.value(stringResponse(200, h, resp));
12384 }), true); 12419 }), true);
12385 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort Order: arg_sortOrder).then(unittest.expectAsync(((api.ContentCategoriesListRespo nse response) { 12420 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort Order: arg_sortOrder).then(unittest.expectAsync(((api.ContentCategoriesListRespo nse response) {
12386 checkContentCategoriesListResponse(response); 12421 checkContentCategoriesListResponse(response);
12387 }))); 12422 })));
12388 }); 12423 });
12389 12424
12390 unittest.test("method--patch", () { 12425 unittest.test("method--patch", () {
12391 12426
12392 var mock = new common_test.HttpServerMock(); 12427 var mock = new HttpServerMock();
12393 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories; 12428 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories;
12394 var arg_request = buildContentCategory(); 12429 var arg_request = buildContentCategory();
12395 var arg_profileId = "foo"; 12430 var arg_profileId = "foo";
12396 var arg_id = "foo"; 12431 var arg_id = "foo";
12397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12432 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12398 var obj = new api.ContentCategory.fromJson(json); 12433 var obj = new api.ContentCategory.fromJson(json);
12399 checkContentCategory(obj); 12434 checkContentCategory(obj);
12400 12435
12401 var path = (req.url).path; 12436 var path = (req.url).path;
12402 var pathOffset = 0; 12437 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
12432 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12467 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12433 } 12468 }
12434 } 12469 }
12435 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 12470 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
12436 12471
12437 12472
12438 var h = { 12473 var h = {
12439 "content-type" : "application/json; charset=utf-8", 12474 "content-type" : "application/json; charset=utf-8",
12440 }; 12475 };
12441 var resp = convert.JSON.encode(buildContentCategory()); 12476 var resp = convert.JSON.encode(buildContentCategory());
12442 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12477 return new async.Future.value(stringResponse(200, h, resp));
12443 }), true); 12478 }), true);
12444 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.ContentCategory response) { 12479 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.ContentCategory response) {
12445 checkContentCategory(response); 12480 checkContentCategory(response);
12446 }))); 12481 })));
12447 }); 12482 });
12448 12483
12449 unittest.test("method--update", () { 12484 unittest.test("method--update", () {
12450 12485
12451 var mock = new common_test.HttpServerMock(); 12486 var mock = new HttpServerMock();
12452 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories; 12487 api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).conte ntCategories;
12453 var arg_request = buildContentCategory(); 12488 var arg_request = buildContentCategory();
12454 var arg_profileId = "foo"; 12489 var arg_profileId = "foo";
12455 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12490 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12456 var obj = new api.ContentCategory.fromJson(json); 12491 var obj = new api.ContentCategory.fromJson(json);
12457 checkContentCategory(obj); 12492 checkContentCategory(obj);
12458 12493
12459 var path = (req.url).path; 12494 var path = (req.url).path;
12460 var pathOffset = 0; 12495 var pathOffset = 0;
12461 var index; 12496 var index;
(...skipping 27 matching lines...) Expand all
12489 var keyvalue = part.split("="); 12524 var keyvalue = part.split("=");
12490 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12525 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12491 } 12526 }
12492 } 12527 }
12493 12528
12494 12529
12495 var h = { 12530 var h = {
12496 "content-type" : "application/json; charset=utf-8", 12531 "content-type" : "application/json; charset=utf-8",
12497 }; 12532 };
12498 var resp = convert.JSON.encode(buildContentCategory()); 12533 var resp = convert.JSON.encode(buildContentCategory());
12499 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12534 return new async.Future.value(stringResponse(200, h, resp));
12500 }), true); 12535 }), true);
12501 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Con tentCategory response) { 12536 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Con tentCategory response) {
12502 checkContentCategory(response); 12537 checkContentCategory(response);
12503 }))); 12538 })));
12504 }); 12539 });
12505 12540
12506 }); 12541 });
12507 12542
12508 12543
12509 unittest.group("resource-CountriesResourceApi", () { 12544 unittest.group("resource-CountriesResourceApi", () {
12510 unittest.test("method--get", () { 12545 unittest.test("method--get", () {
12511 12546
12512 var mock = new common_test.HttpServerMock(); 12547 var mock = new HttpServerMock();
12513 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; 12548 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries;
12514 var arg_profileId = "foo"; 12549 var arg_profileId = "foo";
12515 var arg_dartId = "foo"; 12550 var arg_dartId = "foo";
12516 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12551 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12517 var path = (req.url).path; 12552 var path = (req.url).path;
12518 var pathOffset = 0; 12553 var pathOffset = 0;
12519 var index; 12554 var index;
12520 var subPart; 12555 var subPart;
12521 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12556 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
12522 pathOffset += 1; 12557 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
12550 var keyvalue = part.split("="); 12585 var keyvalue = part.split("=");
12551 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12586 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12552 } 12587 }
12553 } 12588 }
12554 12589
12555 12590
12556 var h = { 12591 var h = {
12557 "content-type" : "application/json; charset=utf-8", 12592 "content-type" : "application/json; charset=utf-8",
12558 }; 12593 };
12559 var resp = convert.JSON.encode(buildCountry()); 12594 var resp = convert.JSON.encode(buildCountry());
12560 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12595 return new async.Future.value(stringResponse(200, h, resp));
12561 }), true); 12596 }), true);
12562 res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.Country response) { 12597 res.get(arg_profileId, arg_dartId).then(unittest.expectAsync(((api.Country response) {
12563 checkCountry(response); 12598 checkCountry(response);
12564 }))); 12599 })));
12565 }); 12600 });
12566 12601
12567 unittest.test("method--list", () { 12602 unittest.test("method--list", () {
12568 12603
12569 var mock = new common_test.HttpServerMock(); 12604 var mock = new HttpServerMock();
12570 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries; 12605 api.CountriesResourceApi res = new api.DfareportingApi(mock).countries;
12571 var arg_profileId = "foo"; 12606 var arg_profileId = "foo";
12572 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12607 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12573 var path = (req.url).path; 12608 var path = (req.url).path;
12574 var pathOffset = 0; 12609 var pathOffset = 0;
12575 var index; 12610 var index;
12576 var subPart; 12611 var subPart;
12577 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12612 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
12578 pathOffset += 1; 12613 pathOffset += 1;
12579 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 12614 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
12603 var keyvalue = part.split("="); 12638 var keyvalue = part.split("=");
12604 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12639 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12605 } 12640 }
12606 } 12641 }
12607 12642
12608 12643
12609 var h = { 12644 var h = {
12610 "content-type" : "application/json; charset=utf-8", 12645 "content-type" : "application/json; charset=utf-8",
12611 }; 12646 };
12612 var resp = convert.JSON.encode(buildCountriesListResponse()); 12647 var resp = convert.JSON.encode(buildCountriesListResponse());
12613 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12648 return new async.Future.value(stringResponse(200, h, resp));
12614 }), true); 12649 }), true);
12615 res.list(arg_profileId).then(unittest.expectAsync(((api.CountriesListRespo nse response) { 12650 res.list(arg_profileId).then(unittest.expectAsync(((api.CountriesListRespo nse response) {
12616 checkCountriesListResponse(response); 12651 checkCountriesListResponse(response);
12617 }))); 12652 })));
12618 }); 12653 });
12619 12654
12620 }); 12655 });
12621 12656
12622 12657
12623 unittest.group("resource-CreativeAssetsResourceApi", () { 12658 unittest.group("resource-CreativeAssetsResourceApi", () {
12624 unittest.test("method--insert", () { 12659 unittest.test("method--insert", () {
12625 // TODO: Implement tests for media upload; 12660 // TODO: Implement tests for media upload;
12626 // TODO: Implement tests for media download; 12661 // TODO: Implement tests for media download;
12627 12662
12628 var mock = new common_test.HttpServerMock(); 12663 var mock = new HttpServerMock();
12629 api.CreativeAssetsResourceApi res = new api.DfareportingApi(mock).creative Assets; 12664 api.CreativeAssetsResourceApi res = new api.DfareportingApi(mock).creative Assets;
12630 var arg_request = buildCreativeAssetMetadata(); 12665 var arg_request = buildCreativeAssetMetadata();
12631 var arg_profileId = "foo"; 12666 var arg_profileId = "foo";
12632 var arg_advertiserId = "foo"; 12667 var arg_advertiserId = "foo";
12633 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12668 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12634 var obj = new api.CreativeAssetMetadata.fromJson(json); 12669 var obj = new api.CreativeAssetMetadata.fromJson(json);
12635 checkCreativeAssetMetadata(obj); 12670 checkCreativeAssetMetadata(obj);
12636 12671
12637 var path = (req.url).path; 12672 var path = (req.url).path;
12638 var pathOffset = 0; 12673 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
12674 var keyvalue = part.split("="); 12709 var keyvalue = part.split("=");
12675 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12710 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12676 } 12711 }
12677 } 12712 }
12678 12713
12679 12714
12680 var h = { 12715 var h = {
12681 "content-type" : "application/json; charset=utf-8", 12716 "content-type" : "application/json; charset=utf-8",
12682 }; 12717 };
12683 var resp = convert.JSON.encode(buildCreativeAssetMetadata()); 12718 var resp = convert.JSON.encode(buildCreativeAssetMetadata());
12684 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12719 return new async.Future.value(stringResponse(200, h, resp));
12685 }), true); 12720 }), true);
12686 res.insert(arg_request, arg_profileId, arg_advertiserId).then(unittest.exp ectAsync(((api.CreativeAssetMetadata response) { 12721 res.insert(arg_request, arg_profileId, arg_advertiserId).then(unittest.exp ectAsync(((api.CreativeAssetMetadata response) {
12687 checkCreativeAssetMetadata(response); 12722 checkCreativeAssetMetadata(response);
12688 }))); 12723 })));
12689 }); 12724 });
12690 12725
12691 }); 12726 });
12692 12727
12693 12728
12694 unittest.group("resource-CreativeFieldValuesResourceApi", () { 12729 unittest.group("resource-CreativeFieldValuesResourceApi", () {
12695 unittest.test("method--delete", () { 12730 unittest.test("method--delete", () {
12696 12731
12697 var mock = new common_test.HttpServerMock(); 12732 var mock = new HttpServerMock();
12698 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues; 12733 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues;
12699 var arg_profileId = "foo"; 12734 var arg_profileId = "foo";
12700 var arg_creativeFieldId = "foo"; 12735 var arg_creativeFieldId = "foo";
12701 var arg_id = "foo"; 12736 var arg_id = "foo";
12702 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12737 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12703 var path = (req.url).path; 12738 var path = (req.url).path;
12704 var pathOffset = 0; 12739 var pathOffset = 0;
12705 var index; 12740 var index;
12706 var subPart; 12741 var subPart;
12707 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12742 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
12743 var keyvalue = part.split("="); 12778 var keyvalue = part.split("=");
12744 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12779 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12745 } 12780 }
12746 } 12781 }
12747 12782
12748 12783
12749 var h = { 12784 var h = {
12750 "content-type" : "application/json; charset=utf-8", 12785 "content-type" : "application/json; charset=utf-8",
12751 }; 12786 };
12752 var resp = ""; 12787 var resp = "";
12753 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12788 return new async.Future.value(stringResponse(200, h, resp));
12754 }), true); 12789 }), true);
12755 res.delete(arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expec tAsync((_) {})); 12790 res.delete(arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expec tAsync((_) {}));
12756 }); 12791 });
12757 12792
12758 unittest.test("method--get", () { 12793 unittest.test("method--get", () {
12759 12794
12760 var mock = new common_test.HttpServerMock(); 12795 var mock = new HttpServerMock();
12761 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues; 12796 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues;
12762 var arg_profileId = "foo"; 12797 var arg_profileId = "foo";
12763 var arg_creativeFieldId = "foo"; 12798 var arg_creativeFieldId = "foo";
12764 var arg_id = "foo"; 12799 var arg_id = "foo";
12765 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12800 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12766 var path = (req.url).path; 12801 var path = (req.url).path;
12767 var pathOffset = 0; 12802 var pathOffset = 0;
12768 var index; 12803 var index;
12769 var subPart; 12804 var subPart;
12770 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 12805 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
12806 var keyvalue = part.split("="); 12841 var keyvalue = part.split("=");
12807 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12842 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12808 } 12843 }
12809 } 12844 }
12810 12845
12811 12846
12812 var h = { 12847 var h = {
12813 "content-type" : "application/json; charset=utf-8", 12848 "content-type" : "application/json; charset=utf-8",
12814 }; 12849 };
12815 var resp = convert.JSON.encode(buildCreativeFieldValue()); 12850 var resp = convert.JSON.encode(buildCreativeFieldValue());
12816 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12851 return new async.Future.value(stringResponse(200, h, resp));
12817 }), true); 12852 }), true);
12818 res.get(arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expectAs ync(((api.CreativeFieldValue response) { 12853 res.get(arg_profileId, arg_creativeFieldId, arg_id).then(unittest.expectAs ync(((api.CreativeFieldValue response) {
12819 checkCreativeFieldValue(response); 12854 checkCreativeFieldValue(response);
12820 }))); 12855 })));
12821 }); 12856 });
12822 12857
12823 unittest.test("method--insert", () { 12858 unittest.test("method--insert", () {
12824 12859
12825 var mock = new common_test.HttpServerMock(); 12860 var mock = new HttpServerMock();
12826 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues; 12861 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues;
12827 var arg_request = buildCreativeFieldValue(); 12862 var arg_request = buildCreativeFieldValue();
12828 var arg_profileId = "foo"; 12863 var arg_profileId = "foo";
12829 var arg_creativeFieldId = "foo"; 12864 var arg_creativeFieldId = "foo";
12830 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12865 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12831 var obj = new api.CreativeFieldValue.fromJson(json); 12866 var obj = new api.CreativeFieldValue.fromJson(json);
12832 checkCreativeFieldValue(obj); 12867 checkCreativeFieldValue(obj);
12833 12868
12834 var path = (req.url).path; 12869 var path = (req.url).path;
12835 var pathOffset = 0; 12870 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
12871 var keyvalue = part.split("="); 12906 var keyvalue = part.split("=");
12872 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 12907 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
12873 } 12908 }
12874 } 12909 }
12875 12910
12876 12911
12877 var h = { 12912 var h = {
12878 "content-type" : "application/json; charset=utf-8", 12913 "content-type" : "application/json; charset=utf-8",
12879 }; 12914 };
12880 var resp = convert.JSON.encode(buildCreativeFieldValue()); 12915 var resp = convert.JSON.encode(buildCreativeFieldValue());
12881 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12916 return new async.Future.value(stringResponse(200, h, resp));
12882 }), true); 12917 }), true);
12883 res.insert(arg_request, arg_profileId, arg_creativeFieldId).then(unittest. expectAsync(((api.CreativeFieldValue response) { 12918 res.insert(arg_request, arg_profileId, arg_creativeFieldId).then(unittest. expectAsync(((api.CreativeFieldValue response) {
12884 checkCreativeFieldValue(response); 12919 checkCreativeFieldValue(response);
12885 }))); 12920 })));
12886 }); 12921 });
12887 12922
12888 unittest.test("method--list", () { 12923 unittest.test("method--list", () {
12889 12924
12890 var mock = new common_test.HttpServerMock(); 12925 var mock = new HttpServerMock();
12891 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues; 12926 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues;
12892 var arg_profileId = "foo"; 12927 var arg_profileId = "foo";
12893 var arg_creativeFieldId = "foo"; 12928 var arg_creativeFieldId = "foo";
12894 var arg_ids = buildUnnamed470(); 12929 var arg_ids = buildUnnamed883();
12895 var arg_maxResults = 42; 12930 var arg_maxResults = 42;
12896 var arg_pageToken = "foo"; 12931 var arg_pageToken = "foo";
12897 var arg_searchString = "foo"; 12932 var arg_searchString = "foo";
12898 var arg_sortField = "foo"; 12933 var arg_sortField = "foo";
12899 var arg_sortOrder = "foo"; 12934 var arg_sortOrder = "foo";
12900 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 12935 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12901 var path = (req.url).path; 12936 var path = (req.url).path;
12902 var pathOffset = 0; 12937 var pathOffset = 0;
12903 var index; 12938 var index;
12904 var subPart; 12939 var subPart;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
12944 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 12979 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
12945 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 12980 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
12946 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 12981 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
12947 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 12982 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
12948 12983
12949 12984
12950 var h = { 12985 var h = {
12951 "content-type" : "application/json; charset=utf-8", 12986 "content-type" : "application/json; charset=utf-8",
12952 }; 12987 };
12953 var resp = convert.JSON.encode(buildCreativeFieldValuesListResponse()); 12988 var resp = convert.JSON.encode(buildCreativeFieldValuesListResponse());
12954 return new async.Future.value(common_test.stringResponse(200, h, resp)); 12989 return new async.Future.value(stringResponse(200, h, resp));
12955 }), true); 12990 }), true);
12956 res.list(arg_profileId, arg_creativeFieldId, ids: arg_ids, maxResults: arg _maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField : arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.Creat iveFieldValuesListResponse response) { 12991 res.list(arg_profileId, arg_creativeFieldId, ids: arg_ids, maxResults: arg _maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField : arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.Creat iveFieldValuesListResponse response) {
12957 checkCreativeFieldValuesListResponse(response); 12992 checkCreativeFieldValuesListResponse(response);
12958 }))); 12993 })));
12959 }); 12994 });
12960 12995
12961 unittest.test("method--patch", () { 12996 unittest.test("method--patch", () {
12962 12997
12963 var mock = new common_test.HttpServerMock(); 12998 var mock = new HttpServerMock();
12964 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues; 12999 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues;
12965 var arg_request = buildCreativeFieldValue(); 13000 var arg_request = buildCreativeFieldValue();
12966 var arg_profileId = "foo"; 13001 var arg_profileId = "foo";
12967 var arg_creativeFieldId = "foo"; 13002 var arg_creativeFieldId = "foo";
12968 var arg_id = "foo"; 13003 var arg_id = "foo";
12969 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13004 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
12970 var obj = new api.CreativeFieldValue.fromJson(json); 13005 var obj = new api.CreativeFieldValue.fromJson(json);
12971 checkCreativeFieldValue(obj); 13006 checkCreativeFieldValue(obj);
12972 13007
12973 var path = (req.url).path; 13008 var path = (req.url).path;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
13011 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13046 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13012 } 13047 }
13013 } 13048 }
13014 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 13049 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
13015 13050
13016 13051
13017 var h = { 13052 var h = {
13018 "content-type" : "application/json; charset=utf-8", 13053 "content-type" : "application/json; charset=utf-8",
13019 }; 13054 };
13020 var resp = convert.JSON.encode(buildCreativeFieldValue()); 13055 var resp = convert.JSON.encode(buildCreativeFieldValue());
13021 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13056 return new async.Future.value(stringResponse(200, h, resp));
13022 }), true); 13057 }), true);
13023 res.patch(arg_request, arg_profileId, arg_creativeFieldId, arg_id).then(un ittest.expectAsync(((api.CreativeFieldValue response) { 13058 res.patch(arg_request, arg_profileId, arg_creativeFieldId, arg_id).then(un ittest.expectAsync(((api.CreativeFieldValue response) {
13024 checkCreativeFieldValue(response); 13059 checkCreativeFieldValue(response);
13025 }))); 13060 })));
13026 }); 13061 });
13027 13062
13028 unittest.test("method--update", () { 13063 unittest.test("method--update", () {
13029 13064
13030 var mock = new common_test.HttpServerMock(); 13065 var mock = new HttpServerMock();
13031 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues; 13066 api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).cre ativeFieldValues;
13032 var arg_request = buildCreativeFieldValue(); 13067 var arg_request = buildCreativeFieldValue();
13033 var arg_profileId = "foo"; 13068 var arg_profileId = "foo";
13034 var arg_creativeFieldId = "foo"; 13069 var arg_creativeFieldId = "foo";
13035 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13070 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13036 var obj = new api.CreativeFieldValue.fromJson(json); 13071 var obj = new api.CreativeFieldValue.fromJson(json);
13037 checkCreativeFieldValue(obj); 13072 checkCreativeFieldValue(obj);
13038 13073
13039 var path = (req.url).path; 13074 var path = (req.url).path;
13040 var pathOffset = 0; 13075 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
13076 var keyvalue = part.split("="); 13111 var keyvalue = part.split("=");
13077 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13112 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13078 } 13113 }
13079 } 13114 }
13080 13115
13081 13116
13082 var h = { 13117 var h = {
13083 "content-type" : "application/json; charset=utf-8", 13118 "content-type" : "application/json; charset=utf-8",
13084 }; 13119 };
13085 var resp = convert.JSON.encode(buildCreativeFieldValue()); 13120 var resp = convert.JSON.encode(buildCreativeFieldValue());
13086 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13121 return new async.Future.value(stringResponse(200, h, resp));
13087 }), true); 13122 }), true);
13088 res.update(arg_request, arg_profileId, arg_creativeFieldId).then(unittest. expectAsync(((api.CreativeFieldValue response) { 13123 res.update(arg_request, arg_profileId, arg_creativeFieldId).then(unittest. expectAsync(((api.CreativeFieldValue response) {
13089 checkCreativeFieldValue(response); 13124 checkCreativeFieldValue(response);
13090 }))); 13125 })));
13091 }); 13126 });
13092 13127
13093 }); 13128 });
13094 13129
13095 13130
13096 unittest.group("resource-CreativeFieldsResourceApi", () { 13131 unittest.group("resource-CreativeFieldsResourceApi", () {
13097 unittest.test("method--delete", () { 13132 unittest.test("method--delete", () {
13098 13133
13099 var mock = new common_test.HttpServerMock(); 13134 var mock = new HttpServerMock();
13100 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields; 13135 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields;
13101 var arg_profileId = "foo"; 13136 var arg_profileId = "foo";
13102 var arg_id = "foo"; 13137 var arg_id = "foo";
13103 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13138 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13104 var path = (req.url).path; 13139 var path = (req.url).path;
13105 var pathOffset = 0; 13140 var pathOffset = 0;
13106 var index; 13141 var index;
13107 var subPart; 13142 var subPart;
13108 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 13143 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
13109 pathOffset += 1; 13144 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
13137 var keyvalue = part.split("="); 13172 var keyvalue = part.split("=");
13138 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13173 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13139 } 13174 }
13140 } 13175 }
13141 13176
13142 13177
13143 var h = { 13178 var h = {
13144 "content-type" : "application/json; charset=utf-8", 13179 "content-type" : "application/json; charset=utf-8",
13145 }; 13180 };
13146 var resp = ""; 13181 var resp = "";
13147 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13182 return new async.Future.value(stringResponse(200, h, resp));
13148 }), true); 13183 }), true);
13149 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); 13184 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
13150 }); 13185 });
13151 13186
13152 unittest.test("method--get", () { 13187 unittest.test("method--get", () {
13153 13188
13154 var mock = new common_test.HttpServerMock(); 13189 var mock = new HttpServerMock();
13155 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields; 13190 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields;
13156 var arg_profileId = "foo"; 13191 var arg_profileId = "foo";
13157 var arg_id = "foo"; 13192 var arg_id = "foo";
13158 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13193 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13159 var path = (req.url).path; 13194 var path = (req.url).path;
13160 var pathOffset = 0; 13195 var pathOffset = 0;
13161 var index; 13196 var index;
13162 var subPart; 13197 var subPart;
13163 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 13198 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
13164 pathOffset += 1; 13199 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
13192 var keyvalue = part.split("="); 13227 var keyvalue = part.split("=");
13193 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13228 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13194 } 13229 }
13195 } 13230 }
13196 13231
13197 13232
13198 var h = { 13233 var h = {
13199 "content-type" : "application/json; charset=utf-8", 13234 "content-type" : "application/json; charset=utf-8",
13200 }; 13235 };
13201 var resp = convert.JSON.encode(buildCreativeField()); 13236 var resp = convert.JSON.encode(buildCreativeField());
13202 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13237 return new async.Future.value(stringResponse(200, h, resp));
13203 }), true); 13238 }), true);
13204 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeFie ld response) { 13239 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeFie ld response) {
13205 checkCreativeField(response); 13240 checkCreativeField(response);
13206 }))); 13241 })));
13207 }); 13242 });
13208 13243
13209 unittest.test("method--insert", () { 13244 unittest.test("method--insert", () {
13210 13245
13211 var mock = new common_test.HttpServerMock(); 13246 var mock = new HttpServerMock();
13212 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields; 13247 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields;
13213 var arg_request = buildCreativeField(); 13248 var arg_request = buildCreativeField();
13214 var arg_profileId = "foo"; 13249 var arg_profileId = "foo";
13215 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13250 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13216 var obj = new api.CreativeField.fromJson(json); 13251 var obj = new api.CreativeField.fromJson(json);
13217 checkCreativeField(obj); 13252 checkCreativeField(obj);
13218 13253
13219 var path = (req.url).path; 13254 var path = (req.url).path;
13220 var pathOffset = 0; 13255 var pathOffset = 0;
13221 var index; 13256 var index;
(...skipping 27 matching lines...) Expand all
13249 var keyvalue = part.split("="); 13284 var keyvalue = part.split("=");
13250 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13285 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13251 } 13286 }
13252 } 13287 }
13253 13288
13254 13289
13255 var h = { 13290 var h = {
13256 "content-type" : "application/json; charset=utf-8", 13291 "content-type" : "application/json; charset=utf-8",
13257 }; 13292 };
13258 var resp = convert.JSON.encode(buildCreativeField()); 13293 var resp = convert.JSON.encode(buildCreativeField());
13259 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13294 return new async.Future.value(stringResponse(200, h, resp));
13260 }), true); 13295 }), true);
13261 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ativeField response) { 13296 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ativeField response) {
13262 checkCreativeField(response); 13297 checkCreativeField(response);
13263 }))); 13298 })));
13264 }); 13299 });
13265 13300
13266 unittest.test("method--list", () { 13301 unittest.test("method--list", () {
13267 13302
13268 var mock = new common_test.HttpServerMock(); 13303 var mock = new HttpServerMock();
13269 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields; 13304 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields;
13270 var arg_profileId = "foo"; 13305 var arg_profileId = "foo";
13271 var arg_advertiserIds = buildUnnamed471(); 13306 var arg_advertiserIds = buildUnnamed884();
13272 var arg_ids = buildUnnamed472(); 13307 var arg_ids = buildUnnamed885();
13273 var arg_maxResults = 42; 13308 var arg_maxResults = 42;
13274 var arg_pageToken = "foo"; 13309 var arg_pageToken = "foo";
13275 var arg_searchString = "foo"; 13310 var arg_searchString = "foo";
13276 var arg_sortField = "foo"; 13311 var arg_sortField = "foo";
13277 var arg_sortOrder = "foo"; 13312 var arg_sortOrder = "foo";
13278 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13313 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13279 var path = (req.url).path; 13314 var path = (req.url).path;
13280 var pathOffset = 0; 13315 var pathOffset = 0;
13281 var index; 13316 var index;
13282 var subPart; 13317 var subPart;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
13316 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 13351 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
13317 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 13352 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
13318 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 13353 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
13319 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 13354 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
13320 13355
13321 13356
13322 var h = { 13357 var h = {
13323 "content-type" : "application/json; charset=utf-8", 13358 "content-type" : "application/json; charset=utf-8",
13324 }; 13359 };
13325 var resp = convert.JSON.encode(buildCreativeFieldsListResponse()); 13360 var resp = convert.JSON.encode(buildCreativeFieldsListResponse());
13326 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13361 return new async.Future.value(stringResponse(200, h, resp));
13327 }), true); 13362 }), true);
13328 res.list(arg_profileId, advertiserIds: arg_advertiserIds, ids: arg_ids, ma xResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchStri ng, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsyn c(((api.CreativeFieldsListResponse response) { 13363 res.list(arg_profileId, advertiserIds: arg_advertiserIds, ids: arg_ids, ma xResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchStri ng, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsyn c(((api.CreativeFieldsListResponse response) {
13329 checkCreativeFieldsListResponse(response); 13364 checkCreativeFieldsListResponse(response);
13330 }))); 13365 })));
13331 }); 13366 });
13332 13367
13333 unittest.test("method--patch", () { 13368 unittest.test("method--patch", () {
13334 13369
13335 var mock = new common_test.HttpServerMock(); 13370 var mock = new HttpServerMock();
13336 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields; 13371 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields;
13337 var arg_request = buildCreativeField(); 13372 var arg_request = buildCreativeField();
13338 var arg_profileId = "foo"; 13373 var arg_profileId = "foo";
13339 var arg_id = "foo"; 13374 var arg_id = "foo";
13340 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13375 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13341 var obj = new api.CreativeField.fromJson(json); 13376 var obj = new api.CreativeField.fromJson(json);
13342 checkCreativeField(obj); 13377 checkCreativeField(obj);
13343 13378
13344 var path = (req.url).path; 13379 var path = (req.url).path;
13345 var pathOffset = 0; 13380 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
13375 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13410 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13376 } 13411 }
13377 } 13412 }
13378 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 13413 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
13379 13414
13380 13415
13381 var h = { 13416 var h = {
13382 "content-type" : "application/json; charset=utf-8", 13417 "content-type" : "application/json; charset=utf-8",
13383 }; 13418 };
13384 var resp = convert.JSON.encode(buildCreativeField()); 13419 var resp = convert.JSON.encode(buildCreativeField());
13385 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13420 return new async.Future.value(stringResponse(200, h, resp));
13386 }), true); 13421 }), true);
13387 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.CreativeField response) { 13422 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.CreativeField response) {
13388 checkCreativeField(response); 13423 checkCreativeField(response);
13389 }))); 13424 })));
13390 }); 13425 });
13391 13426
13392 unittest.test("method--update", () { 13427 unittest.test("method--update", () {
13393 13428
13394 var mock = new common_test.HttpServerMock(); 13429 var mock = new HttpServerMock();
13395 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields; 13430 api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creative Fields;
13396 var arg_request = buildCreativeField(); 13431 var arg_request = buildCreativeField();
13397 var arg_profileId = "foo"; 13432 var arg_profileId = "foo";
13398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13433 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13399 var obj = new api.CreativeField.fromJson(json); 13434 var obj = new api.CreativeField.fromJson(json);
13400 checkCreativeField(obj); 13435 checkCreativeField(obj);
13401 13436
13402 var path = (req.url).path; 13437 var path = (req.url).path;
13403 var pathOffset = 0; 13438 var pathOffset = 0;
13404 var index; 13439 var index;
(...skipping 27 matching lines...) Expand all
13432 var keyvalue = part.split("="); 13467 var keyvalue = part.split("=");
13433 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13468 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13434 } 13469 }
13435 } 13470 }
13436 13471
13437 13472
13438 var h = { 13473 var h = {
13439 "content-type" : "application/json; charset=utf-8", 13474 "content-type" : "application/json; charset=utf-8",
13440 }; 13475 };
13441 var resp = convert.JSON.encode(buildCreativeField()); 13476 var resp = convert.JSON.encode(buildCreativeField());
13442 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13477 return new async.Future.value(stringResponse(200, h, resp));
13443 }), true); 13478 }), true);
13444 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ativeField response) { 13479 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ativeField response) {
13445 checkCreativeField(response); 13480 checkCreativeField(response);
13446 }))); 13481 })));
13447 }); 13482 });
13448 13483
13449 }); 13484 });
13450 13485
13451 13486
13452 unittest.group("resource-CreativeGroupsResourceApi", () { 13487 unittest.group("resource-CreativeGroupsResourceApi", () {
13453 unittest.test("method--get", () { 13488 unittest.test("method--get", () {
13454 13489
13455 var mock = new common_test.HttpServerMock(); 13490 var mock = new HttpServerMock();
13456 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups; 13491 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups;
13457 var arg_profileId = "foo"; 13492 var arg_profileId = "foo";
13458 var arg_id = "foo"; 13493 var arg_id = "foo";
13459 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13494 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13460 var path = (req.url).path; 13495 var path = (req.url).path;
13461 var pathOffset = 0; 13496 var pathOffset = 0;
13462 var index; 13497 var index;
13463 var subPart; 13498 var subPart;
13464 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 13499 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
13465 pathOffset += 1; 13500 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
13493 var keyvalue = part.split("="); 13528 var keyvalue = part.split("=");
13494 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13529 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13495 } 13530 }
13496 } 13531 }
13497 13532
13498 13533
13499 var h = { 13534 var h = {
13500 "content-type" : "application/json; charset=utf-8", 13535 "content-type" : "application/json; charset=utf-8",
13501 }; 13536 };
13502 var resp = convert.JSON.encode(buildCreativeGroup()); 13537 var resp = convert.JSON.encode(buildCreativeGroup());
13503 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13538 return new async.Future.value(stringResponse(200, h, resp));
13504 }), true); 13539 }), true);
13505 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeGro up response) { 13540 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.CreativeGro up response) {
13506 checkCreativeGroup(response); 13541 checkCreativeGroup(response);
13507 }))); 13542 })));
13508 }); 13543 });
13509 13544
13510 unittest.test("method--insert", () { 13545 unittest.test("method--insert", () {
13511 13546
13512 var mock = new common_test.HttpServerMock(); 13547 var mock = new HttpServerMock();
13513 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups; 13548 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups;
13514 var arg_request = buildCreativeGroup(); 13549 var arg_request = buildCreativeGroup();
13515 var arg_profileId = "foo"; 13550 var arg_profileId = "foo";
13516 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13551 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13517 var obj = new api.CreativeGroup.fromJson(json); 13552 var obj = new api.CreativeGroup.fromJson(json);
13518 checkCreativeGroup(obj); 13553 checkCreativeGroup(obj);
13519 13554
13520 var path = (req.url).path; 13555 var path = (req.url).path;
13521 var pathOffset = 0; 13556 var pathOffset = 0;
13522 var index; 13557 var index;
(...skipping 27 matching lines...) Expand all
13550 var keyvalue = part.split("="); 13585 var keyvalue = part.split("=");
13551 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13586 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13552 } 13587 }
13553 } 13588 }
13554 13589
13555 13590
13556 var h = { 13591 var h = {
13557 "content-type" : "application/json; charset=utf-8", 13592 "content-type" : "application/json; charset=utf-8",
13558 }; 13593 };
13559 var resp = convert.JSON.encode(buildCreativeGroup()); 13594 var resp = convert.JSON.encode(buildCreativeGroup());
13560 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13595 return new async.Future.value(stringResponse(200, h, resp));
13561 }), true); 13596 }), true);
13562 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ativeGroup response) { 13597 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ativeGroup response) {
13563 checkCreativeGroup(response); 13598 checkCreativeGroup(response);
13564 }))); 13599 })));
13565 }); 13600 });
13566 13601
13567 unittest.test("method--list", () { 13602 unittest.test("method--list", () {
13568 13603
13569 var mock = new common_test.HttpServerMock(); 13604 var mock = new HttpServerMock();
13570 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups; 13605 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups;
13571 var arg_profileId = "foo"; 13606 var arg_profileId = "foo";
13572 var arg_advertiserIds = buildUnnamed473(); 13607 var arg_advertiserIds = buildUnnamed886();
13573 var arg_groupNumber = 42; 13608 var arg_groupNumber = 42;
13574 var arg_ids = buildUnnamed474(); 13609 var arg_ids = buildUnnamed887();
13575 var arg_maxResults = 42; 13610 var arg_maxResults = 42;
13576 var arg_pageToken = "foo"; 13611 var arg_pageToken = "foo";
13577 var arg_searchString = "foo"; 13612 var arg_searchString = "foo";
13578 var arg_sortField = "foo"; 13613 var arg_sortField = "foo";
13579 var arg_sortOrder = "foo"; 13614 var arg_sortOrder = "foo";
13580 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13615 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13581 var path = (req.url).path; 13616 var path = (req.url).path;
13582 var pathOffset = 0; 13617 var pathOffset = 0;
13583 var index; 13618 var index;
13584 var subPart; 13619 var subPart;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
13619 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 13654 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
13620 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 13655 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
13621 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 13656 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
13622 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 13657 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
13623 13658
13624 13659
13625 var h = { 13660 var h = {
13626 "content-type" : "application/json; charset=utf-8", 13661 "content-type" : "application/json; charset=utf-8",
13627 }; 13662 };
13628 var resp = convert.JSON.encode(buildCreativeGroupsListResponse()); 13663 var resp = convert.JSON.encode(buildCreativeGroupsListResponse());
13629 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13664 return new async.Future.value(stringResponse(200, h, resp));
13630 }), true); 13665 }), true);
13631 res.list(arg_profileId, advertiserIds: arg_advertiserIds, groupNumber: arg _groupNumber, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken , searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortO rder).then(unittest.expectAsync(((api.CreativeGroupsListResponse response) { 13666 res.list(arg_profileId, advertiserIds: arg_advertiserIds, groupNumber: arg _groupNumber, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken , searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortO rder).then(unittest.expectAsync(((api.CreativeGroupsListResponse response) {
13632 checkCreativeGroupsListResponse(response); 13667 checkCreativeGroupsListResponse(response);
13633 }))); 13668 })));
13634 }); 13669 });
13635 13670
13636 unittest.test("method--patch", () { 13671 unittest.test("method--patch", () {
13637 13672
13638 var mock = new common_test.HttpServerMock(); 13673 var mock = new HttpServerMock();
13639 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups; 13674 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups;
13640 var arg_request = buildCreativeGroup(); 13675 var arg_request = buildCreativeGroup();
13641 var arg_profileId = "foo"; 13676 var arg_profileId = "foo";
13642 var arg_id = "foo"; 13677 var arg_id = "foo";
13643 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13678 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13644 var obj = new api.CreativeGroup.fromJson(json); 13679 var obj = new api.CreativeGroup.fromJson(json);
13645 checkCreativeGroup(obj); 13680 checkCreativeGroup(obj);
13646 13681
13647 var path = (req.url).path; 13682 var path = (req.url).path;
13648 var pathOffset = 0; 13683 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
13678 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13713 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13679 } 13714 }
13680 } 13715 }
13681 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 13716 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
13682 13717
13683 13718
13684 var h = { 13719 var h = {
13685 "content-type" : "application/json; charset=utf-8", 13720 "content-type" : "application/json; charset=utf-8",
13686 }; 13721 };
13687 var resp = convert.JSON.encode(buildCreativeGroup()); 13722 var resp = convert.JSON.encode(buildCreativeGroup());
13688 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13723 return new async.Future.value(stringResponse(200, h, resp));
13689 }), true); 13724 }), true);
13690 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.CreativeGroup response) { 13725 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.CreativeGroup response) {
13691 checkCreativeGroup(response); 13726 checkCreativeGroup(response);
13692 }))); 13727 })));
13693 }); 13728 });
13694 13729
13695 unittest.test("method--update", () { 13730 unittest.test("method--update", () {
13696 13731
13697 var mock = new common_test.HttpServerMock(); 13732 var mock = new HttpServerMock();
13698 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups; 13733 api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creative Groups;
13699 var arg_request = buildCreativeGroup(); 13734 var arg_request = buildCreativeGroup();
13700 var arg_profileId = "foo"; 13735 var arg_profileId = "foo";
13701 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13736 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13702 var obj = new api.CreativeGroup.fromJson(json); 13737 var obj = new api.CreativeGroup.fromJson(json);
13703 checkCreativeGroup(obj); 13738 checkCreativeGroup(obj);
13704 13739
13705 var path = (req.url).path; 13740 var path = (req.url).path;
13706 var pathOffset = 0; 13741 var pathOffset = 0;
13707 var index; 13742 var index;
(...skipping 27 matching lines...) Expand all
13735 var keyvalue = part.split("="); 13770 var keyvalue = part.split("=");
13736 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13771 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13737 } 13772 }
13738 } 13773 }
13739 13774
13740 13775
13741 var h = { 13776 var h = {
13742 "content-type" : "application/json; charset=utf-8", 13777 "content-type" : "application/json; charset=utf-8",
13743 }; 13778 };
13744 var resp = convert.JSON.encode(buildCreativeGroup()); 13779 var resp = convert.JSON.encode(buildCreativeGroup());
13745 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13780 return new async.Future.value(stringResponse(200, h, resp));
13746 }), true); 13781 }), true);
13747 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ativeGroup response) { 13782 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ativeGroup response) {
13748 checkCreativeGroup(response); 13783 checkCreativeGroup(response);
13749 }))); 13784 })));
13750 }); 13785 });
13751 13786
13752 }); 13787 });
13753 13788
13754 13789
13755 unittest.group("resource-CreativesResourceApi", () { 13790 unittest.group("resource-CreativesResourceApi", () {
13756 unittest.test("method--get", () { 13791 unittest.test("method--get", () {
13757 13792
13758 var mock = new common_test.HttpServerMock(); 13793 var mock = new HttpServerMock();
13759 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; 13794 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives;
13760 var arg_profileId = "foo"; 13795 var arg_profileId = "foo";
13761 var arg_id = "foo"; 13796 var arg_id = "foo";
13762 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13797 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13763 var path = (req.url).path; 13798 var path = (req.url).path;
13764 var pathOffset = 0; 13799 var pathOffset = 0;
13765 var index; 13800 var index;
13766 var subPart; 13801 var subPart;
13767 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 13802 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
13768 pathOffset += 1; 13803 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
13796 var keyvalue = part.split("="); 13831 var keyvalue = part.split("=");
13797 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13832 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13798 } 13833 }
13799 } 13834 }
13800 13835
13801 13836
13802 var h = { 13837 var h = {
13803 "content-type" : "application/json; charset=utf-8", 13838 "content-type" : "application/json; charset=utf-8",
13804 }; 13839 };
13805 var resp = convert.JSON.encode(buildCreative()); 13840 var resp = convert.JSON.encode(buildCreative());
13806 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13841 return new async.Future.value(stringResponse(200, h, resp));
13807 }), true); 13842 }), true);
13808 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Creative re sponse) { 13843 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Creative re sponse) {
13809 checkCreative(response); 13844 checkCreative(response);
13810 }))); 13845 })));
13811 }); 13846 });
13812 13847
13813 unittest.test("method--insert", () { 13848 unittest.test("method--insert", () {
13814 13849
13815 var mock = new common_test.HttpServerMock(); 13850 var mock = new HttpServerMock();
13816 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; 13851 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives;
13817 var arg_request = buildCreative(); 13852 var arg_request = buildCreative();
13818 var arg_profileId = "foo"; 13853 var arg_profileId = "foo";
13819 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13854 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13820 var obj = new api.Creative.fromJson(json); 13855 var obj = new api.Creative.fromJson(json);
13821 checkCreative(obj); 13856 checkCreative(obj);
13822 13857
13823 var path = (req.url).path; 13858 var path = (req.url).path;
13824 var pathOffset = 0; 13859 var pathOffset = 0;
13825 var index; 13860 var index;
(...skipping 27 matching lines...) Expand all
13853 var keyvalue = part.split("="); 13888 var keyvalue = part.split("=");
13854 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 13889 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13855 } 13890 }
13856 } 13891 }
13857 13892
13858 13893
13859 var h = { 13894 var h = {
13860 "content-type" : "application/json; charset=utf-8", 13895 "content-type" : "application/json; charset=utf-8",
13861 }; 13896 };
13862 var resp = convert.JSON.encode(buildCreative()); 13897 var resp = convert.JSON.encode(buildCreative());
13863 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13898 return new async.Future.value(stringResponse(200, h, resp));
13864 }), true); 13899 }), true);
13865 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ative response) { 13900 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ative response) {
13866 checkCreative(response); 13901 checkCreative(response);
13867 }))); 13902 })));
13868 }); 13903 });
13869 13904
13870 unittest.test("method--list", () { 13905 unittest.test("method--list", () {
13871 13906
13872 var mock = new common_test.HttpServerMock(); 13907 var mock = new HttpServerMock();
13873 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; 13908 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives;
13874 var arg_profileId = "foo"; 13909 var arg_profileId = "foo";
13875 var arg_active = true; 13910 var arg_active = true;
13876 var arg_advertiserId = "foo"; 13911 var arg_advertiserId = "foo";
13877 var arg_archived = true; 13912 var arg_archived = true;
13878 var arg_campaignId = "foo"; 13913 var arg_campaignId = "foo";
13879 var arg_companionCreativeIds = buildUnnamed475(); 13914 var arg_companionCreativeIds = buildUnnamed888();
13880 var arg_creativeFieldIds = buildUnnamed476(); 13915 var arg_creativeFieldIds = buildUnnamed889();
13881 var arg_ids = buildUnnamed477(); 13916 var arg_ids = buildUnnamed890();
13882 var arg_maxResults = 42; 13917 var arg_maxResults = 42;
13883 var arg_pageToken = "foo"; 13918 var arg_pageToken = "foo";
13884 var arg_renderingIds = buildUnnamed478(); 13919 var arg_renderingIds = buildUnnamed891();
13885 var arg_searchString = "foo"; 13920 var arg_searchString = "foo";
13886 var arg_sizeIds = buildUnnamed479(); 13921 var arg_sizeIds = buildUnnamed892();
13887 var arg_sortField = "foo"; 13922 var arg_sortField = "foo";
13888 var arg_sortOrder = "foo"; 13923 var arg_sortOrder = "foo";
13889 var arg_studioCreativeId = "foo"; 13924 var arg_studioCreativeId = "foo";
13890 var arg_types = buildUnnamed480(); 13925 var arg_types = buildUnnamed893();
13891 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13926 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13892 var path = (req.url).path; 13927 var path = (req.url).path;
13893 var pathOffset = 0; 13928 var pathOffset = 0;
13894 var index; 13929 var index;
13895 var subPart; 13930 var subPart;
13896 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 13931 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
13897 pathOffset += 1; 13932 pathOffset += 1;
13898 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 13933 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
13899 pathOffset += 18; 13934 pathOffset += 18;
13900 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/")); 13935 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/"));
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
13938 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 13973 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
13939 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 13974 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
13940 unittest.expect(queryMap["studioCreativeId"].first, unittest.equals(arg_ studioCreativeId)); 13975 unittest.expect(queryMap["studioCreativeId"].first, unittest.equals(arg_ studioCreativeId));
13941 unittest.expect(queryMap["types"], unittest.equals(arg_types)); 13976 unittest.expect(queryMap["types"], unittest.equals(arg_types));
13942 13977
13943 13978
13944 var h = { 13979 var h = {
13945 "content-type" : "application/json; charset=utf-8", 13980 "content-type" : "application/json; charset=utf-8",
13946 }; 13981 };
13947 var resp = convert.JSON.encode(buildCreativesListResponse()); 13982 var resp = convert.JSON.encode(buildCreativesListResponse());
13948 return new async.Future.value(common_test.stringResponse(200, h, resp)); 13983 return new async.Future.value(stringResponse(200, h, resp));
13949 }), true); 13984 }), true);
13950 res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId , archived: arg_archived, campaignId: arg_campaignId, companionCreativeIds: arg_ companionCreativeIds, creativeFieldIds: arg_creativeFieldIds, ids: arg_ids, maxR esults: arg_maxResults, pageToken: arg_pageToken, renderingIds: arg_renderingIds , searchString: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField , sortOrder: arg_sortOrder, studioCreativeId: arg_studioCreativeId, types: arg_t ypes).then(unittest.expectAsync(((api.CreativesListResponse response) { 13985 res.list(arg_profileId, active: arg_active, advertiserId: arg_advertiserId , archived: arg_archived, campaignId: arg_campaignId, companionCreativeIds: arg_ companionCreativeIds, creativeFieldIds: arg_creativeFieldIds, ids: arg_ids, maxR esults: arg_maxResults, pageToken: arg_pageToken, renderingIds: arg_renderingIds , searchString: arg_searchString, sizeIds: arg_sizeIds, sortField: arg_sortField , sortOrder: arg_sortOrder, studioCreativeId: arg_studioCreativeId, types: arg_t ypes).then(unittest.expectAsync(((api.CreativesListResponse response) {
13951 checkCreativesListResponse(response); 13986 checkCreativesListResponse(response);
13952 }))); 13987 })));
13953 }); 13988 });
13954 13989
13955 unittest.test("method--patch", () { 13990 unittest.test("method--patch", () {
13956 13991
13957 var mock = new common_test.HttpServerMock(); 13992 var mock = new HttpServerMock();
13958 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; 13993 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives;
13959 var arg_request = buildCreative(); 13994 var arg_request = buildCreative();
13960 var arg_profileId = "foo"; 13995 var arg_profileId = "foo";
13961 var arg_id = "foo"; 13996 var arg_id = "foo";
13962 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 13997 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
13963 var obj = new api.Creative.fromJson(json); 13998 var obj = new api.Creative.fromJson(json);
13964 checkCreative(obj); 13999 checkCreative(obj);
13965 14000
13966 var path = (req.url).path; 14001 var path = (req.url).path;
13967 var pathOffset = 0; 14002 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
13997 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14032 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
13998 } 14033 }
13999 } 14034 }
14000 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 14035 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
14001 14036
14002 14037
14003 var h = { 14038 var h = {
14004 "content-type" : "application/json; charset=utf-8", 14039 "content-type" : "application/json; charset=utf-8",
14005 }; 14040 };
14006 var resp = convert.JSON.encode(buildCreative()); 14041 var resp = convert.JSON.encode(buildCreative());
14007 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14042 return new async.Future.value(stringResponse(200, h, resp));
14008 }), true); 14043 }), true);
14009 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Creative response) { 14044 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Creative response) {
14010 checkCreative(response); 14045 checkCreative(response);
14011 }))); 14046 })));
14012 }); 14047 });
14013 14048
14014 unittest.test("method--update", () { 14049 unittest.test("method--update", () {
14015 14050
14016 var mock = new common_test.HttpServerMock(); 14051 var mock = new HttpServerMock();
14017 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives; 14052 api.CreativesResourceApi res = new api.DfareportingApi(mock).creatives;
14018 var arg_request = buildCreative(); 14053 var arg_request = buildCreative();
14019 var arg_profileId = "foo"; 14054 var arg_profileId = "foo";
14020 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14055 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14021 var obj = new api.Creative.fromJson(json); 14056 var obj = new api.Creative.fromJson(json);
14022 checkCreative(obj); 14057 checkCreative(obj);
14023 14058
14024 var path = (req.url).path; 14059 var path = (req.url).path;
14025 var pathOffset = 0; 14060 var pathOffset = 0;
14026 var index; 14061 var index;
(...skipping 27 matching lines...) Expand all
14054 var keyvalue = part.split("="); 14089 var keyvalue = part.split("=");
14055 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14090 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14056 } 14091 }
14057 } 14092 }
14058 14093
14059 14094
14060 var h = { 14095 var h = {
14061 "content-type" : "application/json; charset=utf-8", 14096 "content-type" : "application/json; charset=utf-8",
14062 }; 14097 };
14063 var resp = convert.JSON.encode(buildCreative()); 14098 var resp = convert.JSON.encode(buildCreative());
14064 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14099 return new async.Future.value(stringResponse(200, h, resp));
14065 }), true); 14100 }), true);
14066 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ative response) { 14101 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Cre ative response) {
14067 checkCreative(response); 14102 checkCreative(response);
14068 }))); 14103 })));
14069 }); 14104 });
14070 14105
14071 }); 14106 });
14072 14107
14073 14108
14074 unittest.group("resource-DimensionValuesResourceApi", () { 14109 unittest.group("resource-DimensionValuesResourceApi", () {
14075 unittest.test("method--query", () { 14110 unittest.test("method--query", () {
14076 14111
14077 var mock = new common_test.HttpServerMock(); 14112 var mock = new HttpServerMock();
14078 api.DimensionValuesResourceApi res = new api.DfareportingApi(mock).dimensi onValues; 14113 api.DimensionValuesResourceApi res = new api.DfareportingApi(mock).dimensi onValues;
14079 var arg_request = buildDimensionValueRequest(); 14114 var arg_request = buildDimensionValueRequest();
14080 var arg_profileId = "foo"; 14115 var arg_profileId = "foo";
14081 var arg_maxResults = 42; 14116 var arg_maxResults = 42;
14082 var arg_pageToken = "foo"; 14117 var arg_pageToken = "foo";
14083 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14118 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14084 var obj = new api.DimensionValueRequest.fromJson(json); 14119 var obj = new api.DimensionValueRequest.fromJson(json);
14085 checkDimensionValueRequest(obj); 14120 checkDimensionValueRequest(obj);
14086 14121
14087 var path = (req.url).path; 14122 var path = (req.url).path;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
14119 } 14154 }
14120 } 14155 }
14121 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 14156 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
14122 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 14157 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
14123 14158
14124 14159
14125 var h = { 14160 var h = {
14126 "content-type" : "application/json; charset=utf-8", 14161 "content-type" : "application/json; charset=utf-8",
14127 }; 14162 };
14128 var resp = convert.JSON.encode(buildDimensionValueList()); 14163 var resp = convert.JSON.encode(buildDimensionValueList());
14129 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14164 return new async.Future.value(stringResponse(200, h, resp));
14130 }), true); 14165 }), true);
14131 res.query(arg_request, arg_profileId, maxResults: arg_maxResults, pageToke n: arg_pageToken).then(unittest.expectAsync(((api.DimensionValueList response) { 14166 res.query(arg_request, arg_profileId, maxResults: arg_maxResults, pageToke n: arg_pageToken).then(unittest.expectAsync(((api.DimensionValueList response) {
14132 checkDimensionValueList(response); 14167 checkDimensionValueList(response);
14133 }))); 14168 })));
14134 }); 14169 });
14135 14170
14136 }); 14171 });
14137 14172
14138 14173
14139 unittest.group("resource-DirectorySiteContactsResourceApi", () { 14174 unittest.group("resource-DirectorySiteContactsResourceApi", () {
14140 unittest.test("method--get", () { 14175 unittest.test("method--get", () {
14141 14176
14142 var mock = new common_test.HttpServerMock(); 14177 var mock = new HttpServerMock();
14143 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d irectorySiteContacts; 14178 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d irectorySiteContacts;
14144 var arg_profileId = "foo"; 14179 var arg_profileId = "foo";
14145 var arg_id = "foo"; 14180 var arg_id = "foo";
14146 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14181 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14147 var path = (req.url).path; 14182 var path = (req.url).path;
14148 var pathOffset = 0; 14183 var pathOffset = 0;
14149 var index; 14184 var index;
14150 var subPart; 14185 var subPart;
14151 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 14186 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
14152 pathOffset += 1; 14187 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
14180 var keyvalue = part.split("="); 14215 var keyvalue = part.split("=");
14181 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14216 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14182 } 14217 }
14183 } 14218 }
14184 14219
14185 14220
14186 var h = { 14221 var h = {
14187 "content-type" : "application/json; charset=utf-8", 14222 "content-type" : "application/json; charset=utf-8",
14188 }; 14223 };
14189 var resp = convert.JSON.encode(buildDirectorySiteContact()); 14224 var resp = convert.JSON.encode(buildDirectorySiteContact());
14190 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14225 return new async.Future.value(stringResponse(200, h, resp));
14191 }), true); 14226 }), true);
14192 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi teContact response) { 14227 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi teContact response) {
14193 checkDirectorySiteContact(response); 14228 checkDirectorySiteContact(response);
14194 }))); 14229 })));
14195 }); 14230 });
14196 14231
14197 unittest.test("method--list", () { 14232 unittest.test("method--list", () {
14198 14233
14199 var mock = new common_test.HttpServerMock(); 14234 var mock = new HttpServerMock();
14200 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d irectorySiteContacts; 14235 api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).d irectorySiteContacts;
14201 var arg_profileId = "foo"; 14236 var arg_profileId = "foo";
14202 var arg_directorySiteIds = buildUnnamed481(); 14237 var arg_directorySiteIds = buildUnnamed894();
14203 var arg_ids = buildUnnamed482(); 14238 var arg_ids = buildUnnamed895();
14204 var arg_maxResults = 42; 14239 var arg_maxResults = 42;
14205 var arg_pageToken = "foo"; 14240 var arg_pageToken = "foo";
14206 var arg_searchString = "foo"; 14241 var arg_searchString = "foo";
14207 var arg_sortField = "foo"; 14242 var arg_sortField = "foo";
14208 var arg_sortOrder = "foo"; 14243 var arg_sortOrder = "foo";
14209 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14244 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14210 var path = (req.url).path; 14245 var path = (req.url).path;
14211 var pathOffset = 0; 14246 var pathOffset = 0;
14212 var index; 14247 var index;
14213 var subPart; 14248 var subPart;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
14247 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 14282 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
14248 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 14283 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
14249 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 14284 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
14250 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 14285 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
14251 14286
14252 14287
14253 var h = { 14288 var h = {
14254 "content-type" : "application/json; charset=utf-8", 14289 "content-type" : "application/json; charset=utf-8",
14255 }; 14290 };
14256 var resp = convert.JSON.encode(buildDirectorySiteContactsListResponse()) ; 14291 var resp = convert.JSON.encode(buildDirectorySiteContactsListResponse()) ;
14257 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14292 return new async.Future.value(stringResponse(200, h, resp));
14258 }), true); 14293 }), true);
14259 res.list(arg_profileId, directorySiteIds: arg_directorySiteIds, ids: arg_i ds, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_sear chString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expe ctAsync(((api.DirectorySiteContactsListResponse response) { 14294 res.list(arg_profileId, directorySiteIds: arg_directorySiteIds, ids: arg_i ds, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_sear chString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expe ctAsync(((api.DirectorySiteContactsListResponse response) {
14260 checkDirectorySiteContactsListResponse(response); 14295 checkDirectorySiteContactsListResponse(response);
14261 }))); 14296 })));
14262 }); 14297 });
14263 14298
14264 }); 14299 });
14265 14300
14266 14301
14267 unittest.group("resource-DirectorySitesResourceApi", () { 14302 unittest.group("resource-DirectorySitesResourceApi", () {
14268 unittest.test("method--get", () { 14303 unittest.test("method--get", () {
14269 14304
14270 var mock = new common_test.HttpServerMock(); 14305 var mock = new HttpServerMock();
14271 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director ySites; 14306 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director ySites;
14272 var arg_profileId = "foo"; 14307 var arg_profileId = "foo";
14273 var arg_id = "foo"; 14308 var arg_id = "foo";
14274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14309 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14275 var path = (req.url).path; 14310 var path = (req.url).path;
14276 var pathOffset = 0; 14311 var pathOffset = 0;
14277 var index; 14312 var index;
14278 var subPart; 14313 var subPart;
14279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 14314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
14280 pathOffset += 1; 14315 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
14308 var keyvalue = part.split("="); 14343 var keyvalue = part.split("=");
14309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14344 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14310 } 14345 }
14311 } 14346 }
14312 14347
14313 14348
14314 var h = { 14349 var h = {
14315 "content-type" : "application/json; charset=utf-8", 14350 "content-type" : "application/json; charset=utf-8",
14316 }; 14351 };
14317 var resp = convert.JSON.encode(buildDirectorySite()); 14352 var resp = convert.JSON.encode(buildDirectorySite());
14318 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14353 return new async.Future.value(stringResponse(200, h, resp));
14319 }), true); 14354 }), true);
14320 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi te response) { 14355 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.DirectorySi te response) {
14321 checkDirectorySite(response); 14356 checkDirectorySite(response);
14322 }))); 14357 })));
14323 }); 14358 });
14324 14359
14325 unittest.test("method--list", () { 14360 unittest.test("method--list", () {
14326 14361
14327 var mock = new common_test.HttpServerMock(); 14362 var mock = new HttpServerMock();
14328 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director ySites; 14363 api.DirectorySitesResourceApi res = new api.DfareportingApi(mock).director ySites;
14329 var arg_profileId = "foo"; 14364 var arg_profileId = "foo";
14330 var arg_acceptsInStreamVideoPlacements = true; 14365 var arg_acceptsInStreamVideoPlacements = true;
14331 var arg_acceptsInterstitialPlacements = true; 14366 var arg_acceptsInterstitialPlacements = true;
14332 var arg_acceptsPublisherPaidPlacements = true; 14367 var arg_acceptsPublisherPaidPlacements = true;
14333 var arg_active = true; 14368 var arg_active = true;
14334 var arg_countryId = "foo"; 14369 var arg_countryId = "foo";
14335 var arg_dfpNetworkCode = "foo"; 14370 var arg_dfpNetworkCode = "foo";
14336 var arg_ids = buildUnnamed483(); 14371 var arg_ids = buildUnnamed896();
14337 var arg_maxResults = 42; 14372 var arg_maxResults = 42;
14338 var arg_pageToken = "foo"; 14373 var arg_pageToken = "foo";
14339 var arg_parentId = "foo"; 14374 var arg_parentId = "foo";
14340 var arg_searchString = "foo"; 14375 var arg_searchString = "foo";
14341 var arg_sortField = "foo"; 14376 var arg_sortField = "foo";
14342 var arg_sortOrder = "foo"; 14377 var arg_sortOrder = "foo";
14343 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14378 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14344 var path = (req.url).path; 14379 var path = (req.url).path;
14345 var pathOffset = 0; 14380 var pathOffset = 0;
14346 var index; 14381 var index;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
14387 unittest.expect(queryMap["parentId"].first, unittest.equals(arg_parentId )); 14422 unittest.expect(queryMap["parentId"].first, unittest.equals(arg_parentId ));
14388 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 14423 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
14389 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 14424 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
14390 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 14425 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
14391 14426
14392 14427
14393 var h = { 14428 var h = {
14394 "content-type" : "application/json; charset=utf-8", 14429 "content-type" : "application/json; charset=utf-8",
14395 }; 14430 };
14396 var resp = convert.JSON.encode(buildDirectorySitesListResponse()); 14431 var resp = convert.JSON.encode(buildDirectorySitesListResponse());
14397 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14432 return new async.Future.value(stringResponse(200, h, resp));
14398 }), true); 14433 }), true);
14399 res.list(arg_profileId, acceptsInStreamVideoPlacements: arg_acceptsInStrea mVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacemen ts, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, active: arg_active, countryId: arg_countryId, dfpNetworkCode: arg_dfpNetworkCode, ids: a rg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, parentId: arg_pare ntId, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_s ortOrder).then(unittest.expectAsync(((api.DirectorySitesListResponse response) { 14434 res.list(arg_profileId, acceptsInStreamVideoPlacements: arg_acceptsInStrea mVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacemen ts, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, active: arg_active, countryId: arg_countryId, dfpNetworkCode: arg_dfpNetworkCode, ids: a rg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, parentId: arg_pare ntId, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_s ortOrder).then(unittest.expectAsync(((api.DirectorySitesListResponse response) {
14400 checkDirectorySitesListResponse(response); 14435 checkDirectorySitesListResponse(response);
14401 }))); 14436 })));
14402 }); 14437 });
14403 14438
14404 }); 14439 });
14405 14440
14406 14441
14407 unittest.group("resource-EventTagsResourceApi", () { 14442 unittest.group("resource-EventTagsResourceApi", () {
14408 unittest.test("method--delete", () { 14443 unittest.test("method--delete", () {
14409 14444
14410 var mock = new common_test.HttpServerMock(); 14445 var mock = new HttpServerMock();
14411 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; 14446 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags;
14412 var arg_profileId = "foo"; 14447 var arg_profileId = "foo";
14413 var arg_id = "foo"; 14448 var arg_id = "foo";
14414 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14449 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14415 var path = (req.url).path; 14450 var path = (req.url).path;
14416 var pathOffset = 0; 14451 var pathOffset = 0;
14417 var index; 14452 var index;
14418 var subPart; 14453 var subPart;
14419 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 14454 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
14420 pathOffset += 1; 14455 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
14448 var keyvalue = part.split("="); 14483 var keyvalue = part.split("=");
14449 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14484 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14450 } 14485 }
14451 } 14486 }
14452 14487
14453 14488
14454 var h = { 14489 var h = {
14455 "content-type" : "application/json; charset=utf-8", 14490 "content-type" : "application/json; charset=utf-8",
14456 }; 14491 };
14457 var resp = ""; 14492 var resp = "";
14458 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14493 return new async.Future.value(stringResponse(200, h, resp));
14459 }), true); 14494 }), true);
14460 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); 14495 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
14461 }); 14496 });
14462 14497
14463 unittest.test("method--get", () { 14498 unittest.test("method--get", () {
14464 14499
14465 var mock = new common_test.HttpServerMock(); 14500 var mock = new HttpServerMock();
14466 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; 14501 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags;
14467 var arg_profileId = "foo"; 14502 var arg_profileId = "foo";
14468 var arg_id = "foo"; 14503 var arg_id = "foo";
14469 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14504 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14470 var path = (req.url).path; 14505 var path = (req.url).path;
14471 var pathOffset = 0; 14506 var pathOffset = 0;
14472 var index; 14507 var index;
14473 var subPart; 14508 var subPart;
14474 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 14509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
14475 pathOffset += 1; 14510 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
14503 var keyvalue = part.split("="); 14538 var keyvalue = part.split("=");
14504 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14539 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14505 } 14540 }
14506 } 14541 }
14507 14542
14508 14543
14509 var h = { 14544 var h = {
14510 "content-type" : "application/json; charset=utf-8", 14545 "content-type" : "application/json; charset=utf-8",
14511 }; 14546 };
14512 var resp = convert.JSON.encode(buildEventTag()); 14547 var resp = convert.JSON.encode(buildEventTag());
14513 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14548 return new async.Future.value(stringResponse(200, h, resp));
14514 }), true); 14549 }), true);
14515 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.EventTag re sponse) { 14550 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.EventTag re sponse) {
14516 checkEventTag(response); 14551 checkEventTag(response);
14517 }))); 14552 })));
14518 }); 14553 });
14519 14554
14520 unittest.test("method--insert", () { 14555 unittest.test("method--insert", () {
14521 14556
14522 var mock = new common_test.HttpServerMock(); 14557 var mock = new HttpServerMock();
14523 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; 14558 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags;
14524 var arg_request = buildEventTag(); 14559 var arg_request = buildEventTag();
14525 var arg_profileId = "foo"; 14560 var arg_profileId = "foo";
14526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14561 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14527 var obj = new api.EventTag.fromJson(json); 14562 var obj = new api.EventTag.fromJson(json);
14528 checkEventTag(obj); 14563 checkEventTag(obj);
14529 14564
14530 var path = (req.url).path; 14565 var path = (req.url).path;
14531 var pathOffset = 0; 14566 var pathOffset = 0;
14532 var index; 14567 var index;
(...skipping 27 matching lines...) Expand all
14560 var keyvalue = part.split("="); 14595 var keyvalue = part.split("=");
14561 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14596 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14562 } 14597 }
14563 } 14598 }
14564 14599
14565 14600
14566 var h = { 14601 var h = {
14567 "content-type" : "application/json; charset=utf-8", 14602 "content-type" : "application/json; charset=utf-8",
14568 }; 14603 };
14569 var resp = convert.JSON.encode(buildEventTag()); 14604 var resp = convert.JSON.encode(buildEventTag());
14570 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14605 return new async.Future.value(stringResponse(200, h, resp));
14571 }), true); 14606 }), true);
14572 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Eve ntTag response) { 14607 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Eve ntTag response) {
14573 checkEventTag(response); 14608 checkEventTag(response);
14574 }))); 14609 })));
14575 }); 14610 });
14576 14611
14577 unittest.test("method--list", () { 14612 unittest.test("method--list", () {
14578 14613
14579 var mock = new common_test.HttpServerMock(); 14614 var mock = new HttpServerMock();
14580 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; 14615 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags;
14581 var arg_profileId = "foo"; 14616 var arg_profileId = "foo";
14582 var arg_adId = "foo"; 14617 var arg_adId = "foo";
14583 var arg_advertiserId = "foo"; 14618 var arg_advertiserId = "foo";
14584 var arg_campaignId = "foo"; 14619 var arg_campaignId = "foo";
14585 var arg_definitionsOnly = true; 14620 var arg_definitionsOnly = true;
14586 var arg_enabled = true; 14621 var arg_enabled = true;
14587 var arg_eventTagTypes = buildUnnamed484(); 14622 var arg_eventTagTypes = buildUnnamed897();
14588 var arg_ids = buildUnnamed485(); 14623 var arg_ids = buildUnnamed898();
14589 var arg_searchString = "foo"; 14624 var arg_searchString = "foo";
14590 var arg_sortField = "foo"; 14625 var arg_sortField = "foo";
14591 var arg_sortOrder = "foo"; 14626 var arg_sortOrder = "foo";
14592 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14627 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14593 var path = (req.url).path; 14628 var path = (req.url).path;
14594 var pathOffset = 0; 14629 var pathOffset = 0;
14595 var index; 14630 var index;
14596 var subPart; 14631 var subPart;
14597 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 14632 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
14598 pathOffset += 1; 14633 pathOffset += 1;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
14633 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); 14668 unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
14634 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 14669 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
14635 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 14670 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
14636 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 14671 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
14637 14672
14638 14673
14639 var h = { 14674 var h = {
14640 "content-type" : "application/json; charset=utf-8", 14675 "content-type" : "application/json; charset=utf-8",
14641 }; 14676 };
14642 var resp = convert.JSON.encode(buildEventTagsListResponse()); 14677 var resp = convert.JSON.encode(buildEventTagsListResponse());
14643 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14678 return new async.Future.value(stringResponse(200, h, resp));
14644 }), true); 14679 }), true);
14645 res.list(arg_profileId, adId: arg_adId, advertiserId: arg_advertiserId, ca mpaignId: arg_campaignId, definitionsOnly: arg_definitionsOnly, enabled: arg_ena bled, eventTagTypes: arg_eventTagTypes, ids: arg_ids, searchString: arg_searchSt ring, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAs ync(((api.EventTagsListResponse response) { 14680 res.list(arg_profileId, adId: arg_adId, advertiserId: arg_advertiserId, ca mpaignId: arg_campaignId, definitionsOnly: arg_definitionsOnly, enabled: arg_ena bled, eventTagTypes: arg_eventTagTypes, ids: arg_ids, searchString: arg_searchSt ring, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAs ync(((api.EventTagsListResponse response) {
14646 checkEventTagsListResponse(response); 14681 checkEventTagsListResponse(response);
14647 }))); 14682 })));
14648 }); 14683 });
14649 14684
14650 unittest.test("method--patch", () { 14685 unittest.test("method--patch", () {
14651 14686
14652 var mock = new common_test.HttpServerMock(); 14687 var mock = new HttpServerMock();
14653 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; 14688 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags;
14654 var arg_request = buildEventTag(); 14689 var arg_request = buildEventTag();
14655 var arg_profileId = "foo"; 14690 var arg_profileId = "foo";
14656 var arg_id = "foo"; 14691 var arg_id = "foo";
14657 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14692 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14658 var obj = new api.EventTag.fromJson(json); 14693 var obj = new api.EventTag.fromJson(json);
14659 checkEventTag(obj); 14694 checkEventTag(obj);
14660 14695
14661 var path = (req.url).path; 14696 var path = (req.url).path;
14662 var pathOffset = 0; 14697 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
14692 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14727 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14693 } 14728 }
14694 } 14729 }
14695 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 14730 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
14696 14731
14697 14732
14698 var h = { 14733 var h = {
14699 "content-type" : "application/json; charset=utf-8", 14734 "content-type" : "application/json; charset=utf-8",
14700 }; 14735 };
14701 var resp = convert.JSON.encode(buildEventTag()); 14736 var resp = convert.JSON.encode(buildEventTag());
14702 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14737 return new async.Future.value(stringResponse(200, h, resp));
14703 }), true); 14738 }), true);
14704 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.EventTag response) { 14739 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.EventTag response) {
14705 checkEventTag(response); 14740 checkEventTag(response);
14706 }))); 14741 })));
14707 }); 14742 });
14708 14743
14709 unittest.test("method--update", () { 14744 unittest.test("method--update", () {
14710 14745
14711 var mock = new common_test.HttpServerMock(); 14746 var mock = new HttpServerMock();
14712 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags; 14747 api.EventTagsResourceApi res = new api.DfareportingApi(mock).eventTags;
14713 var arg_request = buildEventTag(); 14748 var arg_request = buildEventTag();
14714 var arg_profileId = "foo"; 14749 var arg_profileId = "foo";
14715 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14750 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14716 var obj = new api.EventTag.fromJson(json); 14751 var obj = new api.EventTag.fromJson(json);
14717 checkEventTag(obj); 14752 checkEventTag(obj);
14718 14753
14719 var path = (req.url).path; 14754 var path = (req.url).path;
14720 var pathOffset = 0; 14755 var pathOffset = 0;
14721 var index; 14756 var index;
(...skipping 27 matching lines...) Expand all
14749 var keyvalue = part.split("="); 14784 var keyvalue = part.split("=");
14750 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14785 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14751 } 14786 }
14752 } 14787 }
14753 14788
14754 14789
14755 var h = { 14790 var h = {
14756 "content-type" : "application/json; charset=utf-8", 14791 "content-type" : "application/json; charset=utf-8",
14757 }; 14792 };
14758 var resp = convert.JSON.encode(buildEventTag()); 14793 var resp = convert.JSON.encode(buildEventTag());
14759 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14794 return new async.Future.value(stringResponse(200, h, resp));
14760 }), true); 14795 }), true);
14761 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Eve ntTag response) { 14796 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Eve ntTag response) {
14762 checkEventTag(response); 14797 checkEventTag(response);
14763 }))); 14798 })));
14764 }); 14799 });
14765 14800
14766 }); 14801 });
14767 14802
14768 14803
14769 unittest.group("resource-FilesResourceApi", () { 14804 unittest.group("resource-FilesResourceApi", () {
14770 unittest.test("method--get", () { 14805 unittest.test("method--get", () {
14771 // TODO: Implement tests for media upload; 14806 // TODO: Implement tests for media upload;
14772 // TODO: Implement tests for media download; 14807 // TODO: Implement tests for media download;
14773 14808
14774 var mock = new common_test.HttpServerMock(); 14809 var mock = new HttpServerMock();
14775 api.FilesResourceApi res = new api.DfareportingApi(mock).files; 14810 api.FilesResourceApi res = new api.DfareportingApi(mock).files;
14776 var arg_reportId = "foo"; 14811 var arg_reportId = "foo";
14777 var arg_fileId = "foo"; 14812 var arg_fileId = "foo";
14778 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14813 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14779 var path = (req.url).path; 14814 var path = (req.url).path;
14780 var pathOffset = 0; 14815 var pathOffset = 0;
14781 var index; 14816 var index;
14782 var subPart; 14817 var subPart;
14783 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 14818 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
14784 pathOffset += 1; 14819 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
14812 var keyvalue = part.split("="); 14847 var keyvalue = part.split("=");
14813 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14848 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14814 } 14849 }
14815 } 14850 }
14816 14851
14817 14852
14818 var h = { 14853 var h = {
14819 "content-type" : "application/json; charset=utf-8", 14854 "content-type" : "application/json; charset=utf-8",
14820 }; 14855 };
14821 var resp = convert.JSON.encode(buildFile()); 14856 var resp = convert.JSON.encode(buildFile());
14822 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14857 return new async.Future.value(stringResponse(200, h, resp));
14823 }), true); 14858 }), true);
14824 res.get(arg_reportId, arg_fileId).then(unittest.expectAsync(((api.File res ponse) { 14859 res.get(arg_reportId, arg_fileId).then(unittest.expectAsync(((api.File res ponse) {
14825 checkFile(response); 14860 checkFile(response);
14826 }))); 14861 })));
14827 }); 14862 });
14828 14863
14829 unittest.test("method--list", () { 14864 unittest.test("method--list", () {
14830 14865
14831 var mock = new common_test.HttpServerMock(); 14866 var mock = new HttpServerMock();
14832 api.FilesResourceApi res = new api.DfareportingApi(mock).files; 14867 api.FilesResourceApi res = new api.DfareportingApi(mock).files;
14833 var arg_profileId = "foo"; 14868 var arg_profileId = "foo";
14834 var arg_maxResults = 42; 14869 var arg_maxResults = 42;
14835 var arg_pageToken = "foo"; 14870 var arg_pageToken = "foo";
14836 var arg_scope = "foo"; 14871 var arg_scope = "foo";
14837 var arg_sortField = "foo"; 14872 var arg_sortField = "foo";
14838 var arg_sortOrder = "foo"; 14873 var arg_sortOrder = "foo";
14839 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14874 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14840 var path = (req.url).path; 14875 var path = (req.url).path;
14841 var pathOffset = 0; 14876 var pathOffset = 0;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
14875 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 14910 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
14876 unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); 14911 unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope));
14877 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 14912 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
14878 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 14913 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
14879 14914
14880 14915
14881 var h = { 14916 var h = {
14882 "content-type" : "application/json; charset=utf-8", 14917 "content-type" : "application/json; charset=utf-8",
14883 }; 14918 };
14884 var resp = convert.JSON.encode(buildFileList()); 14919 var resp = convert.JSON.encode(buildFileList());
14885 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14920 return new async.Future.value(stringResponse(200, h, resp));
14886 }), true); 14921 }), true);
14887 res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageTok en, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(u nittest.expectAsync(((api.FileList response) { 14922 res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageTok en, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(u nittest.expectAsync(((api.FileList response) {
14888 checkFileList(response); 14923 checkFileList(response);
14889 }))); 14924 })));
14890 }); 14925 });
14891 14926
14892 }); 14927 });
14893 14928
14894 14929
14895 unittest.group("resource-FloodlightActivitiesResourceApi", () { 14930 unittest.group("resource-FloodlightActivitiesResourceApi", () {
14896 unittest.test("method--delete", () { 14931 unittest.test("method--delete", () {
14897 14932
14898 var mock = new common_test.HttpServerMock(); 14933 var mock = new HttpServerMock();
14899 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities; 14934 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities;
14900 var arg_profileId = "foo"; 14935 var arg_profileId = "foo";
14901 var arg_id = "foo"; 14936 var arg_id = "foo";
14902 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14937 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14903 var path = (req.url).path; 14938 var path = (req.url).path;
14904 var pathOffset = 0; 14939 var pathOffset = 0;
14905 var index; 14940 var index;
14906 var subPart; 14941 var subPart;
14907 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 14942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
14908 pathOffset += 1; 14943 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
14936 var keyvalue = part.split("="); 14971 var keyvalue = part.split("=");
14937 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 14972 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14938 } 14973 }
14939 } 14974 }
14940 14975
14941 14976
14942 var h = { 14977 var h = {
14943 "content-type" : "application/json; charset=utf-8", 14978 "content-type" : "application/json; charset=utf-8",
14944 }; 14979 };
14945 var resp = ""; 14980 var resp = "";
14946 return new async.Future.value(common_test.stringResponse(200, h, resp)); 14981 return new async.Future.value(stringResponse(200, h, resp));
14947 }), true); 14982 }), true);
14948 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); 14983 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
14949 }); 14984 });
14950 14985
14951 unittest.test("method--generatetag", () { 14986 unittest.test("method--generatetag", () {
14952 14987
14953 var mock = new common_test.HttpServerMock(); 14988 var mock = new HttpServerMock();
14954 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities; 14989 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities;
14955 var arg_profileId = "foo"; 14990 var arg_profileId = "foo";
14956 var arg_floodlightActivityId = "foo"; 14991 var arg_floodlightActivityId = "foo";
14957 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 14992 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
14958 var path = (req.url).path; 14993 var path = (req.url).path;
14959 var pathOffset = 0; 14994 var pathOffset = 0;
14960 var index; 14995 var index;
14961 var subPart; 14996 var subPart;
14962 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 14997 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
14963 pathOffset += 1; 14998 pathOffset += 1;
(...skipping 25 matching lines...) Expand all
14989 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15024 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
14990 } 15025 }
14991 } 15026 }
14992 unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals( arg_floodlightActivityId)); 15027 unittest.expect(queryMap["floodlightActivityId"].first, unittest.equals( arg_floodlightActivityId));
14993 15028
14994 15029
14995 var h = { 15030 var h = {
14996 "content-type" : "application/json; charset=utf-8", 15031 "content-type" : "application/json; charset=utf-8",
14997 }; 15032 };
14998 var resp = convert.JSON.encode(buildFloodlightActivitiesGenerateTagRespo nse()); 15033 var resp = convert.JSON.encode(buildFloodlightActivitiesGenerateTagRespo nse());
14999 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15034 return new async.Future.value(stringResponse(200, h, resp));
15000 }), true); 15035 }), true);
15001 res.generatetag(arg_profileId, floodlightActivityId: arg_floodlightActivit yId).then(unittest.expectAsync(((api.FloodlightActivitiesGenerateTagResponse res ponse) { 15036 res.generatetag(arg_profileId, floodlightActivityId: arg_floodlightActivit yId).then(unittest.expectAsync(((api.FloodlightActivitiesGenerateTagResponse res ponse) {
15002 checkFloodlightActivitiesGenerateTagResponse(response); 15037 checkFloodlightActivitiesGenerateTagResponse(response);
15003 }))); 15038 })));
15004 }); 15039 });
15005 15040
15006 unittest.test("method--get", () { 15041 unittest.test("method--get", () {
15007 15042
15008 var mock = new common_test.HttpServerMock(); 15043 var mock = new HttpServerMock();
15009 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities; 15044 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities;
15010 var arg_profileId = "foo"; 15045 var arg_profileId = "foo";
15011 var arg_id = "foo"; 15046 var arg_id = "foo";
15012 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15047 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15013 var path = (req.url).path; 15048 var path = (req.url).path;
15014 var pathOffset = 0; 15049 var pathOffset = 0;
15015 var index; 15050 var index;
15016 var subPart; 15051 var subPart;
15017 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 15052 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
15018 pathOffset += 1; 15053 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
15046 var keyvalue = part.split("="); 15081 var keyvalue = part.split("=");
15047 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15082 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15048 } 15083 }
15049 } 15084 }
15050 15085
15051 15086
15052 var h = { 15087 var h = {
15053 "content-type" : "application/json; charset=utf-8", 15088 "content-type" : "application/json; charset=utf-8",
15054 }; 15089 };
15055 var resp = convert.JSON.encode(buildFloodlightActivity()); 15090 var resp = convert.JSON.encode(buildFloodlightActivity());
15056 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15091 return new async.Future.value(stringResponse(200, h, resp));
15057 }), true); 15092 }), true);
15058 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightA ctivity response) { 15093 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightA ctivity response) {
15059 checkFloodlightActivity(response); 15094 checkFloodlightActivity(response);
15060 }))); 15095 })));
15061 }); 15096 });
15062 15097
15063 unittest.test("method--insert", () { 15098 unittest.test("method--insert", () {
15064 15099
15065 var mock = new common_test.HttpServerMock(); 15100 var mock = new HttpServerMock();
15066 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities; 15101 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities;
15067 var arg_request = buildFloodlightActivity(); 15102 var arg_request = buildFloodlightActivity();
15068 var arg_profileId = "foo"; 15103 var arg_profileId = "foo";
15069 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15104 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15070 var obj = new api.FloodlightActivity.fromJson(json); 15105 var obj = new api.FloodlightActivity.fromJson(json);
15071 checkFloodlightActivity(obj); 15106 checkFloodlightActivity(obj);
15072 15107
15073 var path = (req.url).path; 15108 var path = (req.url).path;
15074 var pathOffset = 0; 15109 var pathOffset = 0;
15075 var index; 15110 var index;
(...skipping 27 matching lines...) Expand all
15103 var keyvalue = part.split("="); 15138 var keyvalue = part.split("=");
15104 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15139 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15105 } 15140 }
15106 } 15141 }
15107 15142
15108 15143
15109 var h = { 15144 var h = {
15110 "content-type" : "application/json; charset=utf-8", 15145 "content-type" : "application/json; charset=utf-8",
15111 }; 15146 };
15112 var resp = convert.JSON.encode(buildFloodlightActivity()); 15147 var resp = convert.JSON.encode(buildFloodlightActivity());
15113 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15148 return new async.Future.value(stringResponse(200, h, resp));
15114 }), true); 15149 }), true);
15115 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightActivity response) { 15150 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightActivity response) {
15116 checkFloodlightActivity(response); 15151 checkFloodlightActivity(response);
15117 }))); 15152 })));
15118 }); 15153 });
15119 15154
15120 unittest.test("method--list", () { 15155 unittest.test("method--list", () {
15121 15156
15122 var mock = new common_test.HttpServerMock(); 15157 var mock = new HttpServerMock();
15123 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities; 15158 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities;
15124 var arg_profileId = "foo"; 15159 var arg_profileId = "foo";
15125 var arg_advertiserId = "foo"; 15160 var arg_advertiserId = "foo";
15126 var arg_floodlightActivityGroupIds = buildUnnamed486(); 15161 var arg_floodlightActivityGroupIds = buildUnnamed899();
15127 var arg_floodlightActivityGroupName = "foo"; 15162 var arg_floodlightActivityGroupName = "foo";
15128 var arg_floodlightActivityGroupTagString = "foo"; 15163 var arg_floodlightActivityGroupTagString = "foo";
15129 var arg_floodlightActivityGroupType = "foo"; 15164 var arg_floodlightActivityGroupType = "foo";
15130 var arg_floodlightConfigurationId = "foo"; 15165 var arg_floodlightConfigurationId = "foo";
15131 var arg_ids = buildUnnamed487(); 15166 var arg_ids = buildUnnamed900();
15132 var arg_maxResults = 42; 15167 var arg_maxResults = 42;
15133 var arg_pageToken = "foo"; 15168 var arg_pageToken = "foo";
15134 var arg_searchString = "foo"; 15169 var arg_searchString = "foo";
15135 var arg_sortField = "foo"; 15170 var arg_sortField = "foo";
15136 var arg_sortOrder = "foo"; 15171 var arg_sortOrder = "foo";
15137 var arg_tagString = "foo"; 15172 var arg_tagString = "foo";
15138 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15173 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15139 var path = (req.url).path; 15174 var path = (req.url).path;
15140 var pathOffset = 0; 15175 var pathOffset = 0;
15141 var index; 15176 var index;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
15182 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 15217 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
15183 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 15218 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
15184 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 15219 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
15185 unittest.expect(queryMap["tagString"].first, unittest.equals(arg_tagStri ng)); 15220 unittest.expect(queryMap["tagString"].first, unittest.equals(arg_tagStri ng));
15186 15221
15187 15222
15188 var h = { 15223 var h = {
15189 "content-type" : "application/json; charset=utf-8", 15224 "content-type" : "application/json; charset=utf-8",
15190 }; 15225 };
15191 var resp = convert.JSON.encode(buildFloodlightActivitiesListResponse()); 15226 var resp = convert.JSON.encode(buildFloodlightActivitiesListResponse());
15192 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15227 return new async.Future.value(stringResponse(200, h, resp));
15193 }), true); 15228 }), true);
15194 res.list(arg_profileId, advertiserId: arg_advertiserId, floodlightActivity GroupIds: arg_floodlightActivityGroupIds, floodlightActivityGroupName: arg_flood lightActivityGroupName, floodlightActivityGroupTagString: arg_floodlightActivity GroupTagString, floodlightActivityGroupType: arg_floodlightActivityGroupType, fl oodlightConfigurationId: arg_floodlightConfigurationId, ids: arg_ids, maxResults : arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sort Field: arg_sortField, sortOrder: arg_sortOrder, tagString: arg_tagString).then(u nittest.expectAsync(((api.FloodlightActivitiesListResponse response) { 15229 res.list(arg_profileId, advertiserId: arg_advertiserId, floodlightActivity GroupIds: arg_floodlightActivityGroupIds, floodlightActivityGroupName: arg_flood lightActivityGroupName, floodlightActivityGroupTagString: arg_floodlightActivity GroupTagString, floodlightActivityGroupType: arg_floodlightActivityGroupType, fl oodlightConfigurationId: arg_floodlightConfigurationId, ids: arg_ids, maxResults : arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sort Field: arg_sortField, sortOrder: arg_sortOrder, tagString: arg_tagString).then(u nittest.expectAsync(((api.FloodlightActivitiesListResponse response) {
15195 checkFloodlightActivitiesListResponse(response); 15230 checkFloodlightActivitiesListResponse(response);
15196 }))); 15231 })));
15197 }); 15232 });
15198 15233
15199 unittest.test("method--patch", () { 15234 unittest.test("method--patch", () {
15200 15235
15201 var mock = new common_test.HttpServerMock(); 15236 var mock = new HttpServerMock();
15202 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities; 15237 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities;
15203 var arg_request = buildFloodlightActivity(); 15238 var arg_request = buildFloodlightActivity();
15204 var arg_profileId = "foo"; 15239 var arg_profileId = "foo";
15205 var arg_id = "foo"; 15240 var arg_id = "foo";
15206 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15241 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15207 var obj = new api.FloodlightActivity.fromJson(json); 15242 var obj = new api.FloodlightActivity.fromJson(json);
15208 checkFloodlightActivity(obj); 15243 checkFloodlightActivity(obj);
15209 15244
15210 var path = (req.url).path; 15245 var path = (req.url).path;
15211 var pathOffset = 0; 15246 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
15241 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15276 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15242 } 15277 }
15243 } 15278 }
15244 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 15279 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
15245 15280
15246 15281
15247 var h = { 15282 var h = {
15248 "content-type" : "application/json; charset=utf-8", 15283 "content-type" : "application/json; charset=utf-8",
15249 }; 15284 };
15250 var resp = convert.JSON.encode(buildFloodlightActivity()); 15285 var resp = convert.JSON.encode(buildFloodlightActivity());
15251 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15286 return new async.Future.value(stringResponse(200, h, resp));
15252 }), true); 15287 }), true);
15253 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.FloodlightActivity response) { 15288 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.FloodlightActivity response) {
15254 checkFloodlightActivity(response); 15289 checkFloodlightActivity(response);
15255 }))); 15290 })));
15256 }); 15291 });
15257 15292
15258 unittest.test("method--update", () { 15293 unittest.test("method--update", () {
15259 15294
15260 var mock = new common_test.HttpServerMock(); 15295 var mock = new HttpServerMock();
15261 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities; 15296 api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).fl oodlightActivities;
15262 var arg_request = buildFloodlightActivity(); 15297 var arg_request = buildFloodlightActivity();
15263 var arg_profileId = "foo"; 15298 var arg_profileId = "foo";
15264 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15299 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15265 var obj = new api.FloodlightActivity.fromJson(json); 15300 var obj = new api.FloodlightActivity.fromJson(json);
15266 checkFloodlightActivity(obj); 15301 checkFloodlightActivity(obj);
15267 15302
15268 var path = (req.url).path; 15303 var path = (req.url).path;
15269 var pathOffset = 0; 15304 var pathOffset = 0;
15270 var index; 15305 var index;
(...skipping 27 matching lines...) Expand all
15298 var keyvalue = part.split("="); 15333 var keyvalue = part.split("=");
15299 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15334 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15300 } 15335 }
15301 } 15336 }
15302 15337
15303 15338
15304 var h = { 15339 var h = {
15305 "content-type" : "application/json; charset=utf-8", 15340 "content-type" : "application/json; charset=utf-8",
15306 }; 15341 };
15307 var resp = convert.JSON.encode(buildFloodlightActivity()); 15342 var resp = convert.JSON.encode(buildFloodlightActivity());
15308 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15343 return new async.Future.value(stringResponse(200, h, resp));
15309 }), true); 15344 }), true);
15310 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightActivity response) { 15345 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightActivity response) {
15311 checkFloodlightActivity(response); 15346 checkFloodlightActivity(response);
15312 }))); 15347 })));
15313 }); 15348 });
15314 15349
15315 }); 15350 });
15316 15351
15317 15352
15318 unittest.group("resource-FloodlightActivityGroupsResourceApi", () { 15353 unittest.group("resource-FloodlightActivityGroupsResourceApi", () {
15319 unittest.test("method--delete", () { 15354 unittest.test("method--delete", () {
15320 15355
15321 var mock = new common_test.HttpServerMock(); 15356 var mock = new HttpServerMock();
15322 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups; 15357 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups;
15323 var arg_profileId = "foo"; 15358 var arg_profileId = "foo";
15324 var arg_id = "foo"; 15359 var arg_id = "foo";
15325 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15360 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15326 var path = (req.url).path; 15361 var path = (req.url).path;
15327 var pathOffset = 0; 15362 var pathOffset = 0;
15328 var index; 15363 var index;
15329 var subPart; 15364 var subPart;
15330 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 15365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
15331 pathOffset += 1; 15366 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
15359 var keyvalue = part.split("="); 15394 var keyvalue = part.split("=");
15360 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15395 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15361 } 15396 }
15362 } 15397 }
15363 15398
15364 15399
15365 var h = { 15400 var h = {
15366 "content-type" : "application/json; charset=utf-8", 15401 "content-type" : "application/json; charset=utf-8",
15367 }; 15402 };
15368 var resp = ""; 15403 var resp = "";
15369 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15404 return new async.Future.value(stringResponse(200, h, resp));
15370 }), true); 15405 }), true);
15371 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); 15406 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
15372 }); 15407 });
15373 15408
15374 unittest.test("method--get", () { 15409 unittest.test("method--get", () {
15375 15410
15376 var mock = new common_test.HttpServerMock(); 15411 var mock = new HttpServerMock();
15377 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups; 15412 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups;
15378 var arg_profileId = "foo"; 15413 var arg_profileId = "foo";
15379 var arg_id = "foo"; 15414 var arg_id = "foo";
15380 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15415 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15381 var path = (req.url).path; 15416 var path = (req.url).path;
15382 var pathOffset = 0; 15417 var pathOffset = 0;
15383 var index; 15418 var index;
15384 var subPart; 15419 var subPart;
15385 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 15420 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
15386 pathOffset += 1; 15421 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
15414 var keyvalue = part.split("="); 15449 var keyvalue = part.split("=");
15415 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15450 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15416 } 15451 }
15417 } 15452 }
15418 15453
15419 15454
15420 var h = { 15455 var h = {
15421 "content-type" : "application/json; charset=utf-8", 15456 "content-type" : "application/json; charset=utf-8",
15422 }; 15457 };
15423 var resp = convert.JSON.encode(buildFloodlightActivityGroup()); 15458 var resp = convert.JSON.encode(buildFloodlightActivityGroup());
15424 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15459 return new async.Future.value(stringResponse(200, h, resp));
15425 }), true); 15460 }), true);
15426 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightA ctivityGroup response) { 15461 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightA ctivityGroup response) {
15427 checkFloodlightActivityGroup(response); 15462 checkFloodlightActivityGroup(response);
15428 }))); 15463 })));
15429 }); 15464 });
15430 15465
15431 unittest.test("method--insert", () { 15466 unittest.test("method--insert", () {
15432 15467
15433 var mock = new common_test.HttpServerMock(); 15468 var mock = new HttpServerMock();
15434 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups; 15469 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups;
15435 var arg_request = buildFloodlightActivityGroup(); 15470 var arg_request = buildFloodlightActivityGroup();
15436 var arg_profileId = "foo"; 15471 var arg_profileId = "foo";
15437 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15472 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15438 var obj = new api.FloodlightActivityGroup.fromJson(json); 15473 var obj = new api.FloodlightActivityGroup.fromJson(json);
15439 checkFloodlightActivityGroup(obj); 15474 checkFloodlightActivityGroup(obj);
15440 15475
15441 var path = (req.url).path; 15476 var path = (req.url).path;
15442 var pathOffset = 0; 15477 var pathOffset = 0;
15443 var index; 15478 var index;
(...skipping 27 matching lines...) Expand all
15471 var keyvalue = part.split("="); 15506 var keyvalue = part.split("=");
15472 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15507 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15473 } 15508 }
15474 } 15509 }
15475 15510
15476 15511
15477 var h = { 15512 var h = {
15478 "content-type" : "application/json; charset=utf-8", 15513 "content-type" : "application/json; charset=utf-8",
15479 }; 15514 };
15480 var resp = convert.JSON.encode(buildFloodlightActivityGroup()); 15515 var resp = convert.JSON.encode(buildFloodlightActivityGroup());
15481 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15516 return new async.Future.value(stringResponse(200, h, resp));
15482 }), true); 15517 }), true);
15483 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightActivityGroup response) { 15518 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightActivityGroup response) {
15484 checkFloodlightActivityGroup(response); 15519 checkFloodlightActivityGroup(response);
15485 }))); 15520 })));
15486 }); 15521 });
15487 15522
15488 unittest.test("method--list", () { 15523 unittest.test("method--list", () {
15489 15524
15490 var mock = new common_test.HttpServerMock(); 15525 var mock = new HttpServerMock();
15491 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups; 15526 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups;
15492 var arg_profileId = "foo"; 15527 var arg_profileId = "foo";
15493 var arg_advertiserId = "foo"; 15528 var arg_advertiserId = "foo";
15494 var arg_floodlightConfigurationId = "foo"; 15529 var arg_floodlightConfigurationId = "foo";
15495 var arg_ids = buildUnnamed488(); 15530 var arg_ids = buildUnnamed901();
15496 var arg_maxResults = 42; 15531 var arg_maxResults = 42;
15497 var arg_pageToken = "foo"; 15532 var arg_pageToken = "foo";
15498 var arg_searchString = "foo"; 15533 var arg_searchString = "foo";
15499 var arg_sortField = "foo"; 15534 var arg_sortField = "foo";
15500 var arg_sortOrder = "foo"; 15535 var arg_sortOrder = "foo";
15501 var arg_type = "foo"; 15536 var arg_type = "foo";
15502 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15537 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15503 var path = (req.url).path; 15538 var path = (req.url).path;
15504 var pathOffset = 0; 15539 var pathOffset = 0;
15505 var index; 15540 var index;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
15542 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 15577 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
15543 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 15578 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
15544 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 15579 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
15545 unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); 15580 unittest.expect(queryMap["type"].first, unittest.equals(arg_type));
15546 15581
15547 15582
15548 var h = { 15583 var h = {
15549 "content-type" : "application/json; charset=utf-8", 15584 "content-type" : "application/json; charset=utf-8",
15550 }; 15585 };
15551 var resp = convert.JSON.encode(buildFloodlightActivityGroupsListResponse ()); 15586 var resp = convert.JSON.encode(buildFloodlightActivityGroupsListResponse ());
15552 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15587 return new async.Future.value(stringResponse(200, h, resp));
15553 }), true); 15588 }), true);
15554 res.list(arg_profileId, advertiserId: arg_advertiserId, floodlightConfigur ationId: arg_floodlightConfigurationId, ids: arg_ids, maxResults: arg_maxResults , pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortF ield, sortOrder: arg_sortOrder, type: arg_type).then(unittest.expectAsync(((api. FloodlightActivityGroupsListResponse response) { 15589 res.list(arg_profileId, advertiserId: arg_advertiserId, floodlightConfigur ationId: arg_floodlightConfigurationId, ids: arg_ids, maxResults: arg_maxResults , pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortF ield, sortOrder: arg_sortOrder, type: arg_type).then(unittest.expectAsync(((api. FloodlightActivityGroupsListResponse response) {
15555 checkFloodlightActivityGroupsListResponse(response); 15590 checkFloodlightActivityGroupsListResponse(response);
15556 }))); 15591 })));
15557 }); 15592 });
15558 15593
15559 unittest.test("method--patch", () { 15594 unittest.test("method--patch", () {
15560 15595
15561 var mock = new common_test.HttpServerMock(); 15596 var mock = new HttpServerMock();
15562 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups; 15597 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups;
15563 var arg_request = buildFloodlightActivityGroup(); 15598 var arg_request = buildFloodlightActivityGroup();
15564 var arg_profileId = "foo"; 15599 var arg_profileId = "foo";
15565 var arg_id = "foo"; 15600 var arg_id = "foo";
15566 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15601 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15567 var obj = new api.FloodlightActivityGroup.fromJson(json); 15602 var obj = new api.FloodlightActivityGroup.fromJson(json);
15568 checkFloodlightActivityGroup(obj); 15603 checkFloodlightActivityGroup(obj);
15569 15604
15570 var path = (req.url).path; 15605 var path = (req.url).path;
15571 var pathOffset = 0; 15606 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
15601 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15636 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15602 } 15637 }
15603 } 15638 }
15604 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 15639 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
15605 15640
15606 15641
15607 var h = { 15642 var h = {
15608 "content-type" : "application/json; charset=utf-8", 15643 "content-type" : "application/json; charset=utf-8",
15609 }; 15644 };
15610 var resp = convert.JSON.encode(buildFloodlightActivityGroup()); 15645 var resp = convert.JSON.encode(buildFloodlightActivityGroup());
15611 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15646 return new async.Future.value(stringResponse(200, h, resp));
15612 }), true); 15647 }), true);
15613 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.FloodlightActivityGroup response) { 15648 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.FloodlightActivityGroup response) {
15614 checkFloodlightActivityGroup(response); 15649 checkFloodlightActivityGroup(response);
15615 }))); 15650 })));
15616 }); 15651 });
15617 15652
15618 unittest.test("method--update", () { 15653 unittest.test("method--update", () {
15619 15654
15620 var mock = new common_test.HttpServerMock(); 15655 var mock = new HttpServerMock();
15621 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups; 15656 api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock ).floodlightActivityGroups;
15622 var arg_request = buildFloodlightActivityGroup(); 15657 var arg_request = buildFloodlightActivityGroup();
15623 var arg_profileId = "foo"; 15658 var arg_profileId = "foo";
15624 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15659 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15625 var obj = new api.FloodlightActivityGroup.fromJson(json); 15660 var obj = new api.FloodlightActivityGroup.fromJson(json);
15626 checkFloodlightActivityGroup(obj); 15661 checkFloodlightActivityGroup(obj);
15627 15662
15628 var path = (req.url).path; 15663 var path = (req.url).path;
15629 var pathOffset = 0; 15664 var pathOffset = 0;
15630 var index; 15665 var index;
(...skipping 27 matching lines...) Expand all
15658 var keyvalue = part.split("="); 15693 var keyvalue = part.split("=");
15659 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15694 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15660 } 15695 }
15661 } 15696 }
15662 15697
15663 15698
15664 var h = { 15699 var h = {
15665 "content-type" : "application/json; charset=utf-8", 15700 "content-type" : "application/json; charset=utf-8",
15666 }; 15701 };
15667 var resp = convert.JSON.encode(buildFloodlightActivityGroup()); 15702 var resp = convert.JSON.encode(buildFloodlightActivityGroup());
15668 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15703 return new async.Future.value(stringResponse(200, h, resp));
15669 }), true); 15704 }), true);
15670 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightActivityGroup response) { 15705 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightActivityGroup response) {
15671 checkFloodlightActivityGroup(response); 15706 checkFloodlightActivityGroup(response);
15672 }))); 15707 })));
15673 }); 15708 });
15674 15709
15675 }); 15710 });
15676 15711
15677 15712
15678 unittest.group("resource-FloodlightConfigurationsResourceApi", () { 15713 unittest.group("resource-FloodlightConfigurationsResourceApi", () {
15679 unittest.test("method--get", () { 15714 unittest.test("method--get", () {
15680 15715
15681 var mock = new common_test.HttpServerMock(); 15716 var mock = new HttpServerMock();
15682 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock ).floodlightConfigurations; 15717 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock ).floodlightConfigurations;
15683 var arg_profileId = "foo"; 15718 var arg_profileId = "foo";
15684 var arg_id = "foo"; 15719 var arg_id = "foo";
15685 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15720 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15686 var path = (req.url).path; 15721 var path = (req.url).path;
15687 var pathOffset = 0; 15722 var pathOffset = 0;
15688 var index; 15723 var index;
15689 var subPart; 15724 var subPart;
15690 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 15725 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
15691 pathOffset += 1; 15726 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
15719 var keyvalue = part.split("="); 15754 var keyvalue = part.split("=");
15720 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15755 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15721 } 15756 }
15722 } 15757 }
15723 15758
15724 15759
15725 var h = { 15760 var h = {
15726 "content-type" : "application/json; charset=utf-8", 15761 "content-type" : "application/json; charset=utf-8",
15727 }; 15762 };
15728 var resp = convert.JSON.encode(buildFloodlightConfiguration()); 15763 var resp = convert.JSON.encode(buildFloodlightConfiguration());
15729 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15764 return new async.Future.value(stringResponse(200, h, resp));
15730 }), true); 15765 }), true);
15731 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightC onfiguration response) { 15766 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.FloodlightC onfiguration response) {
15732 checkFloodlightConfiguration(response); 15767 checkFloodlightConfiguration(response);
15733 }))); 15768 })));
15734 }); 15769 });
15735 15770
15736 unittest.test("method--list", () { 15771 unittest.test("method--list", () {
15737 15772
15738 var mock = new common_test.HttpServerMock(); 15773 var mock = new HttpServerMock();
15739 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock ).floodlightConfigurations; 15774 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock ).floodlightConfigurations;
15740 var arg_profileId = "foo"; 15775 var arg_profileId = "foo";
15741 var arg_ids = buildUnnamed489(); 15776 var arg_ids = buildUnnamed902();
15742 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15777 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15743 var path = (req.url).path; 15778 var path = (req.url).path;
15744 var pathOffset = 0; 15779 var pathOffset = 0;
15745 var index; 15780 var index;
15746 var subPart; 15781 var subPart;
15747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 15782 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
15748 pathOffset += 1; 15783 pathOffset += 1;
15749 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 15784 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
15750 pathOffset += 18; 15785 pathOffset += 18;
15751 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/")); 15786 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/"));
(...skipping 22 matching lines...) Expand all
15774 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15809 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15775 } 15810 }
15776 } 15811 }
15777 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); 15812 unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
15778 15813
15779 15814
15780 var h = { 15815 var h = {
15781 "content-type" : "application/json; charset=utf-8", 15816 "content-type" : "application/json; charset=utf-8",
15782 }; 15817 };
15783 var resp = convert.JSON.encode(buildFloodlightConfigurationsListResponse ()); 15818 var resp = convert.JSON.encode(buildFloodlightConfigurationsListResponse ());
15784 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15819 return new async.Future.value(stringResponse(200, h, resp));
15785 }), true); 15820 }), true);
15786 res.list(arg_profileId, ids: arg_ids).then(unittest.expectAsync(((api.Floo dlightConfigurationsListResponse response) { 15821 res.list(arg_profileId, ids: arg_ids).then(unittest.expectAsync(((api.Floo dlightConfigurationsListResponse response) {
15787 checkFloodlightConfigurationsListResponse(response); 15822 checkFloodlightConfigurationsListResponse(response);
15788 }))); 15823 })));
15789 }); 15824 });
15790 15825
15791 unittest.test("method--patch", () { 15826 unittest.test("method--patch", () {
15792 15827
15793 var mock = new common_test.HttpServerMock(); 15828 var mock = new HttpServerMock();
15794 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock ).floodlightConfigurations; 15829 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock ).floodlightConfigurations;
15795 var arg_request = buildFloodlightConfiguration(); 15830 var arg_request = buildFloodlightConfiguration();
15796 var arg_profileId = "foo"; 15831 var arg_profileId = "foo";
15797 var arg_id = "foo"; 15832 var arg_id = "foo";
15798 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15833 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15799 var obj = new api.FloodlightConfiguration.fromJson(json); 15834 var obj = new api.FloodlightConfiguration.fromJson(json);
15800 checkFloodlightConfiguration(obj); 15835 checkFloodlightConfiguration(obj);
15801 15836
15802 var path = (req.url).path; 15837 var path = (req.url).path;
15803 var pathOffset = 0; 15838 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
15833 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15868 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15834 } 15869 }
15835 } 15870 }
15836 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 15871 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
15837 15872
15838 15873
15839 var h = { 15874 var h = {
15840 "content-type" : "application/json; charset=utf-8", 15875 "content-type" : "application/json; charset=utf-8",
15841 }; 15876 };
15842 var resp = convert.JSON.encode(buildFloodlightConfiguration()); 15877 var resp = convert.JSON.encode(buildFloodlightConfiguration());
15843 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15878 return new async.Future.value(stringResponse(200, h, resp));
15844 }), true); 15879 }), true);
15845 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.FloodlightConfiguration response) { 15880 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.FloodlightConfiguration response) {
15846 checkFloodlightConfiguration(response); 15881 checkFloodlightConfiguration(response);
15847 }))); 15882 })));
15848 }); 15883 });
15849 15884
15850 unittest.test("method--update", () { 15885 unittest.test("method--update", () {
15851 15886
15852 var mock = new common_test.HttpServerMock(); 15887 var mock = new HttpServerMock();
15853 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock ).floodlightConfigurations; 15888 api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock ).floodlightConfigurations;
15854 var arg_request = buildFloodlightConfiguration(); 15889 var arg_request = buildFloodlightConfiguration();
15855 var arg_profileId = "foo"; 15890 var arg_profileId = "foo";
15856 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15891 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15857 var obj = new api.FloodlightConfiguration.fromJson(json); 15892 var obj = new api.FloodlightConfiguration.fromJson(json);
15858 checkFloodlightConfiguration(obj); 15893 checkFloodlightConfiguration(obj);
15859 15894
15860 var path = (req.url).path; 15895 var path = (req.url).path;
15861 var pathOffset = 0; 15896 var pathOffset = 0;
15862 var index; 15897 var index;
(...skipping 27 matching lines...) Expand all
15890 var keyvalue = part.split("="); 15925 var keyvalue = part.split("=");
15891 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15926 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15892 } 15927 }
15893 } 15928 }
15894 15929
15895 15930
15896 var h = { 15931 var h = {
15897 "content-type" : "application/json; charset=utf-8", 15932 "content-type" : "application/json; charset=utf-8",
15898 }; 15933 };
15899 var resp = convert.JSON.encode(buildFloodlightConfiguration()); 15934 var resp = convert.JSON.encode(buildFloodlightConfiguration());
15900 return new async.Future.value(common_test.stringResponse(200, h, resp)); 15935 return new async.Future.value(stringResponse(200, h, resp));
15901 }), true); 15936 }), true);
15902 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightConfiguration response) { 15937 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Flo odlightConfiguration response) {
15903 checkFloodlightConfiguration(response); 15938 checkFloodlightConfiguration(response);
15904 }))); 15939 })));
15905 }); 15940 });
15906 15941
15907 }); 15942 });
15908 15943
15909 15944
15910 unittest.group("resource-LandingPagesResourceApi", () { 15945 unittest.group("resource-LandingPagesResourceApi", () {
15911 unittest.test("method--delete", () { 15946 unittest.test("method--delete", () {
15912 15947
15913 var mock = new common_test.HttpServerMock(); 15948 var mock = new HttpServerMock();
15914 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es; 15949 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es;
15915 var arg_profileId = "foo"; 15950 var arg_profileId = "foo";
15916 var arg_campaignId = "foo"; 15951 var arg_campaignId = "foo";
15917 var arg_id = "foo"; 15952 var arg_id = "foo";
15918 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 15953 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15919 var path = (req.url).path; 15954 var path = (req.url).path;
15920 var pathOffset = 0; 15955 var pathOffset = 0;
15921 var index; 15956 var index;
15922 var subPart; 15957 var subPart;
15923 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 15958 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
15959 var keyvalue = part.split("="); 15994 var keyvalue = part.split("=");
15960 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 15995 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
15961 } 15996 }
15962 } 15997 }
15963 15998
15964 15999
15965 var h = { 16000 var h = {
15966 "content-type" : "application/json; charset=utf-8", 16001 "content-type" : "application/json; charset=utf-8",
15967 }; 16002 };
15968 var resp = ""; 16003 var resp = "";
15969 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16004 return new async.Future.value(stringResponse(200, h, resp));
15970 }), true); 16005 }), true);
15971 res.delete(arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsyn c((_) {})); 16006 res.delete(arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsyn c((_) {}));
15972 }); 16007 });
15973 16008
15974 unittest.test("method--get", () { 16009 unittest.test("method--get", () {
15975 16010
15976 var mock = new common_test.HttpServerMock(); 16011 var mock = new HttpServerMock();
15977 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es; 16012 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es;
15978 var arg_profileId = "foo"; 16013 var arg_profileId = "foo";
15979 var arg_campaignId = "foo"; 16014 var arg_campaignId = "foo";
15980 var arg_id = "foo"; 16015 var arg_id = "foo";
15981 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16016 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
15982 var path = (req.url).path; 16017 var path = (req.url).path;
15983 var pathOffset = 0; 16018 var pathOffset = 0;
15984 var index; 16019 var index;
15985 var subPart; 16020 var subPart;
15986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
16022 var keyvalue = part.split("="); 16057 var keyvalue = part.split("=");
16023 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16058 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16024 } 16059 }
16025 } 16060 }
16026 16061
16027 16062
16028 var h = { 16063 var h = {
16029 "content-type" : "application/json; charset=utf-8", 16064 "content-type" : "application/json; charset=utf-8",
16030 }; 16065 };
16031 var resp = convert.JSON.encode(buildLandingPage()); 16066 var resp = convert.JSON.encode(buildLandingPage());
16032 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16067 return new async.Future.value(stringResponse(200, h, resp));
16033 }), true); 16068 }), true);
16034 res.get(arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsync(( (api.LandingPage response) { 16069 res.get(arg_profileId, arg_campaignId, arg_id).then(unittest.expectAsync(( (api.LandingPage response) {
16035 checkLandingPage(response); 16070 checkLandingPage(response);
16036 }))); 16071 })));
16037 }); 16072 });
16038 16073
16039 unittest.test("method--insert", () { 16074 unittest.test("method--insert", () {
16040 16075
16041 var mock = new common_test.HttpServerMock(); 16076 var mock = new HttpServerMock();
16042 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es; 16077 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es;
16043 var arg_request = buildLandingPage(); 16078 var arg_request = buildLandingPage();
16044 var arg_profileId = "foo"; 16079 var arg_profileId = "foo";
16045 var arg_campaignId = "foo"; 16080 var arg_campaignId = "foo";
16046 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16081 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16047 var obj = new api.LandingPage.fromJson(json); 16082 var obj = new api.LandingPage.fromJson(json);
16048 checkLandingPage(obj); 16083 checkLandingPage(obj);
16049 16084
16050 var path = (req.url).path; 16085 var path = (req.url).path;
16051 var pathOffset = 0; 16086 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
16087 var keyvalue = part.split("="); 16122 var keyvalue = part.split("=");
16088 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16123 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16089 } 16124 }
16090 } 16125 }
16091 16126
16092 16127
16093 var h = { 16128 var h = {
16094 "content-type" : "application/json; charset=utf-8", 16129 "content-type" : "application/json; charset=utf-8",
16095 }; 16130 };
16096 var resp = convert.JSON.encode(buildLandingPage()); 16131 var resp = convert.JSON.encode(buildLandingPage());
16097 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16132 return new async.Future.value(stringResponse(200, h, resp));
16098 }), true); 16133 }), true);
16099 res.insert(arg_request, arg_profileId, arg_campaignId).then(unittest.expec tAsync(((api.LandingPage response) { 16134 res.insert(arg_request, arg_profileId, arg_campaignId).then(unittest.expec tAsync(((api.LandingPage response) {
16100 checkLandingPage(response); 16135 checkLandingPage(response);
16101 }))); 16136 })));
16102 }); 16137 });
16103 16138
16104 unittest.test("method--list", () { 16139 unittest.test("method--list", () {
16105 16140
16106 var mock = new common_test.HttpServerMock(); 16141 var mock = new HttpServerMock();
16107 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es; 16142 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es;
16108 var arg_profileId = "foo"; 16143 var arg_profileId = "foo";
16109 var arg_campaignId = "foo"; 16144 var arg_campaignId = "foo";
16110 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16145 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16111 var path = (req.url).path; 16146 var path = (req.url).path;
16112 var pathOffset = 0; 16147 var pathOffset = 0;
16113 var index; 16148 var index;
16114 var subPart; 16149 var subPart;
16115 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16150 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16116 pathOffset += 1; 16151 pathOffset += 1;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
16148 var keyvalue = part.split("="); 16183 var keyvalue = part.split("=");
16149 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16184 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16150 } 16185 }
16151 } 16186 }
16152 16187
16153 16188
16154 var h = { 16189 var h = {
16155 "content-type" : "application/json; charset=utf-8", 16190 "content-type" : "application/json; charset=utf-8",
16156 }; 16191 };
16157 var resp = convert.JSON.encode(buildLandingPagesListResponse()); 16192 var resp = convert.JSON.encode(buildLandingPagesListResponse());
16158 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16193 return new async.Future.value(stringResponse(200, h, resp));
16159 }), true); 16194 }), true);
16160 res.list(arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.La ndingPagesListResponse response) { 16195 res.list(arg_profileId, arg_campaignId).then(unittest.expectAsync(((api.La ndingPagesListResponse response) {
16161 checkLandingPagesListResponse(response); 16196 checkLandingPagesListResponse(response);
16162 }))); 16197 })));
16163 }); 16198 });
16164 16199
16165 unittest.test("method--patch", () { 16200 unittest.test("method--patch", () {
16166 16201
16167 var mock = new common_test.HttpServerMock(); 16202 var mock = new HttpServerMock();
16168 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es; 16203 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es;
16169 var arg_request = buildLandingPage(); 16204 var arg_request = buildLandingPage();
16170 var arg_profileId = "foo"; 16205 var arg_profileId = "foo";
16171 var arg_campaignId = "foo"; 16206 var arg_campaignId = "foo";
16172 var arg_id = "foo"; 16207 var arg_id = "foo";
16173 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16208 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16174 var obj = new api.LandingPage.fromJson(json); 16209 var obj = new api.LandingPage.fromJson(json);
16175 checkLandingPage(obj); 16210 checkLandingPage(obj);
16176 16211
16177 var path = (req.url).path; 16212 var path = (req.url).path;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
16215 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16250 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16216 } 16251 }
16217 } 16252 }
16218 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 16253 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
16219 16254
16220 16255
16221 var h = { 16256 var h = {
16222 "content-type" : "application/json; charset=utf-8", 16257 "content-type" : "application/json; charset=utf-8",
16223 }; 16258 };
16224 var resp = convert.JSON.encode(buildLandingPage()); 16259 var resp = convert.JSON.encode(buildLandingPage());
16225 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16260 return new async.Future.value(stringResponse(200, h, resp));
16226 }), true); 16261 }), true);
16227 res.patch(arg_request, arg_profileId, arg_campaignId, arg_id).then(unittes t.expectAsync(((api.LandingPage response) { 16262 res.patch(arg_request, arg_profileId, arg_campaignId, arg_id).then(unittes t.expectAsync(((api.LandingPage response) {
16228 checkLandingPage(response); 16263 checkLandingPage(response);
16229 }))); 16264 })));
16230 }); 16265 });
16231 16266
16232 unittest.test("method--update", () { 16267 unittest.test("method--update", () {
16233 16268
16234 var mock = new common_test.HttpServerMock(); 16269 var mock = new HttpServerMock();
16235 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es; 16270 api.LandingPagesResourceApi res = new api.DfareportingApi(mock).landingPag es;
16236 var arg_request = buildLandingPage(); 16271 var arg_request = buildLandingPage();
16237 var arg_profileId = "foo"; 16272 var arg_profileId = "foo";
16238 var arg_campaignId = "foo"; 16273 var arg_campaignId = "foo";
16239 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16274 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16240 var obj = new api.LandingPage.fromJson(json); 16275 var obj = new api.LandingPage.fromJson(json);
16241 checkLandingPage(obj); 16276 checkLandingPage(obj);
16242 16277
16243 var path = (req.url).path; 16278 var path = (req.url).path;
16244 var pathOffset = 0; 16279 var pathOffset = 0;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
16280 var keyvalue = part.split("="); 16315 var keyvalue = part.split("=");
16281 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16316 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16282 } 16317 }
16283 } 16318 }
16284 16319
16285 16320
16286 var h = { 16321 var h = {
16287 "content-type" : "application/json; charset=utf-8", 16322 "content-type" : "application/json; charset=utf-8",
16288 }; 16323 };
16289 var resp = convert.JSON.encode(buildLandingPage()); 16324 var resp = convert.JSON.encode(buildLandingPage());
16290 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16325 return new async.Future.value(stringResponse(200, h, resp));
16291 }), true); 16326 }), true);
16292 res.update(arg_request, arg_profileId, arg_campaignId).then(unittest.expec tAsync(((api.LandingPage response) { 16327 res.update(arg_request, arg_profileId, arg_campaignId).then(unittest.expec tAsync(((api.LandingPage response) {
16293 checkLandingPage(response); 16328 checkLandingPage(response);
16294 }))); 16329 })));
16295 }); 16330 });
16296 16331
16297 }); 16332 });
16298 16333
16299 16334
16300 unittest.group("resource-MetrosResourceApi", () { 16335 unittest.group("resource-MetrosResourceApi", () {
16301 unittest.test("method--list", () { 16336 unittest.test("method--list", () {
16302 16337
16303 var mock = new common_test.HttpServerMock(); 16338 var mock = new HttpServerMock();
16304 api.MetrosResourceApi res = new api.DfareportingApi(mock).metros; 16339 api.MetrosResourceApi res = new api.DfareportingApi(mock).metros;
16305 var arg_profileId = "foo"; 16340 var arg_profileId = "foo";
16306 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16341 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16307 var path = (req.url).path; 16342 var path = (req.url).path;
16308 var pathOffset = 0; 16343 var pathOffset = 0;
16309 var index; 16344 var index;
16310 var subPart; 16345 var subPart;
16311 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16346 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16312 pathOffset += 1; 16347 pathOffset += 1;
16313 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 16348 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
16337 var keyvalue = part.split("="); 16372 var keyvalue = part.split("=");
16338 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16373 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16339 } 16374 }
16340 } 16375 }
16341 16376
16342 16377
16343 var h = { 16378 var h = {
16344 "content-type" : "application/json; charset=utf-8", 16379 "content-type" : "application/json; charset=utf-8",
16345 }; 16380 };
16346 var resp = convert.JSON.encode(buildMetrosListResponse()); 16381 var resp = convert.JSON.encode(buildMetrosListResponse());
16347 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16382 return new async.Future.value(stringResponse(200, h, resp));
16348 }), true); 16383 }), true);
16349 res.list(arg_profileId).then(unittest.expectAsync(((api.MetrosListResponse response) { 16384 res.list(arg_profileId).then(unittest.expectAsync(((api.MetrosListResponse response) {
16350 checkMetrosListResponse(response); 16385 checkMetrosListResponse(response);
16351 }))); 16386 })));
16352 }); 16387 });
16353 16388
16354 }); 16389 });
16355 16390
16356 16391
16357 unittest.group("resource-MobileCarriersResourceApi", () { 16392 unittest.group("resource-MobileCarriersResourceApi", () {
16358 unittest.test("method--list", () { 16393 unittest.test("method--list", () {
16359 16394
16360 var mock = new common_test.HttpServerMock(); 16395 var mock = new HttpServerMock();
16361 api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCa rriers; 16396 api.MobileCarriersResourceApi res = new api.DfareportingApi(mock).mobileCa rriers;
16362 var arg_profileId = "foo"; 16397 var arg_profileId = "foo";
16363 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16398 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16364 var path = (req.url).path; 16399 var path = (req.url).path;
16365 var pathOffset = 0; 16400 var pathOffset = 0;
16366 var index; 16401 var index;
16367 var subPart; 16402 var subPart;
16368 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16403 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16369 pathOffset += 1; 16404 pathOffset += 1;
16370 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 16405 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
16394 var keyvalue = part.split("="); 16429 var keyvalue = part.split("=");
16395 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16430 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16396 } 16431 }
16397 } 16432 }
16398 16433
16399 16434
16400 var h = { 16435 var h = {
16401 "content-type" : "application/json; charset=utf-8", 16436 "content-type" : "application/json; charset=utf-8",
16402 }; 16437 };
16403 var resp = convert.JSON.encode(buildMobileCarriersListResponse()); 16438 var resp = convert.JSON.encode(buildMobileCarriersListResponse());
16404 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16439 return new async.Future.value(stringResponse(200, h, resp));
16405 }), true); 16440 }), true);
16406 res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersList Response response) { 16441 res.list(arg_profileId).then(unittest.expectAsync(((api.MobileCarriersList Response response) {
16407 checkMobileCarriersListResponse(response); 16442 checkMobileCarriersListResponse(response);
16408 }))); 16443 })));
16409 }); 16444 });
16410 16445
16411 }); 16446 });
16412 16447
16413 16448
16414 unittest.group("resource-OperatingSystemVersionsResourceApi", () { 16449 unittest.group("resource-OperatingSystemVersionsResourceApi", () {
16415 unittest.test("method--list", () { 16450 unittest.test("method--list", () {
16416 16451
16417 var mock = new common_test.HttpServerMock(); 16452 var mock = new HttpServerMock();
16418 api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock) .operatingSystemVersions; 16453 api.OperatingSystemVersionsResourceApi res = new api.DfareportingApi(mock) .operatingSystemVersions;
16419 var arg_profileId = "foo"; 16454 var arg_profileId = "foo";
16420 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16455 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16421 var path = (req.url).path; 16456 var path = (req.url).path;
16422 var pathOffset = 0; 16457 var pathOffset = 0;
16423 var index; 16458 var index;
16424 var subPart; 16459 var subPart;
16425 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16460 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16426 pathOffset += 1; 16461 pathOffset += 1;
16427 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 16462 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
16451 var keyvalue = part.split("="); 16486 var keyvalue = part.split("=");
16452 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16487 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16453 } 16488 }
16454 } 16489 }
16455 16490
16456 16491
16457 var h = { 16492 var h = {
16458 "content-type" : "application/json; charset=utf-8", 16493 "content-type" : "application/json; charset=utf-8",
16459 }; 16494 };
16460 var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse( )); 16495 var resp = convert.JSON.encode(buildOperatingSystemVersionsListResponse( ));
16461 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16496 return new async.Future.value(stringResponse(200, h, resp));
16462 }), true); 16497 }), true);
16463 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVer sionsListResponse response) { 16498 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemVer sionsListResponse response) {
16464 checkOperatingSystemVersionsListResponse(response); 16499 checkOperatingSystemVersionsListResponse(response);
16465 }))); 16500 })));
16466 }); 16501 });
16467 16502
16468 }); 16503 });
16469 16504
16470 16505
16471 unittest.group("resource-OperatingSystemsResourceApi", () { 16506 unittest.group("resource-OperatingSystemsResourceApi", () {
16472 unittest.test("method--list", () { 16507 unittest.test("method--list", () {
16473 16508
16474 var mock = new common_test.HttpServerMock(); 16509 var mock = new HttpServerMock();
16475 api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operat ingSystems; 16510 api.OperatingSystemsResourceApi res = new api.DfareportingApi(mock).operat ingSystems;
16476 var arg_profileId = "foo"; 16511 var arg_profileId = "foo";
16477 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16512 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16478 var path = (req.url).path; 16513 var path = (req.url).path;
16479 var pathOffset = 0; 16514 var pathOffset = 0;
16480 var index; 16515 var index;
16481 var subPart; 16516 var subPart;
16482 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16517 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16483 pathOffset += 1; 16518 pathOffset += 1;
16484 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 16519 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
16508 var keyvalue = part.split("="); 16543 var keyvalue = part.split("=");
16509 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16544 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16510 } 16545 }
16511 } 16546 }
16512 16547
16513 16548
16514 var h = { 16549 var h = {
16515 "content-type" : "application/json; charset=utf-8", 16550 "content-type" : "application/json; charset=utf-8",
16516 }; 16551 };
16517 var resp = convert.JSON.encode(buildOperatingSystemsListResponse()); 16552 var resp = convert.JSON.encode(buildOperatingSystemsListResponse());
16518 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16553 return new async.Future.value(stringResponse(200, h, resp));
16519 }), true); 16554 }), true);
16520 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsLi stResponse response) { 16555 res.list(arg_profileId).then(unittest.expectAsync(((api.OperatingSystemsLi stResponse response) {
16521 checkOperatingSystemsListResponse(response); 16556 checkOperatingSystemsListResponse(response);
16522 }))); 16557 })));
16523 }); 16558 });
16524 16559
16525 }); 16560 });
16526 16561
16527 16562
16528 unittest.group("resource-PlacementGroupsResourceApi", () { 16563 unittest.group("resource-PlacementGroupsResourceApi", () {
16529 unittest.test("method--get", () { 16564 unittest.test("method--get", () {
16530 16565
16531 var mock = new common_test.HttpServerMock(); 16566 var mock = new HttpServerMock();
16532 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups; 16567 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups;
16533 var arg_profileId = "foo"; 16568 var arg_profileId = "foo";
16534 var arg_id = "foo"; 16569 var arg_id = "foo";
16535 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16570 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16536 var path = (req.url).path; 16571 var path = (req.url).path;
16537 var pathOffset = 0; 16572 var pathOffset = 0;
16538 var index; 16573 var index;
16539 var subPart; 16574 var subPart;
16540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16575 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16541 pathOffset += 1; 16576 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
16569 var keyvalue = part.split("="); 16604 var keyvalue = part.split("=");
16570 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16605 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16571 } 16606 }
16572 } 16607 }
16573 16608
16574 16609
16575 var h = { 16610 var h = {
16576 "content-type" : "application/json; charset=utf-8", 16611 "content-type" : "application/json; charset=utf-8",
16577 }; 16612 };
16578 var resp = convert.JSON.encode(buildPlacementGroup()); 16613 var resp = convert.JSON.encode(buildPlacementGroup());
16579 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16614 return new async.Future.value(stringResponse(200, h, resp));
16580 }), true); 16615 }), true);
16581 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGr oup response) { 16616 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementGr oup response) {
16582 checkPlacementGroup(response); 16617 checkPlacementGroup(response);
16583 }))); 16618 })));
16584 }); 16619 });
16585 16620
16586 unittest.test("method--insert", () { 16621 unittest.test("method--insert", () {
16587 16622
16588 var mock = new common_test.HttpServerMock(); 16623 var mock = new HttpServerMock();
16589 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups; 16624 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups;
16590 var arg_request = buildPlacementGroup(); 16625 var arg_request = buildPlacementGroup();
16591 var arg_profileId = "foo"; 16626 var arg_profileId = "foo";
16592 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16627 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16593 var obj = new api.PlacementGroup.fromJson(json); 16628 var obj = new api.PlacementGroup.fromJson(json);
16594 checkPlacementGroup(obj); 16629 checkPlacementGroup(obj);
16595 16630
16596 var path = (req.url).path; 16631 var path = (req.url).path;
16597 var pathOffset = 0; 16632 var pathOffset = 0;
16598 var index; 16633 var index;
(...skipping 27 matching lines...) Expand all
16626 var keyvalue = part.split("="); 16661 var keyvalue = part.split("=");
16627 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16662 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16628 } 16663 }
16629 } 16664 }
16630 16665
16631 16666
16632 var h = { 16667 var h = {
16633 "content-type" : "application/json; charset=utf-8", 16668 "content-type" : "application/json; charset=utf-8",
16634 }; 16669 };
16635 var resp = convert.JSON.encode(buildPlacementGroup()); 16670 var resp = convert.JSON.encode(buildPlacementGroup());
16636 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16671 return new async.Future.value(stringResponse(200, h, resp));
16637 }), true); 16672 }), true);
16638 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cementGroup response) { 16673 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cementGroup response) {
16639 checkPlacementGroup(response); 16674 checkPlacementGroup(response);
16640 }))); 16675 })));
16641 }); 16676 });
16642 16677
16643 unittest.test("method--list", () { 16678 unittest.test("method--list", () {
16644 16679
16645 var mock = new common_test.HttpServerMock(); 16680 var mock = new HttpServerMock();
16646 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups; 16681 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups;
16647 var arg_profileId = "foo"; 16682 var arg_profileId = "foo";
16648 var arg_advertiserIds = buildUnnamed490(); 16683 var arg_advertiserIds = buildUnnamed903();
16649 var arg_archived = true; 16684 var arg_archived = true;
16650 var arg_campaignIds = buildUnnamed491(); 16685 var arg_campaignIds = buildUnnamed904();
16651 var arg_contentCategoryIds = buildUnnamed492(); 16686 var arg_contentCategoryIds = buildUnnamed905();
16652 var arg_directorySiteIds = buildUnnamed493(); 16687 var arg_directorySiteIds = buildUnnamed906();
16653 var arg_ids = buildUnnamed494(); 16688 var arg_ids = buildUnnamed907();
16654 var arg_maxResults = 42; 16689 var arg_maxResults = 42;
16655 var arg_pageToken = "foo"; 16690 var arg_pageToken = "foo";
16656 var arg_placementGroupType = "foo"; 16691 var arg_placementGroupType = "foo";
16657 var arg_placementStrategyIds = buildUnnamed495(); 16692 var arg_placementStrategyIds = buildUnnamed908();
16658 var arg_pricingTypes = buildUnnamed496(); 16693 var arg_pricingTypes = buildUnnamed909();
16659 var arg_searchString = "foo"; 16694 var arg_searchString = "foo";
16660 var arg_siteIds = buildUnnamed497(); 16695 var arg_siteIds = buildUnnamed910();
16661 var arg_sortField = "foo"; 16696 var arg_sortField = "foo";
16662 var arg_sortOrder = "foo"; 16697 var arg_sortOrder = "foo";
16663 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16698 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16664 var path = (req.url).path; 16699 var path = (req.url).path;
16665 var pathOffset = 0; 16700 var pathOffset = 0;
16666 var index; 16701 var index;
16667 var subPart; 16702 var subPart;
16668 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16703 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16669 pathOffset += 1; 16704 pathOffset += 1;
16670 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 16705 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
16709 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 16744 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
16710 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); 16745 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds));
16711 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 16746 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
16712 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 16747 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
16713 16748
16714 16749
16715 var h = { 16750 var h = {
16716 "content-type" : "application/json; charset=utf-8", 16751 "content-type" : "application/json; charset=utf-8",
16717 }; 16752 };
16718 var resp = convert.JSON.encode(buildPlacementGroupsListResponse()); 16753 var resp = convert.JSON.encode(buildPlacementGroupsListResponse());
16719 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16754 return new async.Future.value(stringResponse(200, h, resp));
16720 }), true); 16755 }), true);
16721 res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_ar chived, campaignIds: arg_campaignIds, contentCategoryIds: arg_contentCategoryIds , directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResul ts, pageToken: arg_pageToken, placementGroupType: arg_placementGroupType, placem entStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, search String: arg_searchString, siteIds: arg_siteIds, sortField: arg_sortField, sortOr der: arg_sortOrder).then(unittest.expectAsync(((api.PlacementGroupsListResponse response) { 16756 res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_ar chived, campaignIds: arg_campaignIds, contentCategoryIds: arg_contentCategoryIds , directorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResul ts, pageToken: arg_pageToken, placementGroupType: arg_placementGroupType, placem entStrategyIds: arg_placementStrategyIds, pricingTypes: arg_pricingTypes, search String: arg_searchString, siteIds: arg_siteIds, sortField: arg_sortField, sortOr der: arg_sortOrder).then(unittest.expectAsync(((api.PlacementGroupsListResponse response) {
16722 checkPlacementGroupsListResponse(response); 16757 checkPlacementGroupsListResponse(response);
16723 }))); 16758 })));
16724 }); 16759 });
16725 16760
16726 unittest.test("method--patch", () { 16761 unittest.test("method--patch", () {
16727 16762
16728 var mock = new common_test.HttpServerMock(); 16763 var mock = new HttpServerMock();
16729 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups; 16764 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups;
16730 var arg_request = buildPlacementGroup(); 16765 var arg_request = buildPlacementGroup();
16731 var arg_profileId = "foo"; 16766 var arg_profileId = "foo";
16732 var arg_id = "foo"; 16767 var arg_id = "foo";
16733 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16768 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16734 var obj = new api.PlacementGroup.fromJson(json); 16769 var obj = new api.PlacementGroup.fromJson(json);
16735 checkPlacementGroup(obj); 16770 checkPlacementGroup(obj);
16736 16771
16737 var path = (req.url).path; 16772 var path = (req.url).path;
16738 var pathOffset = 0; 16773 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
16768 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16803 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16769 } 16804 }
16770 } 16805 }
16771 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 16806 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
16772 16807
16773 16808
16774 var h = { 16809 var h = {
16775 "content-type" : "application/json; charset=utf-8", 16810 "content-type" : "application/json; charset=utf-8",
16776 }; 16811 };
16777 var resp = convert.JSON.encode(buildPlacementGroup()); 16812 var resp = convert.JSON.encode(buildPlacementGroup());
16778 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16813 return new async.Future.value(stringResponse(200, h, resp));
16779 }), true); 16814 }), true);
16780 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.PlacementGroup response) { 16815 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.PlacementGroup response) {
16781 checkPlacementGroup(response); 16816 checkPlacementGroup(response);
16782 }))); 16817 })));
16783 }); 16818 });
16784 16819
16785 unittest.test("method--update", () { 16820 unittest.test("method--update", () {
16786 16821
16787 var mock = new common_test.HttpServerMock(); 16822 var mock = new HttpServerMock();
16788 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups; 16823 api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placeme ntGroups;
16789 var arg_request = buildPlacementGroup(); 16824 var arg_request = buildPlacementGroup();
16790 var arg_profileId = "foo"; 16825 var arg_profileId = "foo";
16791 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16826 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16792 var obj = new api.PlacementGroup.fromJson(json); 16827 var obj = new api.PlacementGroup.fromJson(json);
16793 checkPlacementGroup(obj); 16828 checkPlacementGroup(obj);
16794 16829
16795 var path = (req.url).path; 16830 var path = (req.url).path;
16796 var pathOffset = 0; 16831 var pathOffset = 0;
16797 var index; 16832 var index;
(...skipping 27 matching lines...) Expand all
16825 var keyvalue = part.split("="); 16860 var keyvalue = part.split("=");
16826 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16861 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16827 } 16862 }
16828 } 16863 }
16829 16864
16830 16865
16831 var h = { 16866 var h = {
16832 "content-type" : "application/json; charset=utf-8", 16867 "content-type" : "application/json; charset=utf-8",
16833 }; 16868 };
16834 var resp = convert.JSON.encode(buildPlacementGroup()); 16869 var resp = convert.JSON.encode(buildPlacementGroup());
16835 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16870 return new async.Future.value(stringResponse(200, h, resp));
16836 }), true); 16871 }), true);
16837 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cementGroup response) { 16872 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cementGroup response) {
16838 checkPlacementGroup(response); 16873 checkPlacementGroup(response);
16839 }))); 16874 })));
16840 }); 16875 });
16841 16876
16842 }); 16877 });
16843 16878
16844 16879
16845 unittest.group("resource-PlacementStrategiesResourceApi", () { 16880 unittest.group("resource-PlacementStrategiesResourceApi", () {
16846 unittest.test("method--delete", () { 16881 unittest.test("method--delete", () {
16847 16882
16848 var mock = new common_test.HttpServerMock(); 16883 var mock = new HttpServerMock();
16849 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies; 16884 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies;
16850 var arg_profileId = "foo"; 16885 var arg_profileId = "foo";
16851 var arg_id = "foo"; 16886 var arg_id = "foo";
16852 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16887 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16853 var path = (req.url).path; 16888 var path = (req.url).path;
16854 var pathOffset = 0; 16889 var pathOffset = 0;
16855 var index; 16890 var index;
16856 var subPart; 16891 var subPart;
16857 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16892 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16858 pathOffset += 1; 16893 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
16886 var keyvalue = part.split("="); 16921 var keyvalue = part.split("=");
16887 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16922 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16888 } 16923 }
16889 } 16924 }
16890 16925
16891 16926
16892 var h = { 16927 var h = {
16893 "content-type" : "application/json; charset=utf-8", 16928 "content-type" : "application/json; charset=utf-8",
16894 }; 16929 };
16895 var resp = ""; 16930 var resp = "";
16896 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16931 return new async.Future.value(stringResponse(200, h, resp));
16897 }), true); 16932 }), true);
16898 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); 16933 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
16899 }); 16934 });
16900 16935
16901 unittest.test("method--get", () { 16936 unittest.test("method--get", () {
16902 16937
16903 var mock = new common_test.HttpServerMock(); 16938 var mock = new HttpServerMock();
16904 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies; 16939 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies;
16905 var arg_profileId = "foo"; 16940 var arg_profileId = "foo";
16906 var arg_id = "foo"; 16941 var arg_id = "foo";
16907 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16942 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16908 var path = (req.url).path; 16943 var path = (req.url).path;
16909 var pathOffset = 0; 16944 var pathOffset = 0;
16910 var index; 16945 var index;
16911 var subPart; 16946 var subPart;
16912 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 16947 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
16913 pathOffset += 1; 16948 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
16941 var keyvalue = part.split("="); 16976 var keyvalue = part.split("=");
16942 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 16977 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
16943 } 16978 }
16944 } 16979 }
16945 16980
16946 16981
16947 var h = { 16982 var h = {
16948 "content-type" : "application/json; charset=utf-8", 16983 "content-type" : "application/json; charset=utf-8",
16949 }; 16984 };
16950 var resp = convert.JSON.encode(buildPlacementStrategy()); 16985 var resp = convert.JSON.encode(buildPlacementStrategy());
16951 return new async.Future.value(common_test.stringResponse(200, h, resp)); 16986 return new async.Future.value(stringResponse(200, h, resp));
16952 }), true); 16987 }), true);
16953 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementSt rategy response) { 16988 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.PlacementSt rategy response) {
16954 checkPlacementStrategy(response); 16989 checkPlacementStrategy(response);
16955 }))); 16990 })));
16956 }); 16991 });
16957 16992
16958 unittest.test("method--insert", () { 16993 unittest.test("method--insert", () {
16959 16994
16960 var mock = new common_test.HttpServerMock(); 16995 var mock = new HttpServerMock();
16961 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies; 16996 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies;
16962 var arg_request = buildPlacementStrategy(); 16997 var arg_request = buildPlacementStrategy();
16963 var arg_profileId = "foo"; 16998 var arg_profileId = "foo";
16964 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 16999 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
16965 var obj = new api.PlacementStrategy.fromJson(json); 17000 var obj = new api.PlacementStrategy.fromJson(json);
16966 checkPlacementStrategy(obj); 17001 checkPlacementStrategy(obj);
16967 17002
16968 var path = (req.url).path; 17003 var path = (req.url).path;
16969 var pathOffset = 0; 17004 var pathOffset = 0;
16970 var index; 17005 var index;
(...skipping 27 matching lines...) Expand all
16998 var keyvalue = part.split("="); 17033 var keyvalue = part.split("=");
16999 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17034 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17000 } 17035 }
17001 } 17036 }
17002 17037
17003 17038
17004 var h = { 17039 var h = {
17005 "content-type" : "application/json; charset=utf-8", 17040 "content-type" : "application/json; charset=utf-8",
17006 }; 17041 };
17007 var resp = convert.JSON.encode(buildPlacementStrategy()); 17042 var resp = convert.JSON.encode(buildPlacementStrategy());
17008 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17043 return new async.Future.value(stringResponse(200, h, resp));
17009 }), true); 17044 }), true);
17010 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cementStrategy response) { 17045 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cementStrategy response) {
17011 checkPlacementStrategy(response); 17046 checkPlacementStrategy(response);
17012 }))); 17047 })));
17013 }); 17048 });
17014 17049
17015 unittest.test("method--list", () { 17050 unittest.test("method--list", () {
17016 17051
17017 var mock = new common_test.HttpServerMock(); 17052 var mock = new HttpServerMock();
17018 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies; 17053 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies;
17019 var arg_profileId = "foo"; 17054 var arg_profileId = "foo";
17020 var arg_ids = buildUnnamed498(); 17055 var arg_ids = buildUnnamed911();
17021 var arg_maxResults = 42; 17056 var arg_maxResults = 42;
17022 var arg_pageToken = "foo"; 17057 var arg_pageToken = "foo";
17023 var arg_searchString = "foo"; 17058 var arg_searchString = "foo";
17024 var arg_sortField = "foo"; 17059 var arg_sortField = "foo";
17025 var arg_sortOrder = "foo"; 17060 var arg_sortOrder = "foo";
17026 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17061 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17027 var path = (req.url).path; 17062 var path = (req.url).path;
17028 var pathOffset = 0; 17063 var pathOffset = 0;
17029 var index; 17064 var index;
17030 var subPart; 17065 var subPart;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
17063 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 17098 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
17064 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 17099 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
17065 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 17100 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
17066 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 17101 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
17067 17102
17068 17103
17069 var h = { 17104 var h = {
17070 "content-type" : "application/json; charset=utf-8", 17105 "content-type" : "application/json; charset=utf-8",
17071 }; 17106 };
17072 var resp = convert.JSON.encode(buildPlacementStrategiesListResponse()); 17107 var resp = convert.JSON.encode(buildPlacementStrategiesListResponse());
17073 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17108 return new async.Future.value(stringResponse(200, h, resp));
17074 }), true); 17109 }), true);
17075 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort Order: arg_sortOrder).then(unittest.expectAsync(((api.PlacementStrategiesListRes ponse response) { 17110 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort Order: arg_sortOrder).then(unittest.expectAsync(((api.PlacementStrategiesListRes ponse response) {
17076 checkPlacementStrategiesListResponse(response); 17111 checkPlacementStrategiesListResponse(response);
17077 }))); 17112 })));
17078 }); 17113 });
17079 17114
17080 unittest.test("method--patch", () { 17115 unittest.test("method--patch", () {
17081 17116
17082 var mock = new common_test.HttpServerMock(); 17117 var mock = new HttpServerMock();
17083 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies; 17118 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies;
17084 var arg_request = buildPlacementStrategy(); 17119 var arg_request = buildPlacementStrategy();
17085 var arg_profileId = "foo"; 17120 var arg_profileId = "foo";
17086 var arg_id = "foo"; 17121 var arg_id = "foo";
17087 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17122 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17088 var obj = new api.PlacementStrategy.fromJson(json); 17123 var obj = new api.PlacementStrategy.fromJson(json);
17089 checkPlacementStrategy(obj); 17124 checkPlacementStrategy(obj);
17090 17125
17091 var path = (req.url).path; 17126 var path = (req.url).path;
17092 var pathOffset = 0; 17127 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
17122 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17157 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17123 } 17158 }
17124 } 17159 }
17125 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 17160 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
17126 17161
17127 17162
17128 var h = { 17163 var h = {
17129 "content-type" : "application/json; charset=utf-8", 17164 "content-type" : "application/json; charset=utf-8",
17130 }; 17165 };
17131 var resp = convert.JSON.encode(buildPlacementStrategy()); 17166 var resp = convert.JSON.encode(buildPlacementStrategy());
17132 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17167 return new async.Future.value(stringResponse(200, h, resp));
17133 }), true); 17168 }), true);
17134 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.PlacementStrategy response) { 17169 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.PlacementStrategy response) {
17135 checkPlacementStrategy(response); 17170 checkPlacementStrategy(response);
17136 }))); 17171 })));
17137 }); 17172 });
17138 17173
17139 unittest.test("method--update", () { 17174 unittest.test("method--update", () {
17140 17175
17141 var mock = new common_test.HttpServerMock(); 17176 var mock = new HttpServerMock();
17142 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies; 17177 api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).pla cementStrategies;
17143 var arg_request = buildPlacementStrategy(); 17178 var arg_request = buildPlacementStrategy();
17144 var arg_profileId = "foo"; 17179 var arg_profileId = "foo";
17145 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17180 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17146 var obj = new api.PlacementStrategy.fromJson(json); 17181 var obj = new api.PlacementStrategy.fromJson(json);
17147 checkPlacementStrategy(obj); 17182 checkPlacementStrategy(obj);
17148 17183
17149 var path = (req.url).path; 17184 var path = (req.url).path;
17150 var pathOffset = 0; 17185 var pathOffset = 0;
17151 var index; 17186 var index;
(...skipping 27 matching lines...) Expand all
17179 var keyvalue = part.split("="); 17214 var keyvalue = part.split("=");
17180 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17215 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17181 } 17216 }
17182 } 17217 }
17183 17218
17184 17219
17185 var h = { 17220 var h = {
17186 "content-type" : "application/json; charset=utf-8", 17221 "content-type" : "application/json; charset=utf-8",
17187 }; 17222 };
17188 var resp = convert.JSON.encode(buildPlacementStrategy()); 17223 var resp = convert.JSON.encode(buildPlacementStrategy());
17189 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17224 return new async.Future.value(stringResponse(200, h, resp));
17190 }), true); 17225 }), true);
17191 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cementStrategy response) { 17226 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cementStrategy response) {
17192 checkPlacementStrategy(response); 17227 checkPlacementStrategy(response);
17193 }))); 17228 })));
17194 }); 17229 });
17195 17230
17196 }); 17231 });
17197 17232
17198 17233
17199 unittest.group("resource-PlacementsResourceApi", () { 17234 unittest.group("resource-PlacementsResourceApi", () {
17200 unittest.test("method--generatetags", () { 17235 unittest.test("method--generatetags", () {
17201 17236
17202 var mock = new common_test.HttpServerMock(); 17237 var mock = new HttpServerMock();
17203 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; 17238 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
17204 var arg_profileId = "foo"; 17239 var arg_profileId = "foo";
17205 var arg_campaignId = "foo"; 17240 var arg_campaignId = "foo";
17206 var arg_placementIds = buildUnnamed499(); 17241 var arg_placementIds = buildUnnamed912();
17207 var arg_tagFormats = buildUnnamed500(); 17242 var arg_tagFormats = buildUnnamed913();
17208 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17243 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17209 var path = (req.url).path; 17244 var path = (req.url).path;
17210 var pathOffset = 0; 17245 var pathOffset = 0;
17211 var index; 17246 var index;
17212 var subPart; 17247 var subPart;
17213 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 17248 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
17214 pathOffset += 1; 17249 pathOffset += 1;
17215 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 17250 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
17216 pathOffset += 18; 17251 pathOffset += 18;
17217 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/")); 17252 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/"));
(...skipping 24 matching lines...) Expand all
17242 } 17277 }
17243 unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campai gnId)); 17278 unittest.expect(queryMap["campaignId"].first, unittest.equals(arg_campai gnId));
17244 unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementI ds)); 17279 unittest.expect(queryMap["placementIds"], unittest.equals(arg_placementI ds));
17245 unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats)) ; 17280 unittest.expect(queryMap["tagFormats"], unittest.equals(arg_tagFormats)) ;
17246 17281
17247 17282
17248 var h = { 17283 var h = {
17249 "content-type" : "application/json; charset=utf-8", 17284 "content-type" : "application/json; charset=utf-8",
17250 }; 17285 };
17251 var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse()); 17286 var resp = convert.JSON.encode(buildPlacementsGenerateTagsResponse());
17252 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17287 return new async.Future.value(stringResponse(200, h, resp));
17253 }), true); 17288 }), true);
17254 res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds: arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.Pl acementsGenerateTagsResponse response) { 17289 res.generatetags(arg_profileId, campaignId: arg_campaignId, placementIds: arg_placementIds, tagFormats: arg_tagFormats).then(unittest.expectAsync(((api.Pl acementsGenerateTagsResponse response) {
17255 checkPlacementsGenerateTagsResponse(response); 17290 checkPlacementsGenerateTagsResponse(response);
17256 }))); 17291 })));
17257 }); 17292 });
17258 17293
17259 unittest.test("method--get", () { 17294 unittest.test("method--get", () {
17260 17295
17261 var mock = new common_test.HttpServerMock(); 17296 var mock = new HttpServerMock();
17262 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; 17297 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
17263 var arg_profileId = "foo"; 17298 var arg_profileId = "foo";
17264 var arg_id = "foo"; 17299 var arg_id = "foo";
17265 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17300 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17266 var path = (req.url).path; 17301 var path = (req.url).path;
17267 var pathOffset = 0; 17302 var pathOffset = 0;
17268 var index; 17303 var index;
17269 var subPart; 17304 var subPart;
17270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 17305 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
17271 pathOffset += 1; 17306 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
17299 var keyvalue = part.split("="); 17334 var keyvalue = part.split("=");
17300 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17301 } 17336 }
17302 } 17337 }
17303 17338
17304 17339
17305 var h = { 17340 var h = {
17306 "content-type" : "application/json; charset=utf-8", 17341 "content-type" : "application/json; charset=utf-8",
17307 }; 17342 };
17308 var resp = convert.JSON.encode(buildPlacement()); 17343 var resp = convert.JSON.encode(buildPlacement());
17309 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17344 return new async.Future.value(stringResponse(200, h, resp));
17310 }), true); 17345 }), true);
17311 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement r esponse) { 17346 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Placement r esponse) {
17312 checkPlacement(response); 17347 checkPlacement(response);
17313 }))); 17348 })));
17314 }); 17349 });
17315 17350
17316 unittest.test("method--insert", () { 17351 unittest.test("method--insert", () {
17317 17352
17318 var mock = new common_test.HttpServerMock(); 17353 var mock = new HttpServerMock();
17319 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; 17354 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
17320 var arg_request = buildPlacement(); 17355 var arg_request = buildPlacement();
17321 var arg_profileId = "foo"; 17356 var arg_profileId = "foo";
17322 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17357 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17323 var obj = new api.Placement.fromJson(json); 17358 var obj = new api.Placement.fromJson(json);
17324 checkPlacement(obj); 17359 checkPlacement(obj);
17325 17360
17326 var path = (req.url).path; 17361 var path = (req.url).path;
17327 var pathOffset = 0; 17362 var pathOffset = 0;
17328 var index; 17363 var index;
(...skipping 27 matching lines...) Expand all
17356 var keyvalue = part.split("="); 17391 var keyvalue = part.split("=");
17357 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17392 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17358 } 17393 }
17359 } 17394 }
17360 17395
17361 17396
17362 var h = { 17397 var h = {
17363 "content-type" : "application/json; charset=utf-8", 17398 "content-type" : "application/json; charset=utf-8",
17364 }; 17399 };
17365 var resp = convert.JSON.encode(buildPlacement()); 17400 var resp = convert.JSON.encode(buildPlacement());
17366 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17401 return new async.Future.value(stringResponse(200, h, resp));
17367 }), true); 17402 }), true);
17368 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cement response) { 17403 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cement response) {
17369 checkPlacement(response); 17404 checkPlacement(response);
17370 }))); 17405 })));
17371 }); 17406 });
17372 17407
17373 unittest.test("method--list", () { 17408 unittest.test("method--list", () {
17374 17409
17375 var mock = new common_test.HttpServerMock(); 17410 var mock = new HttpServerMock();
17376 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; 17411 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
17377 var arg_profileId = "foo"; 17412 var arg_profileId = "foo";
17378 var arg_advertiserIds = buildUnnamed501(); 17413 var arg_advertiserIds = buildUnnamed914();
17379 var arg_archived = true; 17414 var arg_archived = true;
17380 var arg_campaignIds = buildUnnamed502(); 17415 var arg_campaignIds = buildUnnamed915();
17381 var arg_compatibilities = buildUnnamed503(); 17416 var arg_compatibilities = buildUnnamed916();
17382 var arg_contentCategoryIds = buildUnnamed504(); 17417 var arg_contentCategoryIds = buildUnnamed917();
17383 var arg_directorySiteIds = buildUnnamed505(); 17418 var arg_directorySiteIds = buildUnnamed918();
17384 var arg_groupIds = buildUnnamed506(); 17419 var arg_groupIds = buildUnnamed919();
17385 var arg_ids = buildUnnamed507(); 17420 var arg_ids = buildUnnamed920();
17386 var arg_maxResults = 42; 17421 var arg_maxResults = 42;
17387 var arg_pageToken = "foo"; 17422 var arg_pageToken = "foo";
17388 var arg_paymentSource = "foo"; 17423 var arg_paymentSource = "foo";
17389 var arg_placementStrategyIds = buildUnnamed508(); 17424 var arg_placementStrategyIds = buildUnnamed921();
17390 var arg_pricingTypes = buildUnnamed509(); 17425 var arg_pricingTypes = buildUnnamed922();
17391 var arg_searchString = "foo"; 17426 var arg_searchString = "foo";
17392 var arg_siteIds = buildUnnamed510(); 17427 var arg_siteIds = buildUnnamed923();
17393 var arg_sizeIds = buildUnnamed511(); 17428 var arg_sizeIds = buildUnnamed924();
17394 var arg_sortField = "foo"; 17429 var arg_sortField = "foo";
17395 var arg_sortOrder = "foo"; 17430 var arg_sortOrder = "foo";
17396 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17431 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17397 var path = (req.url).path; 17432 var path = (req.url).path;
17398 var pathOffset = 0; 17433 var pathOffset = 0;
17399 var index; 17434 var index;
17400 var subPart; 17435 var subPart;
17401 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 17436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
17402 pathOffset += 1; 17437 pathOffset += 1;
17403 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 17438 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
17445 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); 17480 unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds));
17446 unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); 17481 unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds));
17447 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 17482 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
17448 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 17483 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
17449 17484
17450 17485
17451 var h = { 17486 var h = {
17452 "content-type" : "application/json; charset=utf-8", 17487 "content-type" : "application/json; charset=utf-8",
17453 }; 17488 };
17454 var resp = convert.JSON.encode(buildPlacementsListResponse()); 17489 var resp = convert.JSON.encode(buildPlacementsListResponse());
17455 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17490 return new async.Future.value(stringResponse(200, h, resp));
17456 }), true); 17491 }), true);
17457 res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_ar chived, campaignIds: arg_campaignIds, compatibilities: arg_compatibilities, cont entCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, groupIds: arg_groupIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg _pageToken, paymentSource: arg_paymentSource, placementStrategyIds: arg_placemen tStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, si teIds: arg_siteIds, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: a rg_sortOrder).then(unittest.expectAsync(((api.PlacementsListResponse response) { 17492 res.list(arg_profileId, advertiserIds: arg_advertiserIds, archived: arg_ar chived, campaignIds: arg_campaignIds, compatibilities: arg_compatibilities, cont entCategoryIds: arg_contentCategoryIds, directorySiteIds: arg_directorySiteIds, groupIds: arg_groupIds, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg _pageToken, paymentSource: arg_paymentSource, placementStrategyIds: arg_placemen tStrategyIds, pricingTypes: arg_pricingTypes, searchString: arg_searchString, si teIds: arg_siteIds, sizeIds: arg_sizeIds, sortField: arg_sortField, sortOrder: a rg_sortOrder).then(unittest.expectAsync(((api.PlacementsListResponse response) {
17458 checkPlacementsListResponse(response); 17493 checkPlacementsListResponse(response);
17459 }))); 17494 })));
17460 }); 17495 });
17461 17496
17462 unittest.test("method--patch", () { 17497 unittest.test("method--patch", () {
17463 17498
17464 var mock = new common_test.HttpServerMock(); 17499 var mock = new HttpServerMock();
17465 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; 17500 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
17466 var arg_request = buildPlacement(); 17501 var arg_request = buildPlacement();
17467 var arg_profileId = "foo"; 17502 var arg_profileId = "foo";
17468 var arg_id = "foo"; 17503 var arg_id = "foo";
17469 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17504 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17470 var obj = new api.Placement.fromJson(json); 17505 var obj = new api.Placement.fromJson(json);
17471 checkPlacement(obj); 17506 checkPlacement(obj);
17472 17507
17473 var path = (req.url).path; 17508 var path = (req.url).path;
17474 var pathOffset = 0; 17509 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
17504 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17539 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17505 } 17540 }
17506 } 17541 }
17507 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 17542 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
17508 17543
17509 17544
17510 var h = { 17545 var h = {
17511 "content-type" : "application/json; charset=utf-8", 17546 "content-type" : "application/json; charset=utf-8",
17512 }; 17547 };
17513 var resp = convert.JSON.encode(buildPlacement()); 17548 var resp = convert.JSON.encode(buildPlacement());
17514 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17549 return new async.Future.value(stringResponse(200, h, resp));
17515 }), true); 17550 }), true);
17516 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Placement response) { 17551 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Placement response) {
17517 checkPlacement(response); 17552 checkPlacement(response);
17518 }))); 17553 })));
17519 }); 17554 });
17520 17555
17521 unittest.test("method--update", () { 17556 unittest.test("method--update", () {
17522 17557
17523 var mock = new common_test.HttpServerMock(); 17558 var mock = new HttpServerMock();
17524 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; 17559 api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements;
17525 var arg_request = buildPlacement(); 17560 var arg_request = buildPlacement();
17526 var arg_profileId = "foo"; 17561 var arg_profileId = "foo";
17527 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17562 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17528 var obj = new api.Placement.fromJson(json); 17563 var obj = new api.Placement.fromJson(json);
17529 checkPlacement(obj); 17564 checkPlacement(obj);
17530 17565
17531 var path = (req.url).path; 17566 var path = (req.url).path;
17532 var pathOffset = 0; 17567 var pathOffset = 0;
17533 var index; 17568 var index;
(...skipping 27 matching lines...) Expand all
17561 var keyvalue = part.split("="); 17596 var keyvalue = part.split("=");
17562 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17597 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17563 } 17598 }
17564 } 17599 }
17565 17600
17566 17601
17567 var h = { 17602 var h = {
17568 "content-type" : "application/json; charset=utf-8", 17603 "content-type" : "application/json; charset=utf-8",
17569 }; 17604 };
17570 var resp = convert.JSON.encode(buildPlacement()); 17605 var resp = convert.JSON.encode(buildPlacement());
17571 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17606 return new async.Future.value(stringResponse(200, h, resp));
17572 }), true); 17607 }), true);
17573 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cement response) { 17608 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Pla cement response) {
17574 checkPlacement(response); 17609 checkPlacement(response);
17575 }))); 17610 })));
17576 }); 17611 });
17577 17612
17578 }); 17613 });
17579 17614
17580 17615
17581 unittest.group("resource-PlatformTypesResourceApi", () { 17616 unittest.group("resource-PlatformTypesResourceApi", () {
17582 unittest.test("method--list", () { 17617 unittest.test("method--list", () {
17583 17618
17584 var mock = new common_test.HttpServerMock(); 17619 var mock = new HttpServerMock();
17585 api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformT ypes; 17620 api.PlatformTypesResourceApi res = new api.DfareportingApi(mock).platformT ypes;
17586 var arg_profileId = "foo"; 17621 var arg_profileId = "foo";
17587 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17622 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17588 var path = (req.url).path; 17623 var path = (req.url).path;
17589 var pathOffset = 0; 17624 var pathOffset = 0;
17590 var index; 17625 var index;
17591 var subPart; 17626 var subPart;
17592 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 17627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
17593 pathOffset += 1; 17628 pathOffset += 1;
17594 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 17629 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
17618 var keyvalue = part.split("="); 17653 var keyvalue = part.split("=");
17619 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17654 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17620 } 17655 }
17621 } 17656 }
17622 17657
17623 17658
17624 var h = { 17659 var h = {
17625 "content-type" : "application/json; charset=utf-8", 17660 "content-type" : "application/json; charset=utf-8",
17626 }; 17661 };
17627 var resp = convert.JSON.encode(buildPlatformTypesListResponse()); 17662 var resp = convert.JSON.encode(buildPlatformTypesListResponse());
17628 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17663 return new async.Future.value(stringResponse(200, h, resp));
17629 }), true); 17664 }), true);
17630 res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListR esponse response) { 17665 res.list(arg_profileId).then(unittest.expectAsync(((api.PlatformTypesListR esponse response) {
17631 checkPlatformTypesListResponse(response); 17666 checkPlatformTypesListResponse(response);
17632 }))); 17667 })));
17633 }); 17668 });
17634 17669
17635 }); 17670 });
17636 17671
17637 17672
17638 unittest.group("resource-PostalCodesResourceApi", () { 17673 unittest.group("resource-PostalCodesResourceApi", () {
17639 unittest.test("method--list", () { 17674 unittest.test("method--list", () {
17640 17675
17641 var mock = new common_test.HttpServerMock(); 17676 var mock = new HttpServerMock();
17642 api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes ; 17677 api.PostalCodesResourceApi res = new api.DfareportingApi(mock).postalCodes ;
17643 var arg_profileId = "foo"; 17678 var arg_profileId = "foo";
17644 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17679 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17645 var path = (req.url).path; 17680 var path = (req.url).path;
17646 var pathOffset = 0; 17681 var pathOffset = 0;
17647 var index; 17682 var index;
17648 var subPart; 17683 var subPart;
17649 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 17684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
17650 pathOffset += 1; 17685 pathOffset += 1;
17651 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 17686 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
17675 var keyvalue = part.split("="); 17710 var keyvalue = part.split("=");
17676 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17711 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17677 } 17712 }
17678 } 17713 }
17679 17714
17680 17715
17681 var h = { 17716 var h = {
17682 "content-type" : "application/json; charset=utf-8", 17717 "content-type" : "application/json; charset=utf-8",
17683 }; 17718 };
17684 var resp = convert.JSON.encode(buildPostalCodesListResponse()); 17719 var resp = convert.JSON.encode(buildPostalCodesListResponse());
17685 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17720 return new async.Future.value(stringResponse(200, h, resp));
17686 }), true); 17721 }), true);
17687 res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListRes ponse response) { 17722 res.list(arg_profileId).then(unittest.expectAsync(((api.PostalCodesListRes ponse response) {
17688 checkPostalCodesListResponse(response); 17723 checkPostalCodesListResponse(response);
17689 }))); 17724 })));
17690 }); 17725 });
17691 17726
17692 }); 17727 });
17693 17728
17694 17729
17695 unittest.group("resource-RegionsResourceApi", () { 17730 unittest.group("resource-RegionsResourceApi", () {
17696 unittest.test("method--list", () { 17731 unittest.test("method--list", () {
17697 17732
17698 var mock = new common_test.HttpServerMock(); 17733 var mock = new HttpServerMock();
17699 api.RegionsResourceApi res = new api.DfareportingApi(mock).regions; 17734 api.RegionsResourceApi res = new api.DfareportingApi(mock).regions;
17700 var arg_profileId = "foo"; 17735 var arg_profileId = "foo";
17701 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17736 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17702 var path = (req.url).path; 17737 var path = (req.url).path;
17703 var pathOffset = 0; 17738 var pathOffset = 0;
17704 var index; 17739 var index;
17705 var subPart; 17740 var subPart;
17706 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 17741 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
17707 pathOffset += 1; 17742 pathOffset += 1;
17708 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 17743 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
17732 var keyvalue = part.split("="); 17767 var keyvalue = part.split("=");
17733 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17768 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17734 } 17769 }
17735 } 17770 }
17736 17771
17737 17772
17738 var h = { 17773 var h = {
17739 "content-type" : "application/json; charset=utf-8", 17774 "content-type" : "application/json; charset=utf-8",
17740 }; 17775 };
17741 var resp = convert.JSON.encode(buildRegionsListResponse()); 17776 var resp = convert.JSON.encode(buildRegionsListResponse());
17742 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17777 return new async.Future.value(stringResponse(200, h, resp));
17743 }), true); 17778 }), true);
17744 res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListRespons e response) { 17779 res.list(arg_profileId).then(unittest.expectAsync(((api.RegionsListRespons e response) {
17745 checkRegionsListResponse(response); 17780 checkRegionsListResponse(response);
17746 }))); 17781 })));
17747 }); 17782 });
17748 17783
17749 }); 17784 });
17750 17785
17751 17786
17752 unittest.group("resource-ReportsResourceApi", () { 17787 unittest.group("resource-ReportsResourceApi", () {
17753 unittest.test("method--delete", () { 17788 unittest.test("method--delete", () {
17754 17789
17755 var mock = new common_test.HttpServerMock(); 17790 var mock = new HttpServerMock();
17756 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; 17791 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports;
17757 var arg_profileId = "foo"; 17792 var arg_profileId = "foo";
17758 var arg_reportId = "foo"; 17793 var arg_reportId = "foo";
17759 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17794 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17760 var path = (req.url).path; 17795 var path = (req.url).path;
17761 var pathOffset = 0; 17796 var pathOffset = 0;
17762 var index; 17797 var index;
17763 var subPart; 17798 var subPart;
17764 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 17799 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
17765 pathOffset += 1; 17800 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
17793 var keyvalue = part.split("="); 17828 var keyvalue = part.split("=");
17794 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17829 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17795 } 17830 }
17796 } 17831 }
17797 17832
17798 17833
17799 var h = { 17834 var h = {
17800 "content-type" : "application/json; charset=utf-8", 17835 "content-type" : "application/json; charset=utf-8",
17801 }; 17836 };
17802 var resp = ""; 17837 var resp = "";
17803 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17838 return new async.Future.value(stringResponse(200, h, resp));
17804 }), true); 17839 }), true);
17805 res.delete(arg_profileId, arg_reportId).then(unittest.expectAsync((_) {})) ; 17840 res.delete(arg_profileId, arg_reportId).then(unittest.expectAsync((_) {})) ;
17806 }); 17841 });
17807 17842
17808 unittest.test("method--get", () { 17843 unittest.test("method--get", () {
17809 17844
17810 var mock = new common_test.HttpServerMock(); 17845 var mock = new HttpServerMock();
17811 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; 17846 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports;
17812 var arg_profileId = "foo"; 17847 var arg_profileId = "foo";
17813 var arg_reportId = "foo"; 17848 var arg_reportId = "foo";
17814 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17849 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17815 var path = (req.url).path; 17850 var path = (req.url).path;
17816 var pathOffset = 0; 17851 var pathOffset = 0;
17817 var index; 17852 var index;
17818 var subPart; 17853 var subPart;
17819 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 17854 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
17820 pathOffset += 1; 17855 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
17848 var keyvalue = part.split("="); 17883 var keyvalue = part.split("=");
17849 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17884 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17850 } 17885 }
17851 } 17886 }
17852 17887
17853 17888
17854 var h = { 17889 var h = {
17855 "content-type" : "application/json; charset=utf-8", 17890 "content-type" : "application/json; charset=utf-8",
17856 }; 17891 };
17857 var resp = convert.JSON.encode(buildReport()); 17892 var resp = convert.JSON.encode(buildReport());
17858 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17893 return new async.Future.value(stringResponse(200, h, resp));
17859 }), true); 17894 }), true);
17860 res.get(arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Repor t response) { 17895 res.get(arg_profileId, arg_reportId).then(unittest.expectAsync(((api.Repor t response) {
17861 checkReport(response); 17896 checkReport(response);
17862 }))); 17897 })));
17863 }); 17898 });
17864 17899
17865 unittest.test("method--insert", () { 17900 unittest.test("method--insert", () {
17866 17901
17867 var mock = new common_test.HttpServerMock(); 17902 var mock = new HttpServerMock();
17868 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; 17903 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports;
17869 var arg_request = buildReport(); 17904 var arg_request = buildReport();
17870 var arg_profileId = "foo"; 17905 var arg_profileId = "foo";
17871 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17906 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17872 var obj = new api.Report.fromJson(json); 17907 var obj = new api.Report.fromJson(json);
17873 checkReport(obj); 17908 checkReport(obj);
17874 17909
17875 var path = (req.url).path; 17910 var path = (req.url).path;
17876 var pathOffset = 0; 17911 var pathOffset = 0;
17877 var index; 17912 var index;
(...skipping 27 matching lines...) Expand all
17905 var keyvalue = part.split("="); 17940 var keyvalue = part.split("=");
17906 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 17941 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
17907 } 17942 }
17908 } 17943 }
17909 17944
17910 17945
17911 var h = { 17946 var h = {
17912 "content-type" : "application/json; charset=utf-8", 17947 "content-type" : "application/json; charset=utf-8",
17913 }; 17948 };
17914 var resp = convert.JSON.encode(buildReport()); 17949 var resp = convert.JSON.encode(buildReport());
17915 return new async.Future.value(common_test.stringResponse(200, h, resp)); 17950 return new async.Future.value(stringResponse(200, h, resp));
17916 }), true); 17951 }), true);
17917 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rep ort response) { 17952 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Rep ort response) {
17918 checkReport(response); 17953 checkReport(response);
17919 }))); 17954 })));
17920 }); 17955 });
17921 17956
17922 unittest.test("method--list", () { 17957 unittest.test("method--list", () {
17923 17958
17924 var mock = new common_test.HttpServerMock(); 17959 var mock = new HttpServerMock();
17925 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; 17960 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports;
17926 var arg_profileId = "foo"; 17961 var arg_profileId = "foo";
17927 var arg_maxResults = 42; 17962 var arg_maxResults = 42;
17928 var arg_pageToken = "foo"; 17963 var arg_pageToken = "foo";
17929 var arg_scope = "foo"; 17964 var arg_scope = "foo";
17930 var arg_sortField = "foo"; 17965 var arg_sortField = "foo";
17931 var arg_sortOrder = "foo"; 17966 var arg_sortOrder = "foo";
17932 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 17967 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17933 var path = (req.url).path; 17968 var path = (req.url).path;
17934 var pathOffset = 0; 17969 var pathOffset = 0;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
17968 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 18003 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
17969 unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); 18004 unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope));
17970 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 18005 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
17971 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 18006 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
17972 18007
17973 18008
17974 var h = { 18009 var h = {
17975 "content-type" : "application/json; charset=utf-8", 18010 "content-type" : "application/json; charset=utf-8",
17976 }; 18011 };
17977 var resp = convert.JSON.encode(buildReportList()); 18012 var resp = convert.JSON.encode(buildReportList());
17978 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18013 return new async.Future.value(stringResponse(200, h, resp));
17979 }), true); 18014 }), true);
17980 res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageTok en, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(u nittest.expectAsync(((api.ReportList response) { 18015 res.list(arg_profileId, maxResults: arg_maxResults, pageToken: arg_pageTok en, scope: arg_scope, sortField: arg_sortField, sortOrder: arg_sortOrder).then(u nittest.expectAsync(((api.ReportList response) {
17981 checkReportList(response); 18016 checkReportList(response);
17982 }))); 18017 })));
17983 }); 18018 });
17984 18019
17985 unittest.test("method--patch", () { 18020 unittest.test("method--patch", () {
17986 18021
17987 var mock = new common_test.HttpServerMock(); 18022 var mock = new HttpServerMock();
17988 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; 18023 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports;
17989 var arg_request = buildReport(); 18024 var arg_request = buildReport();
17990 var arg_profileId = "foo"; 18025 var arg_profileId = "foo";
17991 var arg_reportId = "foo"; 18026 var arg_reportId = "foo";
17992 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18027 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
17993 var obj = new api.Report.fromJson(json); 18028 var obj = new api.Report.fromJson(json);
17994 checkReport(obj); 18029 checkReport(obj);
17995 18030
17996 var path = (req.url).path; 18031 var path = (req.url).path;
17997 var pathOffset = 0; 18032 var pathOffset = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
18029 var keyvalue = part.split("="); 18064 var keyvalue = part.split("=");
18030 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18065 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18031 } 18066 }
18032 } 18067 }
18033 18068
18034 18069
18035 var h = { 18070 var h = {
18036 "content-type" : "application/json; charset=utf-8", 18071 "content-type" : "application/json; charset=utf-8",
18037 }; 18072 };
18038 var resp = convert.JSON.encode(buildReport()); 18073 var resp = convert.JSON.encode(buildReport());
18039 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18074 return new async.Future.value(stringResponse(200, h, resp));
18040 }), true); 18075 }), true);
18041 res.patch(arg_request, arg_profileId, arg_reportId).then(unittest.expectAs ync(((api.Report response) { 18076 res.patch(arg_request, arg_profileId, arg_reportId).then(unittest.expectAs ync(((api.Report response) {
18042 checkReport(response); 18077 checkReport(response);
18043 }))); 18078 })));
18044 }); 18079 });
18045 18080
18046 unittest.test("method--run", () { 18081 unittest.test("method--run", () {
18047 18082
18048 var mock = new common_test.HttpServerMock(); 18083 var mock = new HttpServerMock();
18049 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; 18084 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports;
18050 var arg_profileId = "foo"; 18085 var arg_profileId = "foo";
18051 var arg_reportId = "foo"; 18086 var arg_reportId = "foo";
18052 var arg_synchronous = true; 18087 var arg_synchronous = true;
18053 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18088 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18054 var path = (req.url).path; 18089 var path = (req.url).path;
18055 var pathOffset = 0; 18090 var pathOffset = 0;
18056 var index; 18091 var index;
18057 var subPart; 18092 var subPart;
18058 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 18093 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
18092 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18127 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18093 } 18128 }
18094 } 18129 }
18095 unittest.expect(queryMap["synchronous"].first, unittest.equals("$arg_syn chronous")); 18130 unittest.expect(queryMap["synchronous"].first, unittest.equals("$arg_syn chronous"));
18096 18131
18097 18132
18098 var h = { 18133 var h = {
18099 "content-type" : "application/json; charset=utf-8", 18134 "content-type" : "application/json; charset=utf-8",
18100 }; 18135 };
18101 var resp = convert.JSON.encode(buildFile()); 18136 var resp = convert.JSON.encode(buildFile());
18102 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18137 return new async.Future.value(stringResponse(200, h, resp));
18103 }), true); 18138 }), true);
18104 res.run(arg_profileId, arg_reportId, synchronous: arg_synchronous).then(un ittest.expectAsync(((api.File response) { 18139 res.run(arg_profileId, arg_reportId, synchronous: arg_synchronous).then(un ittest.expectAsync(((api.File response) {
18105 checkFile(response); 18140 checkFile(response);
18106 }))); 18141 })));
18107 }); 18142 });
18108 18143
18109 unittest.test("method--update", () { 18144 unittest.test("method--update", () {
18110 18145
18111 var mock = new common_test.HttpServerMock(); 18146 var mock = new HttpServerMock();
18112 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; 18147 api.ReportsResourceApi res = new api.DfareportingApi(mock).reports;
18113 var arg_request = buildReport(); 18148 var arg_request = buildReport();
18114 var arg_profileId = "foo"; 18149 var arg_profileId = "foo";
18115 var arg_reportId = "foo"; 18150 var arg_reportId = "foo";
18116 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18151 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18117 var obj = new api.Report.fromJson(json); 18152 var obj = new api.Report.fromJson(json);
18118 checkReport(obj); 18153 checkReport(obj);
18119 18154
18120 var path = (req.url).path; 18155 var path = (req.url).path;
18121 var pathOffset = 0; 18156 var pathOffset = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
18153 var keyvalue = part.split("="); 18188 var keyvalue = part.split("=");
18154 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18189 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18155 } 18190 }
18156 } 18191 }
18157 18192
18158 18193
18159 var h = { 18194 var h = {
18160 "content-type" : "application/json; charset=utf-8", 18195 "content-type" : "application/json; charset=utf-8",
18161 }; 18196 };
18162 var resp = convert.JSON.encode(buildReport()); 18197 var resp = convert.JSON.encode(buildReport());
18163 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18198 return new async.Future.value(stringResponse(200, h, resp));
18164 }), true); 18199 }), true);
18165 res.update(arg_request, arg_profileId, arg_reportId).then(unittest.expectA sync(((api.Report response) { 18200 res.update(arg_request, arg_profileId, arg_reportId).then(unittest.expectA sync(((api.Report response) {
18166 checkReport(response); 18201 checkReport(response);
18167 }))); 18202 })));
18168 }); 18203 });
18169 18204
18170 }); 18205 });
18171 18206
18172 18207
18173 unittest.group("resource-ReportsCompatibleFieldsResourceApi", () { 18208 unittest.group("resource-ReportsCompatibleFieldsResourceApi", () {
18174 unittest.test("method--query", () { 18209 unittest.test("method--query", () {
18175 18210
18176 var mock = new common_test.HttpServerMock(); 18211 var mock = new HttpServerMock();
18177 api.ReportsCompatibleFieldsResourceApi res = new api.DfareportingApi(mock) .reports.compatibleFields; 18212 api.ReportsCompatibleFieldsResourceApi res = new api.DfareportingApi(mock) .reports.compatibleFields;
18178 var arg_request = buildReport(); 18213 var arg_request = buildReport();
18179 var arg_profileId = "foo"; 18214 var arg_profileId = "foo";
18180 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18215 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18181 var obj = new api.Report.fromJson(json); 18216 var obj = new api.Report.fromJson(json);
18182 checkReport(obj); 18217 checkReport(obj);
18183 18218
18184 var path = (req.url).path; 18219 var path = (req.url).path;
18185 var pathOffset = 0; 18220 var pathOffset = 0;
18186 var index; 18221 var index;
(...skipping 27 matching lines...) Expand all
18214 var keyvalue = part.split("="); 18249 var keyvalue = part.split("=");
18215 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18250 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18216 } 18251 }
18217 } 18252 }
18218 18253
18219 18254
18220 var h = { 18255 var h = {
18221 "content-type" : "application/json; charset=utf-8", 18256 "content-type" : "application/json; charset=utf-8",
18222 }; 18257 };
18223 var resp = convert.JSON.encode(buildCompatibleFields()); 18258 var resp = convert.JSON.encode(buildCompatibleFields());
18224 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18259 return new async.Future.value(stringResponse(200, h, resp));
18225 }), true); 18260 }), true);
18226 res.query(arg_request, arg_profileId).then(unittest.expectAsync(((api.Comp atibleFields response) { 18261 res.query(arg_request, arg_profileId).then(unittest.expectAsync(((api.Comp atibleFields response) {
18227 checkCompatibleFields(response); 18262 checkCompatibleFields(response);
18228 }))); 18263 })));
18229 }); 18264 });
18230 18265
18231 }); 18266 });
18232 18267
18233 18268
18234 unittest.group("resource-ReportsFilesResourceApi", () { 18269 unittest.group("resource-ReportsFilesResourceApi", () {
18235 unittest.test("method--get", () { 18270 unittest.test("method--get", () {
18236 // TODO: Implement tests for media upload; 18271 // TODO: Implement tests for media upload;
18237 // TODO: Implement tests for media download; 18272 // TODO: Implement tests for media download;
18238 18273
18239 var mock = new common_test.HttpServerMock(); 18274 var mock = new HttpServerMock();
18240 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi les; 18275 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi les;
18241 var arg_profileId = "foo"; 18276 var arg_profileId = "foo";
18242 var arg_reportId = "foo"; 18277 var arg_reportId = "foo";
18243 var arg_fileId = "foo"; 18278 var arg_fileId = "foo";
18244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18279 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18245 var path = (req.url).path; 18280 var path = (req.url).path;
18246 var pathOffset = 0; 18281 var pathOffset = 0;
18247 var index; 18282 var index;
18248 var subPart; 18283 var subPart;
18249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 18284 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
18285 var keyvalue = part.split("="); 18320 var keyvalue = part.split("=");
18286 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18321 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18287 } 18322 }
18288 } 18323 }
18289 18324
18290 18325
18291 var h = { 18326 var h = {
18292 "content-type" : "application/json; charset=utf-8", 18327 "content-type" : "application/json; charset=utf-8",
18293 }; 18328 };
18294 var resp = convert.JSON.encode(buildFile()); 18329 var resp = convert.JSON.encode(buildFile());
18295 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18330 return new async.Future.value(stringResponse(200, h, resp));
18296 }), true); 18331 }), true);
18297 res.get(arg_profileId, arg_reportId, arg_fileId).then(unittest.expectAsync (((api.File response) { 18332 res.get(arg_profileId, arg_reportId, arg_fileId).then(unittest.expectAsync (((api.File response) {
18298 checkFile(response); 18333 checkFile(response);
18299 }))); 18334 })));
18300 }); 18335 });
18301 18336
18302 unittest.test("method--list", () { 18337 unittest.test("method--list", () {
18303 18338
18304 var mock = new common_test.HttpServerMock(); 18339 var mock = new HttpServerMock();
18305 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi les; 18340 api.ReportsFilesResourceApi res = new api.DfareportingApi(mock).reports.fi les;
18306 var arg_profileId = "foo"; 18341 var arg_profileId = "foo";
18307 var arg_reportId = "foo"; 18342 var arg_reportId = "foo";
18308 var arg_maxResults = 42; 18343 var arg_maxResults = 42;
18309 var arg_pageToken = "foo"; 18344 var arg_pageToken = "foo";
18310 var arg_sortField = "foo"; 18345 var arg_sortField = "foo";
18311 var arg_sortOrder = "foo"; 18346 var arg_sortOrder = "foo";
18312 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18347 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18313 var path = (req.url).path; 18348 var path = (req.url).path;
18314 var pathOffset = 0; 18349 var pathOffset = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
18354 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults)); 18389 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e quals(arg_maxResults));
18355 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 18390 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
18356 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 18391 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
18357 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 18392 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
18358 18393
18359 18394
18360 var h = { 18395 var h = {
18361 "content-type" : "application/json; charset=utf-8", 18396 "content-type" : "application/json; charset=utf-8",
18362 }; 18397 };
18363 var resp = convert.JSON.encode(buildFileList()); 18398 var resp = convert.JSON.encode(buildFileList());
18364 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18399 return new async.Future.value(stringResponse(200, h, resp));
18365 }), true); 18400 }), true);
18366 res.list(arg_profileId, arg_reportId, maxResults: arg_maxResults, pageToke n: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unitt est.expectAsync(((api.FileList response) { 18401 res.list(arg_profileId, arg_reportId, maxResults: arg_maxResults, pageToke n: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unitt est.expectAsync(((api.FileList response) {
18367 checkFileList(response); 18402 checkFileList(response);
18368 }))); 18403 })));
18369 }); 18404 });
18370 18405
18371 }); 18406 });
18372 18407
18373 18408
18374 unittest.group("resource-SitesResourceApi", () { 18409 unittest.group("resource-SitesResourceApi", () {
18375 unittest.test("method--get", () { 18410 unittest.test("method--get", () {
18376 18411
18377 var mock = new common_test.HttpServerMock(); 18412 var mock = new HttpServerMock();
18378 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; 18413 api.SitesResourceApi res = new api.DfareportingApi(mock).sites;
18379 var arg_profileId = "foo"; 18414 var arg_profileId = "foo";
18380 var arg_id = "foo"; 18415 var arg_id = "foo";
18381 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18416 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18382 var path = (req.url).path; 18417 var path = (req.url).path;
18383 var pathOffset = 0; 18418 var pathOffset = 0;
18384 var index; 18419 var index;
18385 var subPart; 18420 var subPart;
18386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 18421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
18387 pathOffset += 1; 18422 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
18415 var keyvalue = part.split("="); 18450 var keyvalue = part.split("=");
18416 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18451 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18417 } 18452 }
18418 } 18453 }
18419 18454
18420 18455
18421 var h = { 18456 var h = {
18422 "content-type" : "application/json; charset=utf-8", 18457 "content-type" : "application/json; charset=utf-8",
18423 }; 18458 };
18424 var resp = convert.JSON.encode(buildSite()); 18459 var resp = convert.JSON.encode(buildSite());
18425 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18460 return new async.Future.value(stringResponse(200, h, resp));
18426 }), true); 18461 }), true);
18427 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Site respon se) { 18462 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Site respon se) {
18428 checkSite(response); 18463 checkSite(response);
18429 }))); 18464 })));
18430 }); 18465 });
18431 18466
18432 unittest.test("method--insert", () { 18467 unittest.test("method--insert", () {
18433 18468
18434 var mock = new common_test.HttpServerMock(); 18469 var mock = new HttpServerMock();
18435 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; 18470 api.SitesResourceApi res = new api.DfareportingApi(mock).sites;
18436 var arg_request = buildSite(); 18471 var arg_request = buildSite();
18437 var arg_profileId = "foo"; 18472 var arg_profileId = "foo";
18438 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18473 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18439 var obj = new api.Site.fromJson(json); 18474 var obj = new api.Site.fromJson(json);
18440 checkSite(obj); 18475 checkSite(obj);
18441 18476
18442 var path = (req.url).path; 18477 var path = (req.url).path;
18443 var pathOffset = 0; 18478 var pathOffset = 0;
18444 var index; 18479 var index;
(...skipping 27 matching lines...) Expand all
18472 var keyvalue = part.split("="); 18507 var keyvalue = part.split("=");
18473 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18508 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18474 } 18509 }
18475 } 18510 }
18476 18511
18477 18512
18478 var h = { 18513 var h = {
18479 "content-type" : "application/json; charset=utf-8", 18514 "content-type" : "application/json; charset=utf-8",
18480 }; 18515 };
18481 var resp = convert.JSON.encode(buildSite()); 18516 var resp = convert.JSON.encode(buildSite());
18482 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18517 return new async.Future.value(stringResponse(200, h, resp));
18483 }), true); 18518 }), true);
18484 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sit e response) { 18519 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sit e response) {
18485 checkSite(response); 18520 checkSite(response);
18486 }))); 18521 })));
18487 }); 18522 });
18488 18523
18489 unittest.test("method--list", () { 18524 unittest.test("method--list", () {
18490 18525
18491 var mock = new common_test.HttpServerMock(); 18526 var mock = new HttpServerMock();
18492 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; 18527 api.SitesResourceApi res = new api.DfareportingApi(mock).sites;
18493 var arg_profileId = "foo"; 18528 var arg_profileId = "foo";
18494 var arg_acceptsInStreamVideoPlacements = true; 18529 var arg_acceptsInStreamVideoPlacements = true;
18495 var arg_acceptsInterstitialPlacements = true; 18530 var arg_acceptsInterstitialPlacements = true;
18496 var arg_acceptsPublisherPaidPlacements = true; 18531 var arg_acceptsPublisherPaidPlacements = true;
18497 var arg_adWordsSite = true; 18532 var arg_adWordsSite = true;
18498 var arg_approved = true; 18533 var arg_approved = true;
18499 var arg_campaignIds = buildUnnamed512(); 18534 var arg_campaignIds = buildUnnamed925();
18500 var arg_directorySiteIds = buildUnnamed513(); 18535 var arg_directorySiteIds = buildUnnamed926();
18501 var arg_ids = buildUnnamed514(); 18536 var arg_ids = buildUnnamed927();
18502 var arg_maxResults = 42; 18537 var arg_maxResults = 42;
18503 var arg_pageToken = "foo"; 18538 var arg_pageToken = "foo";
18504 var arg_searchString = "foo"; 18539 var arg_searchString = "foo";
18505 var arg_sortField = "foo"; 18540 var arg_sortField = "foo";
18506 var arg_sortOrder = "foo"; 18541 var arg_sortOrder = "foo";
18507 var arg_subaccountId = "foo"; 18542 var arg_subaccountId = "foo";
18508 var arg_unmappedSite = true; 18543 var arg_unmappedSite = true;
18509 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18544 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18510 var path = (req.url).path; 18545 var path = (req.url).path;
18511 var pathOffset = 0; 18546 var pathOffset = 0;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
18555 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 18590 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
18556 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 18591 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
18557 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId)); 18592 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId));
18558 unittest.expect(queryMap["unmappedSite"].first, unittest.equals("$arg_un mappedSite")); 18593 unittest.expect(queryMap["unmappedSite"].first, unittest.equals("$arg_un mappedSite"));
18559 18594
18560 18595
18561 var h = { 18596 var h = {
18562 "content-type" : "application/json; charset=utf-8", 18597 "content-type" : "application/json; charset=utf-8",
18563 }; 18598 };
18564 var resp = convert.JSON.encode(buildSitesListResponse()); 18599 var resp = convert.JSON.encode(buildSitesListResponse());
18565 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18600 return new async.Future.value(stringResponse(200, h, resp));
18566 }), true); 18601 }), true);
18567 res.list(arg_profileId, acceptsInStreamVideoPlacements: arg_acceptsInStrea mVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacemen ts, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, adWordsS ite: arg_adWordsSite, approved: arg_approved, campaignIds: arg_campaignIds, dire ctorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResults, pa geToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField , sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, unmappedSite: arg_un mappedSite).then(unittest.expectAsync(((api.SitesListResponse response) { 18602 res.list(arg_profileId, acceptsInStreamVideoPlacements: arg_acceptsInStrea mVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacemen ts, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, adWordsS ite: arg_adWordsSite, approved: arg_approved, campaignIds: arg_campaignIds, dire ctorySiteIds: arg_directorySiteIds, ids: arg_ids, maxResults: arg_maxResults, pa geToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField , sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, unmappedSite: arg_un mappedSite).then(unittest.expectAsync(((api.SitesListResponse response) {
18568 checkSitesListResponse(response); 18603 checkSitesListResponse(response);
18569 }))); 18604 })));
18570 }); 18605 });
18571 18606
18572 unittest.test("method--patch", () { 18607 unittest.test("method--patch", () {
18573 18608
18574 var mock = new common_test.HttpServerMock(); 18609 var mock = new HttpServerMock();
18575 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; 18610 api.SitesResourceApi res = new api.DfareportingApi(mock).sites;
18576 var arg_request = buildSite(); 18611 var arg_request = buildSite();
18577 var arg_profileId = "foo"; 18612 var arg_profileId = "foo";
18578 var arg_id = "foo"; 18613 var arg_id = "foo";
18579 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18614 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18580 var obj = new api.Site.fromJson(json); 18615 var obj = new api.Site.fromJson(json);
18581 checkSite(obj); 18616 checkSite(obj);
18582 18617
18583 var path = (req.url).path; 18618 var path = (req.url).path;
18584 var pathOffset = 0; 18619 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
18614 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18649 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18615 } 18650 }
18616 } 18651 }
18617 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 18652 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
18618 18653
18619 18654
18620 var h = { 18655 var h = {
18621 "content-type" : "application/json; charset=utf-8", 18656 "content-type" : "application/json; charset=utf-8",
18622 }; 18657 };
18623 var resp = convert.JSON.encode(buildSite()); 18658 var resp = convert.JSON.encode(buildSite());
18624 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18659 return new async.Future.value(stringResponse(200, h, resp));
18625 }), true); 18660 }), true);
18626 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Site response) { 18661 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Site response) {
18627 checkSite(response); 18662 checkSite(response);
18628 }))); 18663 })));
18629 }); 18664 });
18630 18665
18631 unittest.test("method--update", () { 18666 unittest.test("method--update", () {
18632 18667
18633 var mock = new common_test.HttpServerMock(); 18668 var mock = new HttpServerMock();
18634 api.SitesResourceApi res = new api.DfareportingApi(mock).sites; 18669 api.SitesResourceApi res = new api.DfareportingApi(mock).sites;
18635 var arg_request = buildSite(); 18670 var arg_request = buildSite();
18636 var arg_profileId = "foo"; 18671 var arg_profileId = "foo";
18637 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18672 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18638 var obj = new api.Site.fromJson(json); 18673 var obj = new api.Site.fromJson(json);
18639 checkSite(obj); 18674 checkSite(obj);
18640 18675
18641 var path = (req.url).path; 18676 var path = (req.url).path;
18642 var pathOffset = 0; 18677 var pathOffset = 0;
18643 var index; 18678 var index;
(...skipping 27 matching lines...) Expand all
18671 var keyvalue = part.split("="); 18706 var keyvalue = part.split("=");
18672 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18707 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18673 } 18708 }
18674 } 18709 }
18675 18710
18676 18711
18677 var h = { 18712 var h = {
18678 "content-type" : "application/json; charset=utf-8", 18713 "content-type" : "application/json; charset=utf-8",
18679 }; 18714 };
18680 var resp = convert.JSON.encode(buildSite()); 18715 var resp = convert.JSON.encode(buildSite());
18681 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18716 return new async.Future.value(stringResponse(200, h, resp));
18682 }), true); 18717 }), true);
18683 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sit e response) { 18718 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sit e response) {
18684 checkSite(response); 18719 checkSite(response);
18685 }))); 18720 })));
18686 }); 18721 });
18687 18722
18688 }); 18723 });
18689 18724
18690 18725
18691 unittest.group("resource-SizesResourceApi", () { 18726 unittest.group("resource-SizesResourceApi", () {
18692 unittest.test("method--get", () { 18727 unittest.test("method--get", () {
18693 18728
18694 var mock = new common_test.HttpServerMock(); 18729 var mock = new HttpServerMock();
18695 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; 18730 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes;
18696 var arg_profileId = "foo"; 18731 var arg_profileId = "foo";
18697 var arg_id = "foo"; 18732 var arg_id = "foo";
18698 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18733 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18699 var path = (req.url).path; 18734 var path = (req.url).path;
18700 var pathOffset = 0; 18735 var pathOffset = 0;
18701 var index; 18736 var index;
18702 var subPart; 18737 var subPart;
18703 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 18738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
18704 pathOffset += 1; 18739 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
18732 var keyvalue = part.split("="); 18767 var keyvalue = part.split("=");
18733 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18768 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18734 } 18769 }
18735 } 18770 }
18736 18771
18737 18772
18738 var h = { 18773 var h = {
18739 "content-type" : "application/json; charset=utf-8", 18774 "content-type" : "application/json; charset=utf-8",
18740 }; 18775 };
18741 var resp = convert.JSON.encode(buildSize()); 18776 var resp = convert.JSON.encode(buildSize());
18742 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18777 return new async.Future.value(stringResponse(200, h, resp));
18743 }), true); 18778 }), true);
18744 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Size respon se) { 18779 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Size respon se) {
18745 checkSize(response); 18780 checkSize(response);
18746 }))); 18781 })));
18747 }); 18782 });
18748 18783
18749 unittest.test("method--insert", () { 18784 unittest.test("method--insert", () {
18750 18785
18751 var mock = new common_test.HttpServerMock(); 18786 var mock = new HttpServerMock();
18752 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; 18787 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes;
18753 var arg_request = buildSize(); 18788 var arg_request = buildSize();
18754 var arg_profileId = "foo"; 18789 var arg_profileId = "foo";
18755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18790 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18756 var obj = new api.Size.fromJson(json); 18791 var obj = new api.Size.fromJson(json);
18757 checkSize(obj); 18792 checkSize(obj);
18758 18793
18759 var path = (req.url).path; 18794 var path = (req.url).path;
18760 var pathOffset = 0; 18795 var pathOffset = 0;
18761 var index; 18796 var index;
(...skipping 27 matching lines...) Expand all
18789 var keyvalue = part.split("="); 18824 var keyvalue = part.split("=");
18790 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18825 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18791 } 18826 }
18792 } 18827 }
18793 18828
18794 18829
18795 var h = { 18830 var h = {
18796 "content-type" : "application/json; charset=utf-8", 18831 "content-type" : "application/json; charset=utf-8",
18797 }; 18832 };
18798 var resp = convert.JSON.encode(buildSize()); 18833 var resp = convert.JSON.encode(buildSize());
18799 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18834 return new async.Future.value(stringResponse(200, h, resp));
18800 }), true); 18835 }), true);
18801 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Siz e response) { 18836 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Siz e response) {
18802 checkSize(response); 18837 checkSize(response);
18803 }))); 18838 })));
18804 }); 18839 });
18805 18840
18806 unittest.test("method--list", () { 18841 unittest.test("method--list", () {
18807 18842
18808 var mock = new common_test.HttpServerMock(); 18843 var mock = new HttpServerMock();
18809 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes; 18844 api.SizesResourceApi res = new api.DfareportingApi(mock).sizes;
18810 var arg_profileId = "foo"; 18845 var arg_profileId = "foo";
18811 var arg_height = 42; 18846 var arg_height = 42;
18812 var arg_iabStandard = true; 18847 var arg_iabStandard = true;
18813 var arg_ids = buildUnnamed515(); 18848 var arg_ids = buildUnnamed928();
18814 var arg_width = 42; 18849 var arg_width = 42;
18815 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18850 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18816 var path = (req.url).path; 18851 var path = (req.url).path;
18817 var pathOffset = 0; 18852 var pathOffset = 0;
18818 var index; 18853 var index;
18819 var subPart; 18854 var subPart;
18820 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 18855 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
18821 pathOffset += 1; 18856 pathOffset += 1;
18822 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 18857 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
18823 pathOffset += 18; 18858 pathOffset += 18;
(...skipping 26 matching lines...) Expand all
18850 unittest.expect(core.int.parse(queryMap["height"].first), unittest.equal s(arg_height)); 18885 unittest.expect(core.int.parse(queryMap["height"].first), unittest.equal s(arg_height));
18851 unittest.expect(queryMap["iabStandard"].first, unittest.equals("$arg_iab Standard")); 18886 unittest.expect(queryMap["iabStandard"].first, unittest.equals("$arg_iab Standard"));
18852 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); 18887 unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
18853 unittest.expect(core.int.parse(queryMap["width"].first), unittest.equals (arg_width)); 18888 unittest.expect(core.int.parse(queryMap["width"].first), unittest.equals (arg_width));
18854 18889
18855 18890
18856 var h = { 18891 var h = {
18857 "content-type" : "application/json; charset=utf-8", 18892 "content-type" : "application/json; charset=utf-8",
18858 }; 18893 };
18859 var resp = convert.JSON.encode(buildSizesListResponse()); 18894 var resp = convert.JSON.encode(buildSizesListResponse());
18860 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18895 return new async.Future.value(stringResponse(200, h, resp));
18861 }), true); 18896 }), true);
18862 res.list(arg_profileId, height: arg_height, iabStandard: arg_iabStandard, ids: arg_ids, width: arg_width).then(unittest.expectAsync(((api.SizesListRespons e response) { 18897 res.list(arg_profileId, height: arg_height, iabStandard: arg_iabStandard, ids: arg_ids, width: arg_width).then(unittest.expectAsync(((api.SizesListRespons e response) {
18863 checkSizesListResponse(response); 18898 checkSizesListResponse(response);
18864 }))); 18899 })));
18865 }); 18900 });
18866 18901
18867 }); 18902 });
18868 18903
18869 18904
18870 unittest.group("resource-SubaccountsResourceApi", () { 18905 unittest.group("resource-SubaccountsResourceApi", () {
18871 unittest.test("method--get", () { 18906 unittest.test("method--get", () {
18872 18907
18873 var mock = new common_test.HttpServerMock(); 18908 var mock = new HttpServerMock();
18874 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ; 18909 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ;
18875 var arg_profileId = "foo"; 18910 var arg_profileId = "foo";
18876 var arg_id = "foo"; 18911 var arg_id = "foo";
18877 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18912 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18878 var path = (req.url).path; 18913 var path = (req.url).path;
18879 var pathOffset = 0; 18914 var pathOffset = 0;
18880 var index; 18915 var index;
18881 var subPart; 18916 var subPart;
18882 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 18917 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
18883 pathOffset += 1; 18918 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
18911 var keyvalue = part.split("="); 18946 var keyvalue = part.split("=");
18912 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 18947 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18913 } 18948 }
18914 } 18949 }
18915 18950
18916 18951
18917 var h = { 18952 var h = {
18918 "content-type" : "application/json; charset=utf-8", 18953 "content-type" : "application/json; charset=utf-8",
18919 }; 18954 };
18920 var resp = convert.JSON.encode(buildSubaccount()); 18955 var resp = convert.JSON.encode(buildSubaccount());
18921 return new async.Future.value(common_test.stringResponse(200, h, resp)); 18956 return new async.Future.value(stringResponse(200, h, resp));
18922 }), true); 18957 }), true);
18923 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Subaccount response) { 18958 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.Subaccount response) {
18924 checkSubaccount(response); 18959 checkSubaccount(response);
18925 }))); 18960 })));
18926 }); 18961 });
18927 18962
18928 unittest.test("method--insert", () { 18963 unittest.test("method--insert", () {
18929 18964
18930 var mock = new common_test.HttpServerMock(); 18965 var mock = new HttpServerMock();
18931 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ; 18966 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ;
18932 var arg_request = buildSubaccount(); 18967 var arg_request = buildSubaccount();
18933 var arg_profileId = "foo"; 18968 var arg_profileId = "foo";
18934 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 18969 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18935 var obj = new api.Subaccount.fromJson(json); 18970 var obj = new api.Subaccount.fromJson(json);
18936 checkSubaccount(obj); 18971 checkSubaccount(obj);
18937 18972
18938 var path = (req.url).path; 18973 var path = (req.url).path;
18939 var pathOffset = 0; 18974 var pathOffset = 0;
18940 var index; 18975 var index;
(...skipping 27 matching lines...) Expand all
18968 var keyvalue = part.split("="); 19003 var keyvalue = part.split("=");
18969 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19004 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
18970 } 19005 }
18971 } 19006 }
18972 19007
18973 19008
18974 var h = { 19009 var h = {
18975 "content-type" : "application/json; charset=utf-8", 19010 "content-type" : "application/json; charset=utf-8",
18976 }; 19011 };
18977 var resp = convert.JSON.encode(buildSubaccount()); 19012 var resp = convert.JSON.encode(buildSubaccount());
18978 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19013 return new async.Future.value(stringResponse(200, h, resp));
18979 }), true); 19014 }), true);
18980 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub account response) { 19015 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub account response) {
18981 checkSubaccount(response); 19016 checkSubaccount(response);
18982 }))); 19017 })));
18983 }); 19018 });
18984 19019
18985 unittest.test("method--list", () { 19020 unittest.test("method--list", () {
18986 19021
18987 var mock = new common_test.HttpServerMock(); 19022 var mock = new HttpServerMock();
18988 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ; 19023 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ;
18989 var arg_profileId = "foo"; 19024 var arg_profileId = "foo";
18990 var arg_ids = buildUnnamed516(); 19025 var arg_ids = buildUnnamed929();
18991 var arg_maxResults = 42; 19026 var arg_maxResults = 42;
18992 var arg_pageToken = "foo"; 19027 var arg_pageToken = "foo";
18993 var arg_searchString = "foo"; 19028 var arg_searchString = "foo";
18994 var arg_sortField = "foo"; 19029 var arg_sortField = "foo";
18995 var arg_sortOrder = "foo"; 19030 var arg_sortOrder = "foo";
18996 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19031 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
18997 var path = (req.url).path; 19032 var path = (req.url).path;
18998 var pathOffset = 0; 19033 var pathOffset = 0;
18999 var index; 19034 var index;
19000 var subPart; 19035 var subPart;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
19033 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 19068 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
19034 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 19069 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
19035 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 19070 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
19036 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 19071 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
19037 19072
19038 19073
19039 var h = { 19074 var h = {
19040 "content-type" : "application/json; charset=utf-8", 19075 "content-type" : "application/json; charset=utf-8",
19041 }; 19076 };
19042 var resp = convert.JSON.encode(buildSubaccountsListResponse()); 19077 var resp = convert.JSON.encode(buildSubaccountsListResponse());
19043 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19078 return new async.Future.value(stringResponse(200, h, resp));
19044 }), true); 19079 }), true);
19045 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort Order: arg_sortOrder).then(unittest.expectAsync(((api.SubaccountsListResponse re sponse) { 19080 res.list(arg_profileId, ids: arg_ids, maxResults: arg_maxResults, pageToke n: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sort Order: arg_sortOrder).then(unittest.expectAsync(((api.SubaccountsListResponse re sponse) {
19046 checkSubaccountsListResponse(response); 19081 checkSubaccountsListResponse(response);
19047 }))); 19082 })));
19048 }); 19083 });
19049 19084
19050 unittest.test("method--patch", () { 19085 unittest.test("method--patch", () {
19051 19086
19052 var mock = new common_test.HttpServerMock(); 19087 var mock = new HttpServerMock();
19053 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ; 19088 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ;
19054 var arg_request = buildSubaccount(); 19089 var arg_request = buildSubaccount();
19055 var arg_profileId = "foo"; 19090 var arg_profileId = "foo";
19056 var arg_id = "foo"; 19091 var arg_id = "foo";
19057 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19092 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19058 var obj = new api.Subaccount.fromJson(json); 19093 var obj = new api.Subaccount.fromJson(json);
19059 checkSubaccount(obj); 19094 checkSubaccount(obj);
19060 19095
19061 var path = (req.url).path; 19096 var path = (req.url).path;
19062 var pathOffset = 0; 19097 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
19092 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19127 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19093 } 19128 }
19094 } 19129 }
19095 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 19130 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
19096 19131
19097 19132
19098 var h = { 19133 var h = {
19099 "content-type" : "application/json; charset=utf-8", 19134 "content-type" : "application/json; charset=utf-8",
19100 }; 19135 };
19101 var resp = convert.JSON.encode(buildSubaccount()); 19136 var resp = convert.JSON.encode(buildSubaccount());
19102 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19137 return new async.Future.value(stringResponse(200, h, resp));
19103 }), true); 19138 }), true);
19104 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Subaccount response) { 19139 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.Subaccount response) {
19105 checkSubaccount(response); 19140 checkSubaccount(response);
19106 }))); 19141 })));
19107 }); 19142 });
19108 19143
19109 unittest.test("method--update", () { 19144 unittest.test("method--update", () {
19110 19145
19111 var mock = new common_test.HttpServerMock(); 19146 var mock = new HttpServerMock();
19112 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ; 19147 api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts ;
19113 var arg_request = buildSubaccount(); 19148 var arg_request = buildSubaccount();
19114 var arg_profileId = "foo"; 19149 var arg_profileId = "foo";
19115 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19150 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19116 var obj = new api.Subaccount.fromJson(json); 19151 var obj = new api.Subaccount.fromJson(json);
19117 checkSubaccount(obj); 19152 checkSubaccount(obj);
19118 19153
19119 var path = (req.url).path; 19154 var path = (req.url).path;
19120 var pathOffset = 0; 19155 var pathOffset = 0;
19121 var index; 19156 var index;
(...skipping 27 matching lines...) Expand all
19149 var keyvalue = part.split("="); 19184 var keyvalue = part.split("=");
19150 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19185 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19151 } 19186 }
19152 } 19187 }
19153 19188
19154 19189
19155 var h = { 19190 var h = {
19156 "content-type" : "application/json; charset=utf-8", 19191 "content-type" : "application/json; charset=utf-8",
19157 }; 19192 };
19158 var resp = convert.JSON.encode(buildSubaccount()); 19193 var resp = convert.JSON.encode(buildSubaccount());
19159 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19194 return new async.Future.value(stringResponse(200, h, resp));
19160 }), true); 19195 }), true);
19161 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub account response) { 19196 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Sub account response) {
19162 checkSubaccount(response); 19197 checkSubaccount(response);
19163 }))); 19198 })));
19164 }); 19199 });
19165 19200
19166 }); 19201 });
19167 19202
19168 19203
19169 unittest.group("resource-UserProfilesResourceApi", () { 19204 unittest.group("resource-UserProfilesResourceApi", () {
19170 unittest.test("method--get", () { 19205 unittest.test("method--get", () {
19171 19206
19172 var mock = new common_test.HttpServerMock(); 19207 var mock = new HttpServerMock();
19173 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil es; 19208 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil es;
19174 var arg_profileId = "foo"; 19209 var arg_profileId = "foo";
19175 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19210 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19176 var path = (req.url).path; 19211 var path = (req.url).path;
19177 var pathOffset = 0; 19212 var pathOffset = 0;
19178 var index; 19213 var index;
19179 var subPart; 19214 var subPart;
19180 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 19215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
19181 pathOffset += 1; 19216 pathOffset += 1;
19182 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 19217 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 19 matching lines...) Expand all
19202 var keyvalue = part.split("="); 19237 var keyvalue = part.split("=");
19203 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19238 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19204 } 19239 }
19205 } 19240 }
19206 19241
19207 19242
19208 var h = { 19243 var h = {
19209 "content-type" : "application/json; charset=utf-8", 19244 "content-type" : "application/json; charset=utf-8",
19210 }; 19245 };
19211 var resp = convert.JSON.encode(buildUserProfile()); 19246 var resp = convert.JSON.encode(buildUserProfile());
19212 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19247 return new async.Future.value(stringResponse(200, h, resp));
19213 }), true); 19248 }), true);
19214 res.get(arg_profileId).then(unittest.expectAsync(((api.UserProfile respons e) { 19249 res.get(arg_profileId).then(unittest.expectAsync(((api.UserProfile respons e) {
19215 checkUserProfile(response); 19250 checkUserProfile(response);
19216 }))); 19251 })));
19217 }); 19252 });
19218 19253
19219 unittest.test("method--list", () { 19254 unittest.test("method--list", () {
19220 19255
19221 var mock = new common_test.HttpServerMock(); 19256 var mock = new HttpServerMock();
19222 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil es; 19257 api.UserProfilesResourceApi res = new api.DfareportingApi(mock).userProfil es;
19223 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19258 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19224 var path = (req.url).path; 19259 var path = (req.url).path;
19225 var pathOffset = 0; 19260 var pathOffset = 0;
19226 var index; 19261 var index;
19227 var subPart; 19262 var subPart;
19228 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 19263 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
19229 pathOffset += 1; 19264 pathOffset += 1;
19230 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 19265 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
19231 pathOffset += 18; 19266 pathOffset += 18;
(...skipping 15 matching lines...) Expand all
19247 var keyvalue = part.split("="); 19282 var keyvalue = part.split("=");
19248 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19283 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19249 } 19284 }
19250 } 19285 }
19251 19286
19252 19287
19253 var h = { 19288 var h = {
19254 "content-type" : "application/json; charset=utf-8", 19289 "content-type" : "application/json; charset=utf-8",
19255 }; 19290 };
19256 var resp = convert.JSON.encode(buildUserProfileList()); 19291 var resp = convert.JSON.encode(buildUserProfileList());
19257 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19292 return new async.Future.value(stringResponse(200, h, resp));
19258 }), true); 19293 }), true);
19259 res.list().then(unittest.expectAsync(((api.UserProfileList response) { 19294 res.list().then(unittest.expectAsync(((api.UserProfileList response) {
19260 checkUserProfileList(response); 19295 checkUserProfileList(response);
19261 }))); 19296 })));
19262 }); 19297 });
19263 19298
19264 }); 19299 });
19265 19300
19266 19301
19267 unittest.group("resource-UserRolePermissionGroupsResourceApi", () { 19302 unittest.group("resource-UserRolePermissionGroupsResourceApi", () {
19268 unittest.test("method--get", () { 19303 unittest.test("method--get", () {
19269 19304
19270 var mock = new common_test.HttpServerMock(); 19305 var mock = new HttpServerMock();
19271 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock ).userRolePermissionGroups; 19306 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock ).userRolePermissionGroups;
19272 var arg_profileId = "foo"; 19307 var arg_profileId = "foo";
19273 var arg_id = "foo"; 19308 var arg_id = "foo";
19274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19309 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19275 var path = (req.url).path; 19310 var path = (req.url).path;
19276 var pathOffset = 0; 19311 var pathOffset = 0;
19277 var index; 19312 var index;
19278 var subPart; 19313 var subPart;
19279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 19314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
19280 pathOffset += 1; 19315 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
19308 var keyvalue = part.split("="); 19343 var keyvalue = part.split("=");
19309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19344 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19310 } 19345 }
19311 } 19346 }
19312 19347
19313 19348
19314 var h = { 19349 var h = {
19315 "content-type" : "application/json; charset=utf-8", 19350 "content-type" : "application/json; charset=utf-8",
19316 }; 19351 };
19317 var resp = convert.JSON.encode(buildUserRolePermissionGroup()); 19352 var resp = convert.JSON.encode(buildUserRolePermissionGroup());
19318 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19353 return new async.Future.value(stringResponse(200, h, resp));
19319 }), true); 19354 }), true);
19320 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePer missionGroup response) { 19355 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePer missionGroup response) {
19321 checkUserRolePermissionGroup(response); 19356 checkUserRolePermissionGroup(response);
19322 }))); 19357 })));
19323 }); 19358 });
19324 19359
19325 unittest.test("method--list", () { 19360 unittest.test("method--list", () {
19326 19361
19327 var mock = new common_test.HttpServerMock(); 19362 var mock = new HttpServerMock();
19328 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock ).userRolePermissionGroups; 19363 api.UserRolePermissionGroupsResourceApi res = new api.DfareportingApi(mock ).userRolePermissionGroups;
19329 var arg_profileId = "foo"; 19364 var arg_profileId = "foo";
19330 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19365 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19331 var path = (req.url).path; 19366 var path = (req.url).path;
19332 var pathOffset = 0; 19367 var pathOffset = 0;
19333 var index; 19368 var index;
19334 var subPart; 19369 var subPart;
19335 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 19370 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
19336 pathOffset += 1; 19371 pathOffset += 1;
19337 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 19372 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
(...skipping 23 matching lines...) Expand all
19361 var keyvalue = part.split("="); 19396 var keyvalue = part.split("=");
19362 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19397 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19363 } 19398 }
19364 } 19399 }
19365 19400
19366 19401
19367 var h = { 19402 var h = {
19368 "content-type" : "application/json; charset=utf-8", 19403 "content-type" : "application/json; charset=utf-8",
19369 }; 19404 };
19370 var resp = convert.JSON.encode(buildUserRolePermissionGroupsListResponse ()); 19405 var resp = convert.JSON.encode(buildUserRolePermissionGroupsListResponse ());
19371 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19406 return new async.Future.value(stringResponse(200, h, resp));
19372 }), true); 19407 }), true);
19373 res.list(arg_profileId).then(unittest.expectAsync(((api.UserRolePermission GroupsListResponse response) { 19408 res.list(arg_profileId).then(unittest.expectAsync(((api.UserRolePermission GroupsListResponse response) {
19374 checkUserRolePermissionGroupsListResponse(response); 19409 checkUserRolePermissionGroupsListResponse(response);
19375 }))); 19410 })));
19376 }); 19411 });
19377 19412
19378 }); 19413 });
19379 19414
19380 19415
19381 unittest.group("resource-UserRolePermissionsResourceApi", () { 19416 unittest.group("resource-UserRolePermissionsResourceApi", () {
19382 unittest.test("method--get", () { 19417 unittest.test("method--get", () {
19383 19418
19384 var mock = new common_test.HttpServerMock(); 19419 var mock = new HttpServerMock();
19385 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use rRolePermissions; 19420 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use rRolePermissions;
19386 var arg_profileId = "foo"; 19421 var arg_profileId = "foo";
19387 var arg_id = "foo"; 19422 var arg_id = "foo";
19388 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19423 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19389 var path = (req.url).path; 19424 var path = (req.url).path;
19390 var pathOffset = 0; 19425 var pathOffset = 0;
19391 var index; 19426 var index;
19392 var subPart; 19427 var subPart;
19393 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 19428 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
19394 pathOffset += 1; 19429 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
19422 var keyvalue = part.split("="); 19457 var keyvalue = part.split("=");
19423 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19458 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19424 } 19459 }
19425 } 19460 }
19426 19461
19427 19462
19428 var h = { 19463 var h = {
19429 "content-type" : "application/json; charset=utf-8", 19464 "content-type" : "application/json; charset=utf-8",
19430 }; 19465 };
19431 var resp = convert.JSON.encode(buildUserRolePermission()); 19466 var resp = convert.JSON.encode(buildUserRolePermission());
19432 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19467 return new async.Future.value(stringResponse(200, h, resp));
19433 }), true); 19468 }), true);
19434 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePer mission response) { 19469 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRolePer mission response) {
19435 checkUserRolePermission(response); 19470 checkUserRolePermission(response);
19436 }))); 19471 })));
19437 }); 19472 });
19438 19473
19439 unittest.test("method--list", () { 19474 unittest.test("method--list", () {
19440 19475
19441 var mock = new common_test.HttpServerMock(); 19476 var mock = new HttpServerMock();
19442 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use rRolePermissions; 19477 api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).use rRolePermissions;
19443 var arg_profileId = "foo"; 19478 var arg_profileId = "foo";
19444 var arg_ids = buildUnnamed517(); 19479 var arg_ids = buildUnnamed930();
19445 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19480 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19446 var path = (req.url).path; 19481 var path = (req.url).path;
19447 var pathOffset = 0; 19482 var pathOffset = 0;
19448 var index; 19483 var index;
19449 var subPart; 19484 var subPart;
19450 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 19485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
19451 pathOffset += 1; 19486 pathOffset += 1;
19452 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/")); 19487 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("dfareporting/v2.0/"));
19453 pathOffset += 18; 19488 pathOffset += 18;
19454 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/")); 19489 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("userprofiles/"));
(...skipping 22 matching lines...) Expand all
19477 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19512 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19478 } 19513 }
19479 } 19514 }
19480 unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); 19515 unittest.expect(queryMap["ids"], unittest.equals(arg_ids));
19481 19516
19482 19517
19483 var h = { 19518 var h = {
19484 "content-type" : "application/json; charset=utf-8", 19519 "content-type" : "application/json; charset=utf-8",
19485 }; 19520 };
19486 var resp = convert.JSON.encode(buildUserRolePermissionsListResponse()); 19521 var resp = convert.JSON.encode(buildUserRolePermissionsListResponse());
19487 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19522 return new async.Future.value(stringResponse(200, h, resp));
19488 }), true); 19523 }), true);
19489 res.list(arg_profileId, ids: arg_ids).then(unittest.expectAsync(((api.User RolePermissionsListResponse response) { 19524 res.list(arg_profileId, ids: arg_ids).then(unittest.expectAsync(((api.User RolePermissionsListResponse response) {
19490 checkUserRolePermissionsListResponse(response); 19525 checkUserRolePermissionsListResponse(response);
19491 }))); 19526 })));
19492 }); 19527 });
19493 19528
19494 }); 19529 });
19495 19530
19496 19531
19497 unittest.group("resource-UserRolesResourceApi", () { 19532 unittest.group("resource-UserRolesResourceApi", () {
19498 unittest.test("method--delete", () { 19533 unittest.test("method--delete", () {
19499 19534
19500 var mock = new common_test.HttpServerMock(); 19535 var mock = new HttpServerMock();
19501 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; 19536 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles;
19502 var arg_profileId = "foo"; 19537 var arg_profileId = "foo";
19503 var arg_id = "foo"; 19538 var arg_id = "foo";
19504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19539 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19505 var path = (req.url).path; 19540 var path = (req.url).path;
19506 var pathOffset = 0; 19541 var pathOffset = 0;
19507 var index; 19542 var index;
19508 var subPart; 19543 var subPart;
19509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 19544 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
19510 pathOffset += 1; 19545 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
19538 var keyvalue = part.split("="); 19573 var keyvalue = part.split("=");
19539 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19574 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19540 } 19575 }
19541 } 19576 }
19542 19577
19543 19578
19544 var h = { 19579 var h = {
19545 "content-type" : "application/json; charset=utf-8", 19580 "content-type" : "application/json; charset=utf-8",
19546 }; 19581 };
19547 var resp = ""; 19582 var resp = "";
19548 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19583 return new async.Future.value(stringResponse(200, h, resp));
19549 }), true); 19584 }), true);
19550 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {})); 19585 res.delete(arg_profileId, arg_id).then(unittest.expectAsync((_) {}));
19551 }); 19586 });
19552 19587
19553 unittest.test("method--get", () { 19588 unittest.test("method--get", () {
19554 19589
19555 var mock = new common_test.HttpServerMock(); 19590 var mock = new HttpServerMock();
19556 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; 19591 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles;
19557 var arg_profileId = "foo"; 19592 var arg_profileId = "foo";
19558 var arg_id = "foo"; 19593 var arg_id = "foo";
19559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19594 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19560 var path = (req.url).path; 19595 var path = (req.url).path;
19561 var pathOffset = 0; 19596 var pathOffset = 0;
19562 var index; 19597 var index;
19563 var subPart; 19598 var subPart;
19564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 19599 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
19565 pathOffset += 1; 19600 pathOffset += 1;
(...skipping 27 matching lines...) Expand all
19593 var keyvalue = part.split("="); 19628 var keyvalue = part.split("=");
19594 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19629 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19595 } 19630 }
19596 } 19631 }
19597 19632
19598 19633
19599 var h = { 19634 var h = {
19600 "content-type" : "application/json; charset=utf-8", 19635 "content-type" : "application/json; charset=utf-8",
19601 }; 19636 };
19602 var resp = convert.JSON.encode(buildUserRole()); 19637 var resp = convert.JSON.encode(buildUserRole());
19603 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19638 return new async.Future.value(stringResponse(200, h, resp));
19604 }), true); 19639 }), true);
19605 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRole re sponse) { 19640 res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.UserRole re sponse) {
19606 checkUserRole(response); 19641 checkUserRole(response);
19607 }))); 19642 })));
19608 }); 19643 });
19609 19644
19610 unittest.test("method--insert", () { 19645 unittest.test("method--insert", () {
19611 19646
19612 var mock = new common_test.HttpServerMock(); 19647 var mock = new HttpServerMock();
19613 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; 19648 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles;
19614 var arg_request = buildUserRole(); 19649 var arg_request = buildUserRole();
19615 var arg_profileId = "foo"; 19650 var arg_profileId = "foo";
19616 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19651 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19617 var obj = new api.UserRole.fromJson(json); 19652 var obj = new api.UserRole.fromJson(json);
19618 checkUserRole(obj); 19653 checkUserRole(obj);
19619 19654
19620 var path = (req.url).path; 19655 var path = (req.url).path;
19621 var pathOffset = 0; 19656 var pathOffset = 0;
19622 var index; 19657 var index;
(...skipping 27 matching lines...) Expand all
19650 var keyvalue = part.split("="); 19685 var keyvalue = part.split("=");
19651 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19686 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19652 } 19687 }
19653 } 19688 }
19654 19689
19655 19690
19656 var h = { 19691 var h = {
19657 "content-type" : "application/json; charset=utf-8", 19692 "content-type" : "application/json; charset=utf-8",
19658 }; 19693 };
19659 var resp = convert.JSON.encode(buildUserRole()); 19694 var resp = convert.JSON.encode(buildUserRole());
19660 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19695 return new async.Future.value(stringResponse(200, h, resp));
19661 }), true); 19696 }), true);
19662 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Use rRole response) { 19697 res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.Use rRole response) {
19663 checkUserRole(response); 19698 checkUserRole(response);
19664 }))); 19699 })));
19665 }); 19700 });
19666 19701
19667 unittest.test("method--list", () { 19702 unittest.test("method--list", () {
19668 19703
19669 var mock = new common_test.HttpServerMock(); 19704 var mock = new HttpServerMock();
19670 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; 19705 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles;
19671 var arg_profileId = "foo"; 19706 var arg_profileId = "foo";
19672 var arg_accountUserRoleOnly = true; 19707 var arg_accountUserRoleOnly = true;
19673 var arg_ids = buildUnnamed518(); 19708 var arg_ids = buildUnnamed931();
19674 var arg_maxResults = 42; 19709 var arg_maxResults = 42;
19675 var arg_pageToken = "foo"; 19710 var arg_pageToken = "foo";
19676 var arg_searchString = "foo"; 19711 var arg_searchString = "foo";
19677 var arg_sortField = "foo"; 19712 var arg_sortField = "foo";
19678 var arg_sortOrder = "foo"; 19713 var arg_sortOrder = "foo";
19679 var arg_subaccountId = "foo"; 19714 var arg_subaccountId = "foo";
19680 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19715 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19681 var path = (req.url).path; 19716 var path = (req.url).path;
19682 var pathOffset = 0; 19717 var pathOffset = 0;
19683 var index; 19718 var index;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
19719 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString)); 19754 unittest.expect(queryMap["searchString"].first, unittest.equals(arg_sear chString));
19720 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld)); 19755 unittest.expect(queryMap["sortField"].first, unittest.equals(arg_sortFie ld));
19721 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er)); 19756 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd er));
19722 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId)); 19757 unittest.expect(queryMap["subaccountId"].first, unittest.equals(arg_suba ccountId));
19723 19758
19724 19759
19725 var h = { 19760 var h = {
19726 "content-type" : "application/json; charset=utf-8", 19761 "content-type" : "application/json; charset=utf-8",
19727 }; 19762 };
19728 var resp = convert.JSON.encode(buildUserRolesListResponse()); 19763 var resp = convert.JSON.encode(buildUserRolesListResponse());
19729 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19764 return new async.Future.value(stringResponse(200, h, resp));
19730 }), true); 19765 }), true);
19731 res.list(arg_profileId, accountUserRoleOnly: arg_accountUserRoleOnly, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: ar g_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId : arg_subaccountId).then(unittest.expectAsync(((api.UserRolesListResponse respon se) { 19766 res.list(arg_profileId, accountUserRoleOnly: arg_accountUserRoleOnly, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: ar g_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId : arg_subaccountId).then(unittest.expectAsync(((api.UserRolesListResponse respon se) {
19732 checkUserRolesListResponse(response); 19767 checkUserRolesListResponse(response);
19733 }))); 19768 })));
19734 }); 19769 });
19735 19770
19736 unittest.test("method--patch", () { 19771 unittest.test("method--patch", () {
19737 19772
19738 var mock = new common_test.HttpServerMock(); 19773 var mock = new HttpServerMock();
19739 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; 19774 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles;
19740 var arg_request = buildUserRole(); 19775 var arg_request = buildUserRole();
19741 var arg_profileId = "foo"; 19776 var arg_profileId = "foo";
19742 var arg_id = "foo"; 19777 var arg_id = "foo";
19743 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19778 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19744 var obj = new api.UserRole.fromJson(json); 19779 var obj = new api.UserRole.fromJson(json);
19745 checkUserRole(obj); 19780 checkUserRole(obj);
19746 19781
19747 var path = (req.url).path; 19782 var path = (req.url).path;
19748 var pathOffset = 0; 19783 var pathOffset = 0;
(...skipping 29 matching lines...) Expand all
19778 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19813 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19779 } 19814 }
19780 } 19815 }
19781 unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); 19816 unittest.expect(queryMap["id"].first, unittest.equals(arg_id));
19782 19817
19783 19818
19784 var h = { 19819 var h = {
19785 "content-type" : "application/json; charset=utf-8", 19820 "content-type" : "application/json; charset=utf-8",
19786 }; 19821 };
19787 var resp = convert.JSON.encode(buildUserRole()); 19822 var resp = convert.JSON.encode(buildUserRole());
19788 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19823 return new async.Future.value(stringResponse(200, h, resp));
19789 }), true); 19824 }), true);
19790 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.UserRole response) { 19825 res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync((( api.UserRole response) {
19791 checkUserRole(response); 19826 checkUserRole(response);
19792 }))); 19827 })));
19793 }); 19828 });
19794 19829
19795 unittest.test("method--update", () { 19830 unittest.test("method--update", () {
19796 19831
19797 var mock = new common_test.HttpServerMock(); 19832 var mock = new HttpServerMock();
19798 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; 19833 api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles;
19799 var arg_request = buildUserRole(); 19834 var arg_request = buildUserRole();
19800 var arg_profileId = "foo"; 19835 var arg_profileId = "foo";
19801 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 19836 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
19802 var obj = new api.UserRole.fromJson(json); 19837 var obj = new api.UserRole.fromJson(json);
19803 checkUserRole(obj); 19838 checkUserRole(obj);
19804 19839
19805 var path = (req.url).path; 19840 var path = (req.url).path;
19806 var pathOffset = 0; 19841 var pathOffset = 0;
19807 var index; 19842 var index;
(...skipping 27 matching lines...) Expand all
19835 var keyvalue = part.split("="); 19870 var keyvalue = part.split("=");
19836 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 19871 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
19837 } 19872 }
19838 } 19873 }
19839 19874
19840 19875
19841 var h = { 19876 var h = {
19842 "content-type" : "application/json; charset=utf-8", 19877 "content-type" : "application/json; charset=utf-8",
19843 }; 19878 };
19844 var resp = convert.JSON.encode(buildUserRole()); 19879 var resp = convert.JSON.encode(buildUserRole());
19845 return new async.Future.value(common_test.stringResponse(200, h, resp)); 19880 return new async.Future.value(stringResponse(200, h, resp));
19846 }), true); 19881 }), true);
19847 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Use rRole response) { 19882 res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.Use rRole response) {
19848 checkUserRole(response); 19883 checkUserRole(response);
19849 }))); 19884 })));
19850 }); 19885 });
19851 19886
19852 }); 19887 });
19853 19888
19854 19889
19855 } 19890 }
19856 19891
OLDNEW
« no previous file with comments | « generated/googleapis/test/dfareporting/v1_3_test.dart ('k') | generated/googleapis/test/discovery/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698