OLD | NEW |
1 library googleapis.firebasedynamiclinks.v1.test; | 1 library googleapis.firebasedynamiclinks.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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 checkCreateShortDynamicLinkRequest(api.CreateShortDynamicLinkRequest o) { | 113 checkCreateShortDynamicLinkRequest(api.CreateShortDynamicLinkRequest o) { |
114 buildCounterCreateShortDynamicLinkRequest++; | 114 buildCounterCreateShortDynamicLinkRequest++; |
115 if (buildCounterCreateShortDynamicLinkRequest < 3) { | 115 if (buildCounterCreateShortDynamicLinkRequest < 3) { |
116 checkDynamicLinkInfo(o.dynamicLinkInfo); | 116 checkDynamicLinkInfo(o.dynamicLinkInfo); |
117 unittest.expect(o.longDynamicLink, unittest.equals('foo')); | 117 unittest.expect(o.longDynamicLink, unittest.equals('foo')); |
118 checkSuffix(o.suffix); | 118 checkSuffix(o.suffix); |
119 } | 119 } |
120 buildCounterCreateShortDynamicLinkRequest--; | 120 buildCounterCreateShortDynamicLinkRequest--; |
121 } | 121 } |
122 | 122 |
123 buildUnnamed2174() { | 123 buildUnnamed2192() { |
124 var o = new core.List<api.DynamicLinkWarning>(); | 124 var o = new core.List<api.DynamicLinkWarning>(); |
125 o.add(buildDynamicLinkWarning()); | 125 o.add(buildDynamicLinkWarning()); |
126 o.add(buildDynamicLinkWarning()); | 126 o.add(buildDynamicLinkWarning()); |
127 return o; | 127 return o; |
128 } | 128 } |
129 | 129 |
130 checkUnnamed2174(core.List<api.DynamicLinkWarning> o) { | 130 checkUnnamed2192(core.List<api.DynamicLinkWarning> o) { |
131 unittest.expect(o, unittest.hasLength(2)); | 131 unittest.expect(o, unittest.hasLength(2)); |
132 checkDynamicLinkWarning(o[0]); | 132 checkDynamicLinkWarning(o[0]); |
133 checkDynamicLinkWarning(o[1]); | 133 checkDynamicLinkWarning(o[1]); |
134 } | 134 } |
135 | 135 |
136 core.int buildCounterCreateShortDynamicLinkResponse = 0; | 136 core.int buildCounterCreateShortDynamicLinkResponse = 0; |
137 buildCreateShortDynamicLinkResponse() { | 137 buildCreateShortDynamicLinkResponse() { |
138 var o = new api.CreateShortDynamicLinkResponse(); | 138 var o = new api.CreateShortDynamicLinkResponse(); |
139 buildCounterCreateShortDynamicLinkResponse++; | 139 buildCounterCreateShortDynamicLinkResponse++; |
140 if (buildCounterCreateShortDynamicLinkResponse < 3) { | 140 if (buildCounterCreateShortDynamicLinkResponse < 3) { |
141 o.previewLink = "foo"; | 141 o.previewLink = "foo"; |
142 o.shortLink = "foo"; | 142 o.shortLink = "foo"; |
143 o.warning = buildUnnamed2174(); | 143 o.warning = buildUnnamed2192(); |
144 } | 144 } |
145 buildCounterCreateShortDynamicLinkResponse--; | 145 buildCounterCreateShortDynamicLinkResponse--; |
146 return o; | 146 return o; |
147 } | 147 } |
148 | 148 |
149 checkCreateShortDynamicLinkResponse(api.CreateShortDynamicLinkResponse o) { | 149 checkCreateShortDynamicLinkResponse(api.CreateShortDynamicLinkResponse o) { |
150 buildCounterCreateShortDynamicLinkResponse++; | 150 buildCounterCreateShortDynamicLinkResponse++; |
151 if (buildCounterCreateShortDynamicLinkResponse < 3) { | 151 if (buildCounterCreateShortDynamicLinkResponse < 3) { |
152 unittest.expect(o.previewLink, unittest.equals('foo')); | 152 unittest.expect(o.previewLink, unittest.equals('foo')); |
153 unittest.expect(o.shortLink, unittest.equals('foo')); | 153 unittest.expect(o.shortLink, unittest.equals('foo')); |
154 checkUnnamed2174(o.warning); | 154 checkUnnamed2192(o.warning); |
155 } | 155 } |
156 buildCounterCreateShortDynamicLinkResponse--; | 156 buildCounterCreateShortDynamicLinkResponse--; |
157 } | 157 } |
158 | 158 |
159 core.int buildCounterDynamicLinkEventStat = 0; | 159 core.int buildCounterDynamicLinkEventStat = 0; |
160 buildDynamicLinkEventStat() { | 160 buildDynamicLinkEventStat() { |
161 var o = new api.DynamicLinkEventStat(); | 161 var o = new api.DynamicLinkEventStat(); |
162 buildCounterDynamicLinkEventStat++; | 162 buildCounterDynamicLinkEventStat++; |
163 if (buildCounterDynamicLinkEventStat < 3) { | 163 if (buildCounterDynamicLinkEventStat < 3) { |
164 o.count = "foo"; | 164 o.count = "foo"; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 checkAndroidInfo(o.androidInfo); | 203 checkAndroidInfo(o.androidInfo); |
204 unittest.expect(o.dynamicLinkDomain, unittest.equals('foo')); | 204 unittest.expect(o.dynamicLinkDomain, unittest.equals('foo')); |
205 checkIosInfo(o.iosInfo); | 205 checkIosInfo(o.iosInfo); |
206 unittest.expect(o.link, unittest.equals('foo')); | 206 unittest.expect(o.link, unittest.equals('foo')); |
207 checkNavigationInfo(o.navigationInfo); | 207 checkNavigationInfo(o.navigationInfo); |
208 checkSocialMetaTagInfo(o.socialMetaTagInfo); | 208 checkSocialMetaTagInfo(o.socialMetaTagInfo); |
209 } | 209 } |
210 buildCounterDynamicLinkInfo--; | 210 buildCounterDynamicLinkInfo--; |
211 } | 211 } |
212 | 212 |
213 buildUnnamed2175() { | 213 buildUnnamed2193() { |
214 var o = new core.List<api.DynamicLinkEventStat>(); | 214 var o = new core.List<api.DynamicLinkEventStat>(); |
215 o.add(buildDynamicLinkEventStat()); | 215 o.add(buildDynamicLinkEventStat()); |
216 o.add(buildDynamicLinkEventStat()); | 216 o.add(buildDynamicLinkEventStat()); |
217 return o; | 217 return o; |
218 } | 218 } |
219 | 219 |
220 checkUnnamed2175(core.List<api.DynamicLinkEventStat> o) { | 220 checkUnnamed2193(core.List<api.DynamicLinkEventStat> o) { |
221 unittest.expect(o, unittest.hasLength(2)); | 221 unittest.expect(o, unittest.hasLength(2)); |
222 checkDynamicLinkEventStat(o[0]); | 222 checkDynamicLinkEventStat(o[0]); |
223 checkDynamicLinkEventStat(o[1]); | 223 checkDynamicLinkEventStat(o[1]); |
224 } | 224 } |
225 | 225 |
226 core.int buildCounterDynamicLinkStats = 0; | 226 core.int buildCounterDynamicLinkStats = 0; |
227 buildDynamicLinkStats() { | 227 buildDynamicLinkStats() { |
228 var o = new api.DynamicLinkStats(); | 228 var o = new api.DynamicLinkStats(); |
229 buildCounterDynamicLinkStats++; | 229 buildCounterDynamicLinkStats++; |
230 if (buildCounterDynamicLinkStats < 3) { | 230 if (buildCounterDynamicLinkStats < 3) { |
231 o.linkEventStats = buildUnnamed2175(); | 231 o.linkEventStats = buildUnnamed2193(); |
232 } | 232 } |
233 buildCounterDynamicLinkStats--; | 233 buildCounterDynamicLinkStats--; |
234 return o; | 234 return o; |
235 } | 235 } |
236 | 236 |
237 checkDynamicLinkStats(api.DynamicLinkStats o) { | 237 checkDynamicLinkStats(api.DynamicLinkStats o) { |
238 buildCounterDynamicLinkStats++; | 238 buildCounterDynamicLinkStats++; |
239 if (buildCounterDynamicLinkStats < 3) { | 239 if (buildCounterDynamicLinkStats < 3) { |
240 checkUnnamed2175(o.linkEventStats); | 240 checkUnnamed2193(o.linkEventStats); |
241 } | 241 } |
242 buildCounterDynamicLinkStats--; | 242 buildCounterDynamicLinkStats--; |
243 } | 243 } |
244 | 244 |
245 core.int buildCounterDynamicLinkWarning = 0; | 245 core.int buildCounterDynamicLinkWarning = 0; |
246 buildDynamicLinkWarning() { | 246 buildDynamicLinkWarning() { |
247 var o = new api.DynamicLinkWarning(); | 247 var o = new api.DynamicLinkWarning(); |
248 buildCounterDynamicLinkWarning++; | 248 buildCounterDynamicLinkWarning++; |
249 if (buildCounterDynamicLinkWarning < 3) { | 249 if (buildCounterDynamicLinkWarning < 3) { |
250 o.warningCode = "foo"; | 250 o.warningCode = "foo"; |
| 251 o.warningDocumentLink = "foo"; |
251 o.warningMessage = "foo"; | 252 o.warningMessage = "foo"; |
252 } | 253 } |
253 buildCounterDynamicLinkWarning--; | 254 buildCounterDynamicLinkWarning--; |
254 return o; | 255 return o; |
255 } | 256 } |
256 | 257 |
257 checkDynamicLinkWarning(api.DynamicLinkWarning o) { | 258 checkDynamicLinkWarning(api.DynamicLinkWarning o) { |
258 buildCounterDynamicLinkWarning++; | 259 buildCounterDynamicLinkWarning++; |
259 if (buildCounterDynamicLinkWarning < 3) { | 260 if (buildCounterDynamicLinkWarning < 3) { |
260 unittest.expect(o.warningCode, unittest.equals('foo')); | 261 unittest.expect(o.warningCode, unittest.equals('foo')); |
| 262 unittest.expect(o.warningDocumentLink, unittest.equals('foo')); |
261 unittest.expect(o.warningMessage, unittest.equals('foo')); | 263 unittest.expect(o.warningMessage, unittest.equals('foo')); |
262 } | 264 } |
263 buildCounterDynamicLinkWarning--; | 265 buildCounterDynamicLinkWarning--; |
264 } | 266 } |
265 | 267 |
266 core.int buildCounterGooglePlayAnalytics = 0; | 268 core.int buildCounterGooglePlayAnalytics = 0; |
267 buildGooglePlayAnalytics() { | 269 buildGooglePlayAnalytics() { |
268 var o = new api.GooglePlayAnalytics(); | 270 var o = new api.GooglePlayAnalytics(); |
269 buildCounterGooglePlayAnalytics++; | 271 buildCounterGooglePlayAnalytics++; |
270 if (buildCounterGooglePlayAnalytics < 3) { | 272 if (buildCounterGooglePlayAnalytics < 3) { |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 res.getLinkStats(arg_dynamicLink, durationDays: arg_durationDays).then(uni
ttest.expectAsync1(((api.DynamicLinkStats response) { | 640 res.getLinkStats(arg_dynamicLink, durationDays: arg_durationDays).then(uni
ttest.expectAsync1(((api.DynamicLinkStats response) { |
639 checkDynamicLinkStats(response); | 641 checkDynamicLinkStats(response); |
640 }))); | 642 }))); |
641 }); | 643 }); |
642 | 644 |
643 }); | 645 }); |
644 | 646 |
645 | 647 |
646 } | 648 } |
647 | 649 |
OLD | NEW |