OLD | NEW |
1 library googleapis.admin.reports_v1.test; | 1 library googleapis.admin.reports_v1.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; | 11 import 'package:googleapis/common/common.dart' as common; |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
14 | 14 |
15 import 'package:googleapis/admin/reports_v1.dart' as api; | 15 import 'package:googleapis/admin/reports_v1.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed384() { | 19 buildUnnamed407() { |
20 var o = new core.List<api.Activity>(); | 20 var o = new core.List<api.Activity>(); |
21 o.add(buildActivity()); | 21 o.add(buildActivity()); |
22 o.add(buildActivity()); | 22 o.add(buildActivity()); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed384(core.List<api.Activity> o) { | 26 checkUnnamed407(core.List<api.Activity> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 checkActivity(o[0]); | 28 checkActivity(o[0]); |
29 checkActivity(o[1]); | 29 checkActivity(o[1]); |
30 } | 30 } |
31 | 31 |
32 core.int buildCounterActivities = 0; | 32 core.int buildCounterActivities = 0; |
33 buildActivities() { | 33 buildActivities() { |
34 var o = new api.Activities(); | 34 var o = new api.Activities(); |
35 buildCounterActivities++; | 35 buildCounterActivities++; |
36 if (buildCounterActivities < 3) { | 36 if (buildCounterActivities < 3) { |
37 o.etag = "foo"; | 37 o.etag = "foo"; |
38 o.items = buildUnnamed384(); | 38 o.items = buildUnnamed407(); |
39 o.kind = "foo"; | 39 o.kind = "foo"; |
40 o.nextPageToken = "foo"; | 40 o.nextPageToken = "foo"; |
41 } | 41 } |
42 buildCounterActivities--; | 42 buildCounterActivities--; |
43 return o; | 43 return o; |
44 } | 44 } |
45 | 45 |
46 checkActivities(api.Activities o) { | 46 checkActivities(api.Activities o) { |
47 buildCounterActivities++; | 47 buildCounterActivities++; |
48 if (buildCounterActivities < 3) { | 48 if (buildCounterActivities < 3) { |
49 unittest.expect(o.etag, unittest.equals('foo')); | 49 unittest.expect(o.etag, unittest.equals('foo')); |
50 checkUnnamed384(o.items); | 50 checkUnnamed407(o.items); |
51 unittest.expect(o.kind, unittest.equals('foo')); | 51 unittest.expect(o.kind, unittest.equals('foo')); |
52 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 52 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
53 } | 53 } |
54 buildCounterActivities--; | 54 buildCounterActivities--; |
55 } | 55 } |
56 | 56 |
57 core.int buildCounterActivityActor = 0; | 57 core.int buildCounterActivityActor = 0; |
58 buildActivityActor() { | 58 buildActivityActor() { |
59 var o = new api.ActivityActor(); | 59 var o = new api.ActivityActor(); |
60 buildCounterActivityActor++; | 60 buildCounterActivityActor++; |
(...skipping 11 matching lines...) Expand all Loading... |
72 buildCounterActivityActor++; | 72 buildCounterActivityActor++; |
73 if (buildCounterActivityActor < 3) { | 73 if (buildCounterActivityActor < 3) { |
74 unittest.expect(o.callerType, unittest.equals('foo')); | 74 unittest.expect(o.callerType, unittest.equals('foo')); |
75 unittest.expect(o.email, unittest.equals('foo')); | 75 unittest.expect(o.email, unittest.equals('foo')); |
76 unittest.expect(o.key, unittest.equals('foo')); | 76 unittest.expect(o.key, unittest.equals('foo')); |
77 unittest.expect(o.profileId, unittest.equals('foo')); | 77 unittest.expect(o.profileId, unittest.equals('foo')); |
78 } | 78 } |
79 buildCounterActivityActor--; | 79 buildCounterActivityActor--; |
80 } | 80 } |
81 | 81 |
| 82 buildUnnamed408() { |
| 83 var o = new core.List<core.String>(); |
| 84 o.add("foo"); |
| 85 o.add("foo"); |
| 86 return o; |
| 87 } |
| 88 |
| 89 checkUnnamed408(core.List<core.String> o) { |
| 90 unittest.expect(o, unittest.hasLength(2)); |
| 91 unittest.expect(o[0], unittest.equals('foo')); |
| 92 unittest.expect(o[1], unittest.equals('foo')); |
| 93 } |
| 94 |
| 95 buildUnnamed409() { |
| 96 var o = new core.List<core.String>(); |
| 97 o.add("foo"); |
| 98 o.add("foo"); |
| 99 return o; |
| 100 } |
| 101 |
| 102 checkUnnamed409(core.List<core.String> o) { |
| 103 unittest.expect(o, unittest.hasLength(2)); |
| 104 unittest.expect(o[0], unittest.equals('foo')); |
| 105 unittest.expect(o[1], unittest.equals('foo')); |
| 106 } |
| 107 |
82 core.int buildCounterActivityEventsParameters = 0; | 108 core.int buildCounterActivityEventsParameters = 0; |
83 buildActivityEventsParameters() { | 109 buildActivityEventsParameters() { |
84 var o = new api.ActivityEventsParameters(); | 110 var o = new api.ActivityEventsParameters(); |
85 buildCounterActivityEventsParameters++; | 111 buildCounterActivityEventsParameters++; |
86 if (buildCounterActivityEventsParameters < 3) { | 112 if (buildCounterActivityEventsParameters < 3) { |
87 o.boolValue = true; | 113 o.boolValue = true; |
88 o.intValue = "foo"; | 114 o.intValue = "foo"; |
| 115 o.multiIntValue = buildUnnamed408(); |
| 116 o.multiValue = buildUnnamed409(); |
89 o.name = "foo"; | 117 o.name = "foo"; |
90 o.value = "foo"; | 118 o.value = "foo"; |
91 } | 119 } |
92 buildCounterActivityEventsParameters--; | 120 buildCounterActivityEventsParameters--; |
93 return o; | 121 return o; |
94 } | 122 } |
95 | 123 |
96 checkActivityEventsParameters(api.ActivityEventsParameters o) { | 124 checkActivityEventsParameters(api.ActivityEventsParameters o) { |
97 buildCounterActivityEventsParameters++; | 125 buildCounterActivityEventsParameters++; |
98 if (buildCounterActivityEventsParameters < 3) { | 126 if (buildCounterActivityEventsParameters < 3) { |
99 unittest.expect(o.boolValue, unittest.isTrue); | 127 unittest.expect(o.boolValue, unittest.isTrue); |
100 unittest.expect(o.intValue, unittest.equals('foo')); | 128 unittest.expect(o.intValue, unittest.equals('foo')); |
| 129 checkUnnamed408(o.multiIntValue); |
| 130 checkUnnamed409(o.multiValue); |
101 unittest.expect(o.name, unittest.equals('foo')); | 131 unittest.expect(o.name, unittest.equals('foo')); |
102 unittest.expect(o.value, unittest.equals('foo')); | 132 unittest.expect(o.value, unittest.equals('foo')); |
103 } | 133 } |
104 buildCounterActivityEventsParameters--; | 134 buildCounterActivityEventsParameters--; |
105 } | 135 } |
106 | 136 |
107 buildUnnamed385() { | 137 buildUnnamed410() { |
108 var o = new core.List<api.ActivityEventsParameters>(); | 138 var o = new core.List<api.ActivityEventsParameters>(); |
109 o.add(buildActivityEventsParameters()); | 139 o.add(buildActivityEventsParameters()); |
110 o.add(buildActivityEventsParameters()); | 140 o.add(buildActivityEventsParameters()); |
111 return o; | 141 return o; |
112 } | 142 } |
113 | 143 |
114 checkUnnamed385(core.List<api.ActivityEventsParameters> o) { | 144 checkUnnamed410(core.List<api.ActivityEventsParameters> o) { |
115 unittest.expect(o, unittest.hasLength(2)); | 145 unittest.expect(o, unittest.hasLength(2)); |
116 checkActivityEventsParameters(o[0]); | 146 checkActivityEventsParameters(o[0]); |
117 checkActivityEventsParameters(o[1]); | 147 checkActivityEventsParameters(o[1]); |
118 } | 148 } |
119 | 149 |
120 core.int buildCounterActivityEvents = 0; | 150 core.int buildCounterActivityEvents = 0; |
121 buildActivityEvents() { | 151 buildActivityEvents() { |
122 var o = new api.ActivityEvents(); | 152 var o = new api.ActivityEvents(); |
123 buildCounterActivityEvents++; | 153 buildCounterActivityEvents++; |
124 if (buildCounterActivityEvents < 3) { | 154 if (buildCounterActivityEvents < 3) { |
125 o.name = "foo"; | 155 o.name = "foo"; |
126 o.parameters = buildUnnamed385(); | 156 o.parameters = buildUnnamed410(); |
127 o.type = "foo"; | 157 o.type = "foo"; |
128 } | 158 } |
129 buildCounterActivityEvents--; | 159 buildCounterActivityEvents--; |
130 return o; | 160 return o; |
131 } | 161 } |
132 | 162 |
133 checkActivityEvents(api.ActivityEvents o) { | 163 checkActivityEvents(api.ActivityEvents o) { |
134 buildCounterActivityEvents++; | 164 buildCounterActivityEvents++; |
135 if (buildCounterActivityEvents < 3) { | 165 if (buildCounterActivityEvents < 3) { |
136 unittest.expect(o.name, unittest.equals('foo')); | 166 unittest.expect(o.name, unittest.equals('foo')); |
137 checkUnnamed385(o.parameters); | 167 checkUnnamed410(o.parameters); |
138 unittest.expect(o.type, unittest.equals('foo')); | 168 unittest.expect(o.type, unittest.equals('foo')); |
139 } | 169 } |
140 buildCounterActivityEvents--; | 170 buildCounterActivityEvents--; |
141 } | 171 } |
142 | 172 |
143 buildUnnamed386() { | 173 buildUnnamed411() { |
144 var o = new core.List<api.ActivityEvents>(); | 174 var o = new core.List<api.ActivityEvents>(); |
145 o.add(buildActivityEvents()); | 175 o.add(buildActivityEvents()); |
146 o.add(buildActivityEvents()); | 176 o.add(buildActivityEvents()); |
147 return o; | 177 return o; |
148 } | 178 } |
149 | 179 |
150 checkUnnamed386(core.List<api.ActivityEvents> o) { | 180 checkUnnamed411(core.List<api.ActivityEvents> o) { |
151 unittest.expect(o, unittest.hasLength(2)); | 181 unittest.expect(o, unittest.hasLength(2)); |
152 checkActivityEvents(o[0]); | 182 checkActivityEvents(o[0]); |
153 checkActivityEvents(o[1]); | 183 checkActivityEvents(o[1]); |
154 } | 184 } |
155 | 185 |
156 core.int buildCounterActivityId = 0; | 186 core.int buildCounterActivityId = 0; |
157 buildActivityId() { | 187 buildActivityId() { |
158 var o = new api.ActivityId(); | 188 var o = new api.ActivityId(); |
159 buildCounterActivityId++; | 189 buildCounterActivityId++; |
160 if (buildCounterActivityId < 3) { | 190 if (buildCounterActivityId < 3) { |
(...skipping 17 matching lines...) Expand all Loading... |
178 buildCounterActivityId--; | 208 buildCounterActivityId--; |
179 } | 209 } |
180 | 210 |
181 core.int buildCounterActivity = 0; | 211 core.int buildCounterActivity = 0; |
182 buildActivity() { | 212 buildActivity() { |
183 var o = new api.Activity(); | 213 var o = new api.Activity(); |
184 buildCounterActivity++; | 214 buildCounterActivity++; |
185 if (buildCounterActivity < 3) { | 215 if (buildCounterActivity < 3) { |
186 o.actor = buildActivityActor(); | 216 o.actor = buildActivityActor(); |
187 o.etag = "foo"; | 217 o.etag = "foo"; |
188 o.events = buildUnnamed386(); | 218 o.events = buildUnnamed411(); |
189 o.id = buildActivityId(); | 219 o.id = buildActivityId(); |
190 o.ipAddress = "foo"; | 220 o.ipAddress = "foo"; |
191 o.kind = "foo"; | 221 o.kind = "foo"; |
192 o.ownerDomain = "foo"; | 222 o.ownerDomain = "foo"; |
193 } | 223 } |
194 buildCounterActivity--; | 224 buildCounterActivity--; |
195 return o; | 225 return o; |
196 } | 226 } |
197 | 227 |
198 checkActivity(api.Activity o) { | 228 checkActivity(api.Activity o) { |
199 buildCounterActivity++; | 229 buildCounterActivity++; |
200 if (buildCounterActivity < 3) { | 230 if (buildCounterActivity < 3) { |
201 checkActivityActor(o.actor); | 231 checkActivityActor(o.actor); |
202 unittest.expect(o.etag, unittest.equals('foo')); | 232 unittest.expect(o.etag, unittest.equals('foo')); |
203 checkUnnamed386(o.events); | 233 checkUnnamed411(o.events); |
204 checkActivityId(o.id); | 234 checkActivityId(o.id); |
205 unittest.expect(o.ipAddress, unittest.equals('foo')); | 235 unittest.expect(o.ipAddress, unittest.equals('foo')); |
206 unittest.expect(o.kind, unittest.equals('foo')); | 236 unittest.expect(o.kind, unittest.equals('foo')); |
207 unittest.expect(o.ownerDomain, unittest.equals('foo')); | 237 unittest.expect(o.ownerDomain, unittest.equals('foo')); |
208 } | 238 } |
209 buildCounterActivity--; | 239 buildCounterActivity--; |
210 } | 240 } |
211 | 241 |
212 buildUnnamed387() { | 242 buildUnnamed412() { |
213 var o = new core.Map<core.String, core.String>(); | 243 var o = new core.Map<core.String, core.String>(); |
214 o["x"] = "foo"; | 244 o["x"] = "foo"; |
215 o["y"] = "foo"; | 245 o["y"] = "foo"; |
216 return o; | 246 return o; |
217 } | 247 } |
218 | 248 |
219 checkUnnamed387(core.Map<core.String, core.String> o) { | 249 checkUnnamed412(core.Map<core.String, core.String> o) { |
220 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
221 unittest.expect(o["x"], unittest.equals('foo')); | 251 unittest.expect(o["x"], unittest.equals('foo')); |
222 unittest.expect(o["y"], unittest.equals('foo')); | 252 unittest.expect(o["y"], unittest.equals('foo')); |
223 } | 253 } |
224 | 254 |
225 core.int buildCounterChannel = 0; | 255 core.int buildCounterChannel = 0; |
226 buildChannel() { | 256 buildChannel() { |
227 var o = new api.Channel(); | 257 var o = new api.Channel(); |
228 buildCounterChannel++; | 258 buildCounterChannel++; |
229 if (buildCounterChannel < 3) { | 259 if (buildCounterChannel < 3) { |
230 o.address = "foo"; | 260 o.address = "foo"; |
231 o.expiration = "foo"; | 261 o.expiration = "foo"; |
232 o.id = "foo"; | 262 o.id = "foo"; |
233 o.kind = "foo"; | 263 o.kind = "foo"; |
234 o.params = buildUnnamed387(); | 264 o.params = buildUnnamed412(); |
235 o.payload = true; | 265 o.payload = true; |
236 o.resourceId = "foo"; | 266 o.resourceId = "foo"; |
237 o.resourceUri = "foo"; | 267 o.resourceUri = "foo"; |
238 o.token = "foo"; | 268 o.token = "foo"; |
239 o.type = "foo"; | 269 o.type = "foo"; |
240 } | 270 } |
241 buildCounterChannel--; | 271 buildCounterChannel--; |
242 return o; | 272 return o; |
243 } | 273 } |
244 | 274 |
245 checkChannel(api.Channel o) { | 275 checkChannel(api.Channel o) { |
246 buildCounterChannel++; | 276 buildCounterChannel++; |
247 if (buildCounterChannel < 3) { | 277 if (buildCounterChannel < 3) { |
248 unittest.expect(o.address, unittest.equals('foo')); | 278 unittest.expect(o.address, unittest.equals('foo')); |
249 unittest.expect(o.expiration, unittest.equals('foo')); | 279 unittest.expect(o.expiration, unittest.equals('foo')); |
250 unittest.expect(o.id, unittest.equals('foo')); | 280 unittest.expect(o.id, unittest.equals('foo')); |
251 unittest.expect(o.kind, unittest.equals('foo')); | 281 unittest.expect(o.kind, unittest.equals('foo')); |
252 checkUnnamed387(o.params); | 282 checkUnnamed412(o.params); |
253 unittest.expect(o.payload, unittest.isTrue); | 283 unittest.expect(o.payload, unittest.isTrue); |
254 unittest.expect(o.resourceId, unittest.equals('foo')); | 284 unittest.expect(o.resourceId, unittest.equals('foo')); |
255 unittest.expect(o.resourceUri, unittest.equals('foo')); | 285 unittest.expect(o.resourceUri, unittest.equals('foo')); |
256 unittest.expect(o.token, unittest.equals('foo')); | 286 unittest.expect(o.token, unittest.equals('foo')); |
257 unittest.expect(o.type, unittest.equals('foo')); | 287 unittest.expect(o.type, unittest.equals('foo')); |
258 } | 288 } |
259 buildCounterChannel--; | 289 buildCounterChannel--; |
260 } | 290 } |
261 | 291 |
262 core.int buildCounterUsageReportEntity = 0; | 292 core.int buildCounterUsageReportEntity = 0; |
(...skipping 14 matching lines...) Expand all Loading... |
277 buildCounterUsageReportEntity++; | 307 buildCounterUsageReportEntity++; |
278 if (buildCounterUsageReportEntity < 3) { | 308 if (buildCounterUsageReportEntity < 3) { |
279 unittest.expect(o.customerId, unittest.equals('foo')); | 309 unittest.expect(o.customerId, unittest.equals('foo')); |
280 unittest.expect(o.profileId, unittest.equals('foo')); | 310 unittest.expect(o.profileId, unittest.equals('foo')); |
281 unittest.expect(o.type, unittest.equals('foo')); | 311 unittest.expect(o.type, unittest.equals('foo')); |
282 unittest.expect(o.userEmail, unittest.equals('foo')); | 312 unittest.expect(o.userEmail, unittest.equals('foo')); |
283 } | 313 } |
284 buildCounterUsageReportEntity--; | 314 buildCounterUsageReportEntity--; |
285 } | 315 } |
286 | 316 |
287 buildUnnamed388() { | 317 buildUnnamed413() { |
288 var o = new core.Map<core.String, core.Object>(); | 318 var o = new core.Map<core.String, core.Object>(); |
289 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 319 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
290 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 320 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
291 return o; | 321 return o; |
292 } | 322 } |
293 | 323 |
294 checkUnnamed388(core.Map<core.String, core.Object> o) { | 324 checkUnnamed413(core.Map<core.String, core.Object> o) { |
295 unittest.expect(o, unittest.hasLength(2)); | 325 unittest.expect(o, unittest.hasLength(2)); |
296 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 326 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
297 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 327 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
298 } | 328 } |
299 | 329 |
300 buildUnnamed389() { | 330 buildUnnamed414() { |
301 var o = new core.List<core.Map<core.String, core.Object>>(); | 331 var o = new core.List<core.Map<core.String, core.Object>>(); |
302 o.add(buildUnnamed388()); | 332 o.add(buildUnnamed413()); |
303 o.add(buildUnnamed388()); | 333 o.add(buildUnnamed413()); |
304 return o; | 334 return o; |
305 } | 335 } |
306 | 336 |
307 checkUnnamed389(core.List<core.Map<core.String, core.Object>> o) { | 337 checkUnnamed414(core.List<core.Map<core.String, core.Object>> o) { |
308 unittest.expect(o, unittest.hasLength(2)); | 338 unittest.expect(o, unittest.hasLength(2)); |
309 checkUnnamed388(o[0]); | 339 checkUnnamed413(o[0]); |
310 checkUnnamed388(o[1]); | 340 checkUnnamed413(o[1]); |
311 } | 341 } |
312 | 342 |
313 core.int buildCounterUsageReportParameters = 0; | 343 core.int buildCounterUsageReportParameters = 0; |
314 buildUsageReportParameters() { | 344 buildUsageReportParameters() { |
315 var o = new api.UsageReportParameters(); | 345 var o = new api.UsageReportParameters(); |
316 buildCounterUsageReportParameters++; | 346 buildCounterUsageReportParameters++; |
317 if (buildCounterUsageReportParameters < 3) { | 347 if (buildCounterUsageReportParameters < 3) { |
318 o.boolValue = true; | 348 o.boolValue = true; |
319 o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); | 349 o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); |
320 o.intValue = "foo"; | 350 o.intValue = "foo"; |
321 o.msgValue = buildUnnamed389(); | 351 o.msgValue = buildUnnamed414(); |
322 o.name = "foo"; | 352 o.name = "foo"; |
323 o.stringValue = "foo"; | 353 o.stringValue = "foo"; |
324 } | 354 } |
325 buildCounterUsageReportParameters--; | 355 buildCounterUsageReportParameters--; |
326 return o; | 356 return o; |
327 } | 357 } |
328 | 358 |
329 checkUsageReportParameters(api.UsageReportParameters o) { | 359 checkUsageReportParameters(api.UsageReportParameters o) { |
330 buildCounterUsageReportParameters++; | 360 buildCounterUsageReportParameters++; |
331 if (buildCounterUsageReportParameters < 3) { | 361 if (buildCounterUsageReportParameters < 3) { |
332 unittest.expect(o.boolValue, unittest.isTrue); | 362 unittest.expect(o.boolValue, unittest.isTrue); |
333 unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 363 unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
334 unittest.expect(o.intValue, unittest.equals('foo')); | 364 unittest.expect(o.intValue, unittest.equals('foo')); |
335 checkUnnamed389(o.msgValue); | 365 checkUnnamed414(o.msgValue); |
336 unittest.expect(o.name, unittest.equals('foo')); | 366 unittest.expect(o.name, unittest.equals('foo')); |
337 unittest.expect(o.stringValue, unittest.equals('foo')); | 367 unittest.expect(o.stringValue, unittest.equals('foo')); |
338 } | 368 } |
339 buildCounterUsageReportParameters--; | 369 buildCounterUsageReportParameters--; |
340 } | 370 } |
341 | 371 |
342 buildUnnamed390() { | 372 buildUnnamed415() { |
343 var o = new core.List<api.UsageReportParameters>(); | 373 var o = new core.List<api.UsageReportParameters>(); |
344 o.add(buildUsageReportParameters()); | 374 o.add(buildUsageReportParameters()); |
345 o.add(buildUsageReportParameters()); | 375 o.add(buildUsageReportParameters()); |
346 return o; | 376 return o; |
347 } | 377 } |
348 | 378 |
349 checkUnnamed390(core.List<api.UsageReportParameters> o) { | 379 checkUnnamed415(core.List<api.UsageReportParameters> o) { |
350 unittest.expect(o, unittest.hasLength(2)); | 380 unittest.expect(o, unittest.hasLength(2)); |
351 checkUsageReportParameters(o[0]); | 381 checkUsageReportParameters(o[0]); |
352 checkUsageReportParameters(o[1]); | 382 checkUsageReportParameters(o[1]); |
353 } | 383 } |
354 | 384 |
355 core.int buildCounterUsageReport = 0; | 385 core.int buildCounterUsageReport = 0; |
356 buildUsageReport() { | 386 buildUsageReport() { |
357 var o = new api.UsageReport(); | 387 var o = new api.UsageReport(); |
358 buildCounterUsageReport++; | 388 buildCounterUsageReport++; |
359 if (buildCounterUsageReport < 3) { | 389 if (buildCounterUsageReport < 3) { |
360 o.date = "foo"; | 390 o.date = "foo"; |
361 o.entity = buildUsageReportEntity(); | 391 o.entity = buildUsageReportEntity(); |
362 o.etag = "foo"; | 392 o.etag = "foo"; |
363 o.kind = "foo"; | 393 o.kind = "foo"; |
364 o.parameters = buildUnnamed390(); | 394 o.parameters = buildUnnamed415(); |
365 } | 395 } |
366 buildCounterUsageReport--; | 396 buildCounterUsageReport--; |
367 return o; | 397 return o; |
368 } | 398 } |
369 | 399 |
370 checkUsageReport(api.UsageReport o) { | 400 checkUsageReport(api.UsageReport o) { |
371 buildCounterUsageReport++; | 401 buildCounterUsageReport++; |
372 if (buildCounterUsageReport < 3) { | 402 if (buildCounterUsageReport < 3) { |
373 unittest.expect(o.date, unittest.equals('foo')); | 403 unittest.expect(o.date, unittest.equals('foo')); |
374 checkUsageReportEntity(o.entity); | 404 checkUsageReportEntity(o.entity); |
375 unittest.expect(o.etag, unittest.equals('foo')); | 405 unittest.expect(o.etag, unittest.equals('foo')); |
376 unittest.expect(o.kind, unittest.equals('foo')); | 406 unittest.expect(o.kind, unittest.equals('foo')); |
377 checkUnnamed390(o.parameters); | 407 checkUnnamed415(o.parameters); |
378 } | 408 } |
379 buildCounterUsageReport--; | 409 buildCounterUsageReport--; |
380 } | 410 } |
381 | 411 |
382 buildUnnamed391() { | 412 buildUnnamed416() { |
383 var o = new core.List<api.UsageReport>(); | 413 var o = new core.List<api.UsageReport>(); |
384 o.add(buildUsageReport()); | 414 o.add(buildUsageReport()); |
385 o.add(buildUsageReport()); | 415 o.add(buildUsageReport()); |
386 return o; | 416 return o; |
387 } | 417 } |
388 | 418 |
389 checkUnnamed391(core.List<api.UsageReport> o) { | 419 checkUnnamed416(core.List<api.UsageReport> o) { |
390 unittest.expect(o, unittest.hasLength(2)); | 420 unittest.expect(o, unittest.hasLength(2)); |
391 checkUsageReport(o[0]); | 421 checkUsageReport(o[0]); |
392 checkUsageReport(o[1]); | 422 checkUsageReport(o[1]); |
393 } | 423 } |
394 | 424 |
395 core.int buildCounterUsageReportsWarningsData = 0; | 425 core.int buildCounterUsageReportsWarningsData = 0; |
396 buildUsageReportsWarningsData() { | 426 buildUsageReportsWarningsData() { |
397 var o = new api.UsageReportsWarningsData(); | 427 var o = new api.UsageReportsWarningsData(); |
398 buildCounterUsageReportsWarningsData++; | 428 buildCounterUsageReportsWarningsData++; |
399 if (buildCounterUsageReportsWarningsData < 3) { | 429 if (buildCounterUsageReportsWarningsData < 3) { |
400 o.key = "foo"; | 430 o.key = "foo"; |
401 o.value = "foo"; | 431 o.value = "foo"; |
402 } | 432 } |
403 buildCounterUsageReportsWarningsData--; | 433 buildCounterUsageReportsWarningsData--; |
404 return o; | 434 return o; |
405 } | 435 } |
406 | 436 |
407 checkUsageReportsWarningsData(api.UsageReportsWarningsData o) { | 437 checkUsageReportsWarningsData(api.UsageReportsWarningsData o) { |
408 buildCounterUsageReportsWarningsData++; | 438 buildCounterUsageReportsWarningsData++; |
409 if (buildCounterUsageReportsWarningsData < 3) { | 439 if (buildCounterUsageReportsWarningsData < 3) { |
410 unittest.expect(o.key, unittest.equals('foo')); | 440 unittest.expect(o.key, unittest.equals('foo')); |
411 unittest.expect(o.value, unittest.equals('foo')); | 441 unittest.expect(o.value, unittest.equals('foo')); |
412 } | 442 } |
413 buildCounterUsageReportsWarningsData--; | 443 buildCounterUsageReportsWarningsData--; |
414 } | 444 } |
415 | 445 |
416 buildUnnamed392() { | 446 buildUnnamed417() { |
417 var o = new core.List<api.UsageReportsWarningsData>(); | 447 var o = new core.List<api.UsageReportsWarningsData>(); |
418 o.add(buildUsageReportsWarningsData()); | 448 o.add(buildUsageReportsWarningsData()); |
419 o.add(buildUsageReportsWarningsData()); | 449 o.add(buildUsageReportsWarningsData()); |
420 return o; | 450 return o; |
421 } | 451 } |
422 | 452 |
423 checkUnnamed392(core.List<api.UsageReportsWarningsData> o) { | 453 checkUnnamed417(core.List<api.UsageReportsWarningsData> o) { |
424 unittest.expect(o, unittest.hasLength(2)); | 454 unittest.expect(o, unittest.hasLength(2)); |
425 checkUsageReportsWarningsData(o[0]); | 455 checkUsageReportsWarningsData(o[0]); |
426 checkUsageReportsWarningsData(o[1]); | 456 checkUsageReportsWarningsData(o[1]); |
427 } | 457 } |
428 | 458 |
429 core.int buildCounterUsageReportsWarnings = 0; | 459 core.int buildCounterUsageReportsWarnings = 0; |
430 buildUsageReportsWarnings() { | 460 buildUsageReportsWarnings() { |
431 var o = new api.UsageReportsWarnings(); | 461 var o = new api.UsageReportsWarnings(); |
432 buildCounterUsageReportsWarnings++; | 462 buildCounterUsageReportsWarnings++; |
433 if (buildCounterUsageReportsWarnings < 3) { | 463 if (buildCounterUsageReportsWarnings < 3) { |
434 o.code = "foo"; | 464 o.code = "foo"; |
435 o.data = buildUnnamed392(); | 465 o.data = buildUnnamed417(); |
436 o.message = "foo"; | 466 o.message = "foo"; |
437 } | 467 } |
438 buildCounterUsageReportsWarnings--; | 468 buildCounterUsageReportsWarnings--; |
439 return o; | 469 return o; |
440 } | 470 } |
441 | 471 |
442 checkUsageReportsWarnings(api.UsageReportsWarnings o) { | 472 checkUsageReportsWarnings(api.UsageReportsWarnings o) { |
443 buildCounterUsageReportsWarnings++; | 473 buildCounterUsageReportsWarnings++; |
444 if (buildCounterUsageReportsWarnings < 3) { | 474 if (buildCounterUsageReportsWarnings < 3) { |
445 unittest.expect(o.code, unittest.equals('foo')); | 475 unittest.expect(o.code, unittest.equals('foo')); |
446 checkUnnamed392(o.data); | 476 checkUnnamed417(o.data); |
447 unittest.expect(o.message, unittest.equals('foo')); | 477 unittest.expect(o.message, unittest.equals('foo')); |
448 } | 478 } |
449 buildCounterUsageReportsWarnings--; | 479 buildCounterUsageReportsWarnings--; |
450 } | 480 } |
451 | 481 |
452 buildUnnamed393() { | 482 buildUnnamed418() { |
453 var o = new core.List<api.UsageReportsWarnings>(); | 483 var o = new core.List<api.UsageReportsWarnings>(); |
454 o.add(buildUsageReportsWarnings()); | 484 o.add(buildUsageReportsWarnings()); |
455 o.add(buildUsageReportsWarnings()); | 485 o.add(buildUsageReportsWarnings()); |
456 return o; | 486 return o; |
457 } | 487 } |
458 | 488 |
459 checkUnnamed393(core.List<api.UsageReportsWarnings> o) { | 489 checkUnnamed418(core.List<api.UsageReportsWarnings> o) { |
460 unittest.expect(o, unittest.hasLength(2)); | 490 unittest.expect(o, unittest.hasLength(2)); |
461 checkUsageReportsWarnings(o[0]); | 491 checkUsageReportsWarnings(o[0]); |
462 checkUsageReportsWarnings(o[1]); | 492 checkUsageReportsWarnings(o[1]); |
463 } | 493 } |
464 | 494 |
465 core.int buildCounterUsageReports = 0; | 495 core.int buildCounterUsageReports = 0; |
466 buildUsageReports() { | 496 buildUsageReports() { |
467 var o = new api.UsageReports(); | 497 var o = new api.UsageReports(); |
468 buildCounterUsageReports++; | 498 buildCounterUsageReports++; |
469 if (buildCounterUsageReports < 3) { | 499 if (buildCounterUsageReports < 3) { |
470 o.etag = "foo"; | 500 o.etag = "foo"; |
471 o.kind = "foo"; | 501 o.kind = "foo"; |
472 o.nextPageToken = "foo"; | 502 o.nextPageToken = "foo"; |
473 o.usageReports = buildUnnamed391(); | 503 o.usageReports = buildUnnamed416(); |
474 o.warnings = buildUnnamed393(); | 504 o.warnings = buildUnnamed418(); |
475 } | 505 } |
476 buildCounterUsageReports--; | 506 buildCounterUsageReports--; |
477 return o; | 507 return o; |
478 } | 508 } |
479 | 509 |
480 checkUsageReports(api.UsageReports o) { | 510 checkUsageReports(api.UsageReports o) { |
481 buildCounterUsageReports++; | 511 buildCounterUsageReports++; |
482 if (buildCounterUsageReports < 3) { | 512 if (buildCounterUsageReports < 3) { |
483 unittest.expect(o.etag, unittest.equals('foo')); | 513 unittest.expect(o.etag, unittest.equals('foo')); |
484 unittest.expect(o.kind, unittest.equals('foo')); | 514 unittest.expect(o.kind, unittest.equals('foo')); |
485 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 515 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
486 checkUnnamed391(o.usageReports); | 516 checkUnnamed416(o.usageReports); |
487 checkUnnamed393(o.warnings); | 517 checkUnnamed418(o.warnings); |
488 } | 518 } |
489 buildCounterUsageReports--; | 519 buildCounterUsageReports--; |
490 } | 520 } |
491 | 521 |
492 | 522 |
493 main() { | 523 main() { |
494 unittest.group("obj-schema-Activities", () { | 524 unittest.group("obj-schema-Activities", () { |
495 unittest.test("to-json--from-json", () { | 525 unittest.test("to-json--from-json", () { |
496 var o = buildActivities(); | 526 var o = buildActivities(); |
497 var od = new api.Activities.fromJson(o.toJson()); | 527 var od = new api.Activities.fromJson(o.toJson()); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
621 var arg_eventName = "foo"; | 651 var arg_eventName = "foo"; |
622 var arg_filters = "foo"; | 652 var arg_filters = "foo"; |
623 var arg_maxResults = 42; | 653 var arg_maxResults = 42; |
624 var arg_pageToken = "foo"; | 654 var arg_pageToken = "foo"; |
625 var arg_startTime = "foo"; | 655 var arg_startTime = "foo"; |
626 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 656 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
627 var path = (req.url).path; | 657 var path = (req.url).path; |
628 var pathOffset = 0; | 658 var pathOffset = 0; |
629 var index; | 659 var index; |
630 var subPart; | 660 var subPart; |
631 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/admin/reports/v1/")); | 661 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
632 pathOffset += 18; | 662 pathOffset += 1; |
| 663 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("admin/reports/v1/")); |
| 664 pathOffset += 17; |
633 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("activity/users/")); | 665 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("activity/users/")); |
634 pathOffset += 15; | 666 pathOffset += 15; |
635 index = path.indexOf("/applications/", pathOffset); | 667 index = path.indexOf("/applications/", pathOffset); |
636 unittest.expect(index >= 0, unittest.isTrue); | 668 unittest.expect(index >= 0, unittest.isTrue); |
637 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 669 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
638 pathOffset = index; | 670 pathOffset = index; |
639 unittest.expect(subPart, unittest.equals("$arg_userKey")); | 671 unittest.expect(subPart, unittest.equals("$arg_userKey")); |
640 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/applications/")); | 672 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/applications/")); |
641 pathOffset += 14; | 673 pathOffset += 14; |
642 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 674 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 var arg_pageToken = "foo"; | 728 var arg_pageToken = "foo"; |
697 var arg_startTime = "foo"; | 729 var arg_startTime = "foo"; |
698 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 730 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
699 var obj = new api.Channel.fromJson(json); | 731 var obj = new api.Channel.fromJson(json); |
700 checkChannel(obj); | 732 checkChannel(obj); |
701 | 733 |
702 var path = (req.url).path; | 734 var path = (req.url).path; |
703 var pathOffset = 0; | 735 var pathOffset = 0; |
704 var index; | 736 var index; |
705 var subPart; | 737 var subPart; |
706 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/admin/reports/v1/")); | 738 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
707 pathOffset += 18; | 739 pathOffset += 1; |
| 740 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("admin/reports/v1/")); |
| 741 pathOffset += 17; |
708 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("activity/users/")); | 742 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("activity/users/")); |
709 pathOffset += 15; | 743 pathOffset += 15; |
710 index = path.indexOf("/applications/", pathOffset); | 744 index = path.indexOf("/applications/", pathOffset); |
711 unittest.expect(index >= 0, unittest.isTrue); | 745 unittest.expect(index >= 0, unittest.isTrue); |
712 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 746 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
713 pathOffset = index; | 747 pathOffset = index; |
714 unittest.expect(subPart, unittest.equals("$arg_userKey")); | 748 unittest.expect(subPart, unittest.equals("$arg_userKey")); |
715 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/applications/")); | 749 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/applications/")); |
716 pathOffset += 14; | 750 pathOffset += 14; |
717 index = path.indexOf("/watch", pathOffset); | 751 index = path.indexOf("/watch", pathOffset); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 api.ChannelsResourceApi res = new api.AdminApi(mock).channels; | 803 api.ChannelsResourceApi res = new api.AdminApi(mock).channels; |
770 var arg_request = buildChannel(); | 804 var arg_request = buildChannel(); |
771 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 805 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
772 var obj = new api.Channel.fromJson(json); | 806 var obj = new api.Channel.fromJson(json); |
773 checkChannel(obj); | 807 checkChannel(obj); |
774 | 808 |
775 var path = (req.url).path; | 809 var path = (req.url).path; |
776 var pathOffset = 0; | 810 var pathOffset = 0; |
777 var index; | 811 var index; |
778 var subPart; | 812 var subPart; |
779 unittest.expect(path.substring(pathOffset, pathOffset + 31), unittest.eq
uals("/admin/reports_v1/channels/stop")); | 813 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
780 pathOffset += 31; | 814 pathOffset += 1; |
| 815 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("admin/reports_v1/channels/stop")); |
| 816 pathOffset += 30; |
781 | 817 |
782 var query = (req.url).query; | 818 var query = (req.url).query; |
783 var queryOffset = 0; | 819 var queryOffset = 0; |
784 var queryMap = {}; | 820 var queryMap = {}; |
785 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 821 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
786 parseBool(n) { | 822 parseBool(n) { |
787 if (n == "true") return true; | 823 if (n == "true") return true; |
788 if (n == "false") return false; | 824 if (n == "false") return false; |
789 if (n == null) return null; | 825 if (n == null) return null; |
790 throw new core.ArgumentError("Invalid boolean: $n"); | 826 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 25 matching lines...) Expand all Loading... |
816 api.CustomerUsageReportsResourceApi res = new api.AdminApi(mock).customerU
sageReports; | 852 api.CustomerUsageReportsResourceApi res = new api.AdminApi(mock).customerU
sageReports; |
817 var arg_date = "foo"; | 853 var arg_date = "foo"; |
818 var arg_customerId = "foo"; | 854 var arg_customerId = "foo"; |
819 var arg_pageToken = "foo"; | 855 var arg_pageToken = "foo"; |
820 var arg_parameters = "foo"; | 856 var arg_parameters = "foo"; |
821 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 857 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
822 var path = (req.url).path; | 858 var path = (req.url).path; |
823 var pathOffset = 0; | 859 var pathOffset = 0; |
824 var index; | 860 var index; |
825 var subPart; | 861 var subPart; |
826 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/admin/reports/v1/")); | 862 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
827 pathOffset += 18; | 863 pathOffset += 1; |
| 864 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("admin/reports/v1/")); |
| 865 pathOffset += 17; |
828 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("usage/dates/")); | 866 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("usage/dates/")); |
829 pathOffset += 12; | 867 pathOffset += 12; |
830 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 868 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
831 pathOffset = path.length; | 869 pathOffset = path.length; |
832 unittest.expect(subPart, unittest.equals("$arg_date")); | 870 unittest.expect(subPart, unittest.equals("$arg_date")); |
833 | 871 |
834 var query = (req.url).query; | 872 var query = (req.url).query; |
835 var queryOffset = 0; | 873 var queryOffset = 0; |
836 var queryMap = {}; | 874 var queryMap = {}; |
837 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 875 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 var arg_customerId = "foo"; | 914 var arg_customerId = "foo"; |
877 var arg_filters = "foo"; | 915 var arg_filters = "foo"; |
878 var arg_maxResults = 42; | 916 var arg_maxResults = 42; |
879 var arg_pageToken = "foo"; | 917 var arg_pageToken = "foo"; |
880 var arg_parameters = "foo"; | 918 var arg_parameters = "foo"; |
881 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 919 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
882 var path = (req.url).path; | 920 var path = (req.url).path; |
883 var pathOffset = 0; | 921 var pathOffset = 0; |
884 var index; | 922 var index; |
885 var subPart; | 923 var subPart; |
886 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/admin/reports/v1/")); | 924 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
887 pathOffset += 18; | 925 pathOffset += 1; |
| 926 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("admin/reports/v1/")); |
| 927 pathOffset += 17; |
888 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("usage/users/")); | 928 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("usage/users/")); |
889 pathOffset += 12; | 929 pathOffset += 12; |
890 index = path.indexOf("/dates/", pathOffset); | 930 index = path.indexOf("/dates/", pathOffset); |
891 unittest.expect(index >= 0, unittest.isTrue); | 931 unittest.expect(index >= 0, unittest.isTrue); |
892 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 932 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
893 pathOffset = index; | 933 pathOffset = index; |
894 unittest.expect(subPart, unittest.equals("$arg_userKey")); | 934 unittest.expect(subPart, unittest.equals("$arg_userKey")); |
895 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/dates/")); | 935 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/dates/")); |
896 pathOffset += 7; | 936 pathOffset += 7; |
897 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 937 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
930 res.get(arg_userKey, arg_date, customerId: arg_customerId, filters: arg_fi
lters, maxResults: arg_maxResults, pageToken: arg_pageToken, parameters: arg_par
ameters).then(unittest.expectAsync(((api.UsageReports response) { | 970 res.get(arg_userKey, arg_date, customerId: arg_customerId, filters: arg_fi
lters, maxResults: arg_maxResults, pageToken: arg_pageToken, parameters: arg_par
ameters).then(unittest.expectAsync(((api.UsageReports response) { |
931 checkUsageReports(response); | 971 checkUsageReports(response); |
932 }))); | 972 }))); |
933 }); | 973 }); |
934 | 974 |
935 }); | 975 }); |
936 | 976 |
937 | 977 |
938 } | 978 } |
939 | 979 |
OLD | NEW |