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

Side by Side Diff: generated/googleapis/test/youtubeanalytics/v1_test.dart

Issue 770773002: Api roll 7: 2014-12-01 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/test/youtube/v3_test.dart ('k') | generated/googleapis_beta/CHANGELOG.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library googleapis.youtubeAnalytics.v1.test; 1 library googleapis.youtubeAnalytics.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/youtubeanalytics/v1.dart' as api; 15 import 'package:googleapis/youtubeanalytics/v1.dart' as api;
16 16
17 17
18 18
19 buildUnnamed182() { 19 core.int buildCounterBatchReportOutputs = 0;
20 var o = new core.List<api.BatchReportDefinitionTemplate>(); 20 buildBatchReportOutputs() {
21 o.add(buildBatchReportDefinitionTemplate()); 21 var o = new api.BatchReportOutputs();
22 o.add(buildBatchReportDefinitionTemplate()); 22 buildCounterBatchReportOutputs++;
23 if (buildCounterBatchReportOutputs < 3) {
24 o.downloadUrl = "foo";
25 o.format = "foo";
26 o.type = "foo";
27 }
28 buildCounterBatchReportOutputs--;
23 return o; 29 return o;
24 } 30 }
25 31
26 checkUnnamed182(core.List<api.BatchReportDefinitionTemplate> o) { 32 checkBatchReportOutputs(api.BatchReportOutputs o) {
33 buildCounterBatchReportOutputs++;
34 if (buildCounterBatchReportOutputs < 3) {
35 unittest.expect(o.downloadUrl, unittest.equals('foo'));
36 unittest.expect(o.format, unittest.equals('foo'));
37 unittest.expect(o.type, unittest.equals('foo'));
38 }
39 buildCounterBatchReportOutputs--;
40 }
41
42 buildUnnamed1180() {
43 var o = new core.List<api.BatchReportOutputs>();
44 o.add(buildBatchReportOutputs());
45 o.add(buildBatchReportOutputs());
46 return o;
47 }
48
49 checkUnnamed1180(core.List<api.BatchReportOutputs> o) {
27 unittest.expect(o, unittest.hasLength(2)); 50 unittest.expect(o, unittest.hasLength(2));
28 checkBatchReportDefinitionTemplate(o[0]); 51 checkBatchReportOutputs(o[0]);
29 checkBatchReportDefinitionTemplate(o[1]); 52 checkBatchReportOutputs(o[1]);
53 }
54
55 core.int buildCounterBatchReportTimeSpan = 0;
56 buildBatchReportTimeSpan() {
57 var o = new api.BatchReportTimeSpan();
58 buildCounterBatchReportTimeSpan++;
59 if (buildCounterBatchReportTimeSpan < 3) {
60 o.endTime = core.DateTime.parse("2002-02-27T14:01:02");
61 o.startTime = core.DateTime.parse("2002-02-27T14:01:02");
62 }
63 buildCounterBatchReportTimeSpan--;
64 return o;
65 }
66
67 checkBatchReportTimeSpan(api.BatchReportTimeSpan o) {
68 buildCounterBatchReportTimeSpan++;
69 if (buildCounterBatchReportTimeSpan < 3) {
70 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
71 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
72 }
73 buildCounterBatchReportTimeSpan--;
74 }
75
76 core.int buildCounterBatchReport = 0;
77 buildBatchReport() {
78 var o = new api.BatchReport();
79 buildCounterBatchReport++;
80 if (buildCounterBatchReport < 3) {
81 o.id = "foo";
82 o.kind = "foo";
83 o.outputs = buildUnnamed1180();
84 o.reportId = "foo";
85 o.timeSpan = buildBatchReportTimeSpan();
86 o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02");
87 }
88 buildCounterBatchReport--;
89 return o;
90 }
91
92 checkBatchReport(api.BatchReport o) {
93 buildCounterBatchReport++;
94 if (buildCounterBatchReport < 3) {
95 unittest.expect(o.id, unittest.equals('foo'));
96 unittest.expect(o.kind, unittest.equals('foo'));
97 checkUnnamed1180(o.outputs);
98 unittest.expect(o.reportId, unittest.equals('foo'));
99 checkBatchReportTimeSpan(o.timeSpan);
100 unittest.expect(o.timeUpdated, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
101 }
102 buildCounterBatchReport--;
103 }
104
105 core.int buildCounterBatchReportDefinition = 0;
106 buildBatchReportDefinition() {
107 var o = new api.BatchReportDefinition();
108 buildCounterBatchReportDefinition++;
109 if (buildCounterBatchReportDefinition < 3) {
110 o.id = "foo";
111 o.kind = "foo";
112 o.name = "foo";
113 o.status = "foo";
114 o.type = "foo";
115 }
116 buildCounterBatchReportDefinition--;
117 return o;
118 }
119
120 checkBatchReportDefinition(api.BatchReportDefinition o) {
121 buildCounterBatchReportDefinition++;
122 if (buildCounterBatchReportDefinition < 3) {
123 unittest.expect(o.id, unittest.equals('foo'));
124 unittest.expect(o.kind, unittest.equals('foo'));
125 unittest.expect(o.name, unittest.equals('foo'));
126 unittest.expect(o.status, unittest.equals('foo'));
127 unittest.expect(o.type, unittest.equals('foo'));
128 }
129 buildCounterBatchReportDefinition--;
130 }
131
132 buildUnnamed1181() {
133 var o = new core.List<api.BatchReportDefinition>();
134 o.add(buildBatchReportDefinition());
135 o.add(buildBatchReportDefinition());
136 return o;
137 }
138
139 checkUnnamed1181(core.List<api.BatchReportDefinition> o) {
140 unittest.expect(o, unittest.hasLength(2));
141 checkBatchReportDefinition(o[0]);
142 checkBatchReportDefinition(o[1]);
30 } 143 }
31 144
32 core.int buildCounterBatchReportDefinitionList = 0; 145 core.int buildCounterBatchReportDefinitionList = 0;
33 buildBatchReportDefinitionList() { 146 buildBatchReportDefinitionList() {
34 var o = new api.BatchReportDefinitionList(); 147 var o = new api.BatchReportDefinitionList();
35 buildCounterBatchReportDefinitionList++; 148 buildCounterBatchReportDefinitionList++;
36 if (buildCounterBatchReportDefinitionList < 3) { 149 if (buildCounterBatchReportDefinitionList < 3) {
37 o.items = buildUnnamed182(); 150 o.items = buildUnnamed1181();
38 o.kind = "foo"; 151 o.kind = "foo";
39 } 152 }
40 buildCounterBatchReportDefinitionList--; 153 buildCounterBatchReportDefinitionList--;
41 return o; 154 return o;
42 } 155 }
43 156
44 checkBatchReportDefinitionList(api.BatchReportDefinitionList o) { 157 checkBatchReportDefinitionList(api.BatchReportDefinitionList o) {
45 buildCounterBatchReportDefinitionList++; 158 buildCounterBatchReportDefinitionList++;
46 if (buildCounterBatchReportDefinitionList < 3) { 159 if (buildCounterBatchReportDefinitionList < 3) {
47 checkUnnamed182(o.items); 160 checkUnnamed1181(o.items);
48 unittest.expect(o.kind, unittest.equals('foo')); 161 unittest.expect(o.kind, unittest.equals('foo'));
49 } 162 }
50 buildCounterBatchReportDefinitionList--; 163 buildCounterBatchReportDefinitionList--;
51 } 164 }
52 165
53 core.int buildCounterBatchReportDefinitionTemplateDefaultOutput = 0; 166 buildUnnamed1182() {
54 buildBatchReportDefinitionTemplateDefaultOutput() { 167 var o = new core.List<api.BatchReport>();
55 var o = new api.BatchReportDefinitionTemplateDefaultOutput(); 168 o.add(buildBatchReport());
56 buildCounterBatchReportDefinitionTemplateDefaultOutput++; 169 o.add(buildBatchReport());
57 if (buildCounterBatchReportDefinitionTemplateDefaultOutput < 3) {
58 o.format = "foo";
59 o.type = "foo";
60 }
61 buildCounterBatchReportDefinitionTemplateDefaultOutput--;
62 return o; 170 return o;
63 } 171 }
64 172
65 checkBatchReportDefinitionTemplateDefaultOutput(api.BatchReportDefinitionTemplat eDefaultOutput o) { 173 checkUnnamed1182(core.List<api.BatchReport> o) {
66 buildCounterBatchReportDefinitionTemplateDefaultOutput++;
67 if (buildCounterBatchReportDefinitionTemplateDefaultOutput < 3) {
68 unittest.expect(o.format, unittest.equals('foo'));
69 unittest.expect(o.type, unittest.equals('foo'));
70 }
71 buildCounterBatchReportDefinitionTemplateDefaultOutput--;
72 }
73
74 buildUnnamed183() {
75 var o = new core.List<api.BatchReportDefinitionTemplateDefaultOutput>();
76 o.add(buildBatchReportDefinitionTemplateDefaultOutput());
77 o.add(buildBatchReportDefinitionTemplateDefaultOutput());
78 return o;
79 }
80
81 checkUnnamed183(core.List<api.BatchReportDefinitionTemplateDefaultOutput> o) {
82 unittest.expect(o, unittest.hasLength(2)); 174 unittest.expect(o, unittest.hasLength(2));
83 checkBatchReportDefinitionTemplateDefaultOutput(o[0]); 175 checkBatchReport(o[0]);
84 checkBatchReportDefinitionTemplateDefaultOutput(o[1]); 176 checkBatchReport(o[1]);
85 }
86
87 core.int buildCounterBatchReportDefinitionTemplate = 0;
88 buildBatchReportDefinitionTemplate() {
89 var o = new api.BatchReportDefinitionTemplate();
90 buildCounterBatchReportDefinitionTemplate++;
91 if (buildCounterBatchReportDefinitionTemplate < 3) {
92 o.defaultOutput = buildUnnamed183();
93 o.id = "foo";
94 o.name = "foo";
95 o.status = "foo";
96 o.type = "foo";
97 }
98 buildCounterBatchReportDefinitionTemplate--;
99 return o;
100 }
101
102 checkBatchReportDefinitionTemplate(api.BatchReportDefinitionTemplate o) {
103 buildCounterBatchReportDefinitionTemplate++;
104 if (buildCounterBatchReportDefinitionTemplate < 3) {
105 checkUnnamed183(o.defaultOutput);
106 unittest.expect(o.id, unittest.equals('foo'));
107 unittest.expect(o.name, unittest.equals('foo'));
108 unittest.expect(o.status, unittest.equals('foo'));
109 unittest.expect(o.type, unittest.equals('foo'));
110 }
111 buildCounterBatchReportDefinitionTemplate--;
112 }
113
114 buildUnnamed184() {
115 var o = new core.List<api.BatchReportTemplate>();
116 o.add(buildBatchReportTemplate());
117 o.add(buildBatchReportTemplate());
118 return o;
119 }
120
121 checkUnnamed184(core.List<api.BatchReportTemplate> o) {
122 unittest.expect(o, unittest.hasLength(2));
123 checkBatchReportTemplate(o[0]);
124 checkBatchReportTemplate(o[1]);
125 } 177 }
126 178
127 core.int buildCounterBatchReportList = 0; 179 core.int buildCounterBatchReportList = 0;
128 buildBatchReportList() { 180 buildBatchReportList() {
129 var o = new api.BatchReportList(); 181 var o = new api.BatchReportList();
130 buildCounterBatchReportList++; 182 buildCounterBatchReportList++;
131 if (buildCounterBatchReportList < 3) { 183 if (buildCounterBatchReportList < 3) {
132 o.items = buildUnnamed184(); 184 o.items = buildUnnamed1182();
133 o.kind = "foo"; 185 o.kind = "foo";
134 } 186 }
135 buildCounterBatchReportList--; 187 buildCounterBatchReportList--;
136 return o; 188 return o;
137 } 189 }
138 190
139 checkBatchReportList(api.BatchReportList o) { 191 checkBatchReportList(api.BatchReportList o) {
140 buildCounterBatchReportList++; 192 buildCounterBatchReportList++;
141 if (buildCounterBatchReportList < 3) { 193 if (buildCounterBatchReportList < 3) {
142 checkUnnamed184(o.items); 194 checkUnnamed1182(o.items);
143 unittest.expect(o.kind, unittest.equals('foo')); 195 unittest.expect(o.kind, unittest.equals('foo'));
144 } 196 }
145 buildCounterBatchReportList--; 197 buildCounterBatchReportList--;
146 } 198 }
147 199
148 core.int buildCounterBatchReportTemplateOutputs = 0;
149 buildBatchReportTemplateOutputs() {
150 var o = new api.BatchReportTemplateOutputs();
151 buildCounterBatchReportTemplateOutputs++;
152 if (buildCounterBatchReportTemplateOutputs < 3) {
153 o.downloadUrl = "foo";
154 o.format = "foo";
155 o.type = "foo";
156 }
157 buildCounterBatchReportTemplateOutputs--;
158 return o;
159 }
160
161 checkBatchReportTemplateOutputs(api.BatchReportTemplateOutputs o) {
162 buildCounterBatchReportTemplateOutputs++;
163 if (buildCounterBatchReportTemplateOutputs < 3) {
164 unittest.expect(o.downloadUrl, unittest.equals('foo'));
165 unittest.expect(o.format, unittest.equals('foo'));
166 unittest.expect(o.type, unittest.equals('foo'));
167 }
168 buildCounterBatchReportTemplateOutputs--;
169 }
170
171 buildUnnamed185() {
172 var o = new core.List<api.BatchReportTemplateOutputs>();
173 o.add(buildBatchReportTemplateOutputs());
174 o.add(buildBatchReportTemplateOutputs());
175 return o;
176 }
177
178 checkUnnamed185(core.List<api.BatchReportTemplateOutputs> o) {
179 unittest.expect(o, unittest.hasLength(2));
180 checkBatchReportTemplateOutputs(o[0]);
181 checkBatchReportTemplateOutputs(o[1]);
182 }
183
184 core.int buildCounterBatchReportTemplateTimeSpan = 0;
185 buildBatchReportTemplateTimeSpan() {
186 var o = new api.BatchReportTemplateTimeSpan();
187 buildCounterBatchReportTemplateTimeSpan++;
188 if (buildCounterBatchReportTemplateTimeSpan < 3) {
189 o.endTime = core.DateTime.parse("2002-02-27T14:01:02");
190 o.startTime = core.DateTime.parse("2002-02-27T14:01:02");
191 }
192 buildCounterBatchReportTemplateTimeSpan--;
193 return o;
194 }
195
196 checkBatchReportTemplateTimeSpan(api.BatchReportTemplateTimeSpan o) {
197 buildCounterBatchReportTemplateTimeSpan++;
198 if (buildCounterBatchReportTemplateTimeSpan < 3) {
199 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1 4:01:02")));
200 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27 T14:01:02")));
201 }
202 buildCounterBatchReportTemplateTimeSpan--;
203 }
204
205 core.int buildCounterBatchReportTemplate = 0;
206 buildBatchReportTemplate() {
207 var o = new api.BatchReportTemplate();
208 buildCounterBatchReportTemplate++;
209 if (buildCounterBatchReportTemplate < 3) {
210 o.id = "foo";
211 o.outputs = buildUnnamed185();
212 o.reportId = "foo";
213 o.timeSpan = buildBatchReportTemplateTimeSpan();
214 o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02");
215 }
216 buildCounterBatchReportTemplate--;
217 return o;
218 }
219
220 checkBatchReportTemplate(api.BatchReportTemplate o) {
221 buildCounterBatchReportTemplate++;
222 if (buildCounterBatchReportTemplate < 3) {
223 unittest.expect(o.id, unittest.equals('foo'));
224 checkUnnamed185(o.outputs);
225 unittest.expect(o.reportId, unittest.equals('foo'));
226 checkBatchReportTemplateTimeSpan(o.timeSpan);
227 unittest.expect(o.timeUpdated, unittest.equals(core.DateTime.parse("2002-02- 27T14:01:02")));
228 }
229 buildCounterBatchReportTemplate--;
230 }
231
232 core.int buildCounterResultTableColumnHeaders = 0; 200 core.int buildCounterResultTableColumnHeaders = 0;
233 buildResultTableColumnHeaders() { 201 buildResultTableColumnHeaders() {
234 var o = new api.ResultTableColumnHeaders(); 202 var o = new api.ResultTableColumnHeaders();
235 buildCounterResultTableColumnHeaders++; 203 buildCounterResultTableColumnHeaders++;
236 if (buildCounterResultTableColumnHeaders < 3) { 204 if (buildCounterResultTableColumnHeaders < 3) {
237 o.columnType = "foo"; 205 o.columnType = "foo";
238 o.dataType = "foo"; 206 o.dataType = "foo";
239 o.name = "foo"; 207 o.name = "foo";
240 } 208 }
241 buildCounterResultTableColumnHeaders--; 209 buildCounterResultTableColumnHeaders--;
242 return o; 210 return o;
243 } 211 }
244 212
245 checkResultTableColumnHeaders(api.ResultTableColumnHeaders o) { 213 checkResultTableColumnHeaders(api.ResultTableColumnHeaders o) {
246 buildCounterResultTableColumnHeaders++; 214 buildCounterResultTableColumnHeaders++;
247 if (buildCounterResultTableColumnHeaders < 3) { 215 if (buildCounterResultTableColumnHeaders < 3) {
248 unittest.expect(o.columnType, unittest.equals('foo')); 216 unittest.expect(o.columnType, unittest.equals('foo'));
249 unittest.expect(o.dataType, unittest.equals('foo')); 217 unittest.expect(o.dataType, unittest.equals('foo'));
250 unittest.expect(o.name, unittest.equals('foo')); 218 unittest.expect(o.name, unittest.equals('foo'));
251 } 219 }
252 buildCounterResultTableColumnHeaders--; 220 buildCounterResultTableColumnHeaders--;
253 } 221 }
254 222
255 buildUnnamed186() { 223 buildUnnamed1183() {
256 var o = new core.List<api.ResultTableColumnHeaders>(); 224 var o = new core.List<api.ResultTableColumnHeaders>();
257 o.add(buildResultTableColumnHeaders()); 225 o.add(buildResultTableColumnHeaders());
258 o.add(buildResultTableColumnHeaders()); 226 o.add(buildResultTableColumnHeaders());
259 return o; 227 return o;
260 } 228 }
261 229
262 checkUnnamed186(core.List<api.ResultTableColumnHeaders> o) { 230 checkUnnamed1183(core.List<api.ResultTableColumnHeaders> o) {
263 unittest.expect(o, unittest.hasLength(2)); 231 unittest.expect(o, unittest.hasLength(2));
264 checkResultTableColumnHeaders(o[0]); 232 checkResultTableColumnHeaders(o[0]);
265 checkResultTableColumnHeaders(o[1]); 233 checkResultTableColumnHeaders(o[1]);
266 } 234 }
267 235
268 buildUnnamed187() { 236 buildUnnamed1184() {
269 var o = new core.List<core.Object>(); 237 var o = new core.List<core.Object>();
270 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 238 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
271 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); 239 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'});
272 return o; 240 return o;
273 } 241 }
274 242
275 checkUnnamed187(core.List<core.Object> o) { 243 checkUnnamed1184(core.List<core.Object> o) {
276 unittest.expect(o, unittest.hasLength(2)); 244 unittest.expect(o, unittest.hasLength(2));
277 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo')); 245 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength( 3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u nittest.equals('foo'));
278 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo')); 246 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength( 3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u nittest.equals('foo'));
279 } 247 }
280 248
281 buildUnnamed188() { 249 buildUnnamed1185() {
282 var o = new core.List<core.List<core.Object>>(); 250 var o = new core.List<core.List<core.Object>>();
283 o.add(buildUnnamed187()); 251 o.add(buildUnnamed1184());
284 o.add(buildUnnamed187()); 252 o.add(buildUnnamed1184());
285 return o; 253 return o;
286 } 254 }
287 255
288 checkUnnamed188(core.List<core.List<core.Object>> o) { 256 checkUnnamed1185(core.List<core.List<core.Object>> o) {
289 unittest.expect(o, unittest.hasLength(2)); 257 unittest.expect(o, unittest.hasLength(2));
290 checkUnnamed187(o[0]); 258 checkUnnamed1184(o[0]);
291 checkUnnamed187(o[1]); 259 checkUnnamed1184(o[1]);
292 } 260 }
293 261
294 core.int buildCounterResultTable = 0; 262 core.int buildCounterResultTable = 0;
295 buildResultTable() { 263 buildResultTable() {
296 var o = new api.ResultTable(); 264 var o = new api.ResultTable();
297 buildCounterResultTable++; 265 buildCounterResultTable++;
298 if (buildCounterResultTable < 3) { 266 if (buildCounterResultTable < 3) {
299 o.columnHeaders = buildUnnamed186(); 267 o.columnHeaders = buildUnnamed1183();
300 o.kind = "foo"; 268 o.kind = "foo";
301 o.rows = buildUnnamed188(); 269 o.rows = buildUnnamed1185();
302 } 270 }
303 buildCounterResultTable--; 271 buildCounterResultTable--;
304 return o; 272 return o;
305 } 273 }
306 274
307 checkResultTable(api.ResultTable o) { 275 checkResultTable(api.ResultTable o) {
308 buildCounterResultTable++; 276 buildCounterResultTable++;
309 if (buildCounterResultTable < 3) { 277 if (buildCounterResultTable < 3) {
310 checkUnnamed186(o.columnHeaders); 278 checkUnnamed1183(o.columnHeaders);
311 unittest.expect(o.kind, unittest.equals('foo')); 279 unittest.expect(o.kind, unittest.equals('foo'));
312 checkUnnamed188(o.rows); 280 checkUnnamed1185(o.rows);
313 } 281 }
314 buildCounterResultTable--; 282 buildCounterResultTable--;
315 } 283 }
316 284
317 285
318 main() { 286 main() {
287 unittest.group("obj-schema-BatchReportOutputs", () {
288 unittest.test("to-json--from-json", () {
289 var o = buildBatchReportOutputs();
290 var od = new api.BatchReportOutputs.fromJson(o.toJson());
291 checkBatchReportOutputs(od);
292 });
293 });
294
295
296 unittest.group("obj-schema-BatchReportTimeSpan", () {
297 unittest.test("to-json--from-json", () {
298 var o = buildBatchReportTimeSpan();
299 var od = new api.BatchReportTimeSpan.fromJson(o.toJson());
300 checkBatchReportTimeSpan(od);
301 });
302 });
303
304
305 unittest.group("obj-schema-BatchReport", () {
306 unittest.test("to-json--from-json", () {
307 var o = buildBatchReport();
308 var od = new api.BatchReport.fromJson(o.toJson());
309 checkBatchReport(od);
310 });
311 });
312
313
314 unittest.group("obj-schema-BatchReportDefinition", () {
315 unittest.test("to-json--from-json", () {
316 var o = buildBatchReportDefinition();
317 var od = new api.BatchReportDefinition.fromJson(o.toJson());
318 checkBatchReportDefinition(od);
319 });
320 });
321
322
319 unittest.group("obj-schema-BatchReportDefinitionList", () { 323 unittest.group("obj-schema-BatchReportDefinitionList", () {
320 unittest.test("to-json--from-json", () { 324 unittest.test("to-json--from-json", () {
321 var o = buildBatchReportDefinitionList(); 325 var o = buildBatchReportDefinitionList();
322 var od = new api.BatchReportDefinitionList.fromJson(o.toJson()); 326 var od = new api.BatchReportDefinitionList.fromJson(o.toJson());
323 checkBatchReportDefinitionList(od); 327 checkBatchReportDefinitionList(od);
324 }); 328 });
325 }); 329 });
326 330
327 331
328 unittest.group("obj-schema-BatchReportDefinitionTemplateDefaultOutput", () {
329 unittest.test("to-json--from-json", () {
330 var o = buildBatchReportDefinitionTemplateDefaultOutput();
331 var od = new api.BatchReportDefinitionTemplateDefaultOutput.fromJson(o.toJ son());
332 checkBatchReportDefinitionTemplateDefaultOutput(od);
333 });
334 });
335
336
337 unittest.group("obj-schema-BatchReportDefinitionTemplate", () {
338 unittest.test("to-json--from-json", () {
339 var o = buildBatchReportDefinitionTemplate();
340 var od = new api.BatchReportDefinitionTemplate.fromJson(o.toJson());
341 checkBatchReportDefinitionTemplate(od);
342 });
343 });
344
345
346 unittest.group("obj-schema-BatchReportList", () { 332 unittest.group("obj-schema-BatchReportList", () {
347 unittest.test("to-json--from-json", () { 333 unittest.test("to-json--from-json", () {
348 var o = buildBatchReportList(); 334 var o = buildBatchReportList();
349 var od = new api.BatchReportList.fromJson(o.toJson()); 335 var od = new api.BatchReportList.fromJson(o.toJson());
350 checkBatchReportList(od); 336 checkBatchReportList(od);
351 }); 337 });
352 }); 338 });
353 339
354
355 unittest.group("obj-schema-BatchReportTemplateOutputs", () {
356 unittest.test("to-json--from-json", () {
357 var o = buildBatchReportTemplateOutputs();
358 var od = new api.BatchReportTemplateOutputs.fromJson(o.toJson());
359 checkBatchReportTemplateOutputs(od);
360 });
361 });
362
363
364 unittest.group("obj-schema-BatchReportTemplateTimeSpan", () {
365 unittest.test("to-json--from-json", () {
366 var o = buildBatchReportTemplateTimeSpan();
367 var od = new api.BatchReportTemplateTimeSpan.fromJson(o.toJson());
368 checkBatchReportTemplateTimeSpan(od);
369 });
370 });
371
372
373 unittest.group("obj-schema-BatchReportTemplate", () {
374 unittest.test("to-json--from-json", () {
375 var o = buildBatchReportTemplate();
376 var od = new api.BatchReportTemplate.fromJson(o.toJson());
377 checkBatchReportTemplate(od);
378 });
379 });
380
381 340
382 unittest.group("obj-schema-ResultTableColumnHeaders", () { 341 unittest.group("obj-schema-ResultTableColumnHeaders", () {
383 unittest.test("to-json--from-json", () { 342 unittest.test("to-json--from-json", () {
384 var o = buildResultTableColumnHeaders(); 343 var o = buildResultTableColumnHeaders();
385 var od = new api.ResultTableColumnHeaders.fromJson(o.toJson()); 344 var od = new api.ResultTableColumnHeaders.fromJson(o.toJson());
386 checkResultTableColumnHeaders(od); 345 checkResultTableColumnHeaders(od);
387 }); 346 });
388 }); 347 });
389 348
390 349
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 res.query(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, sort: arg_so rt, start_index: arg_start_index).then(unittest.expectAsync(((api.ResultTable re sponse) { 522 res.query(arg_ids, arg_start_date, arg_end_date, arg_metrics, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_max_results, sort: arg_so rt, start_index: arg_start_index).then(unittest.expectAsync(((api.ResultTable re sponse) {
564 checkResultTable(response); 523 checkResultTable(response);
565 }))); 524 })));
566 }); 525 });
567 526
568 }); 527 });
569 528
570 529
571 } 530 }
572 531
OLDNEW
« no previous file with comments | « generated/googleapis/test/youtube/v3_test.dart ('k') | generated/googleapis_beta/CHANGELOG.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698