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

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

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 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
OLDNEW
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:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 buildUnnamed2171() { 123 buildUnnamed1942() {
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 checkUnnamed2171(core.List<api.DynamicLinkWarning> o) { 130 checkUnnamed1942(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 = buildUnnamed2171(); 143 o.warning = buildUnnamed1942();
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 checkUnnamed2171(o.warning); 154 checkUnnamed1942(o.warning);
155 } 155 }
156 buildCounterCreateShortDynamicLinkResponse--; 156 buildCounterCreateShortDynamicLinkResponse--;
157 } 157 }
158 158
159 core.int buildCounterDynamicLinkInfo = 0; 159 core.int buildCounterDynamicLinkInfo = 0;
160 buildDynamicLinkInfo() { 160 buildDynamicLinkInfo() {
161 var o = new api.DynamicLinkInfo(); 161 var o = new api.DynamicLinkInfo();
162 buildCounterDynamicLinkInfo++; 162 buildCounterDynamicLinkInfo++;
163 if (buildCounterDynamicLinkInfo < 3) { 163 if (buildCounterDynamicLinkInfo < 3) {
164 o.analyticsInfo = buildAnalyticsInfo(); 164 o.analyticsInfo = buildAnalyticsInfo();
165 o.androidInfo = buildAndroidInfo(); 165 o.androidInfo = buildAndroidInfo();
166 o.dynamicLinkDomain = "foo"; 166 o.dynamicLinkDomain = "foo";
167 o.iosInfo = buildIosInfo(); 167 o.iosInfo = buildIosInfo();
168 o.isAd = true;
169 o.link = "foo"; 168 o.link = "foo";
170 o.socialMetaTagInfo = buildSocialMetaTagInfo(); 169 o.socialMetaTagInfo = buildSocialMetaTagInfo();
171 } 170 }
172 buildCounterDynamicLinkInfo--; 171 buildCounterDynamicLinkInfo--;
173 return o; 172 return o;
174 } 173 }
175 174
176 checkDynamicLinkInfo(api.DynamicLinkInfo o) { 175 checkDynamicLinkInfo(api.DynamicLinkInfo o) {
177 buildCounterDynamicLinkInfo++; 176 buildCounterDynamicLinkInfo++;
178 if (buildCounterDynamicLinkInfo < 3) { 177 if (buildCounterDynamicLinkInfo < 3) {
179 checkAnalyticsInfo(o.analyticsInfo); 178 checkAnalyticsInfo(o.analyticsInfo);
180 checkAndroidInfo(o.androidInfo); 179 checkAndroidInfo(o.androidInfo);
181 unittest.expect(o.dynamicLinkDomain, unittest.equals('foo')); 180 unittest.expect(o.dynamicLinkDomain, unittest.equals('foo'));
182 checkIosInfo(o.iosInfo); 181 checkIosInfo(o.iosInfo);
183 unittest.expect(o.isAd, unittest.isTrue);
184 unittest.expect(o.link, unittest.equals('foo')); 182 unittest.expect(o.link, unittest.equals('foo'));
185 checkSocialMetaTagInfo(o.socialMetaTagInfo); 183 checkSocialMetaTagInfo(o.socialMetaTagInfo);
186 } 184 }
187 buildCounterDynamicLinkInfo--; 185 buildCounterDynamicLinkInfo--;
188 } 186 }
189 187
190 core.int buildCounterDynamicLinkWarning = 0; 188 core.int buildCounterDynamicLinkWarning = 0;
191 buildDynamicLinkWarning() { 189 buildDynamicLinkWarning() {
192 var o = new api.DynamicLinkWarning(); 190 var o = new api.DynamicLinkWarning();
193 buildCounterDynamicLinkWarning++; 191 buildCounterDynamicLinkWarning++;
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 res.create(arg_request).then(unittest.expectAsync(((api.CreateShortDynamic LinkResponse response) { 478 res.create(arg_request).then(unittest.expectAsync(((api.CreateShortDynamic LinkResponse response) {
481 checkCreateShortDynamicLinkResponse(response); 479 checkCreateShortDynamicLinkResponse(response);
482 }))); 480 })));
483 }); 481 });
484 482
485 }); 483 });
486 484
487 485
488 } 486 }
489 487
OLDNEW
« no previous file with comments | « generated/googleapis/test/drive/v3_test.dart ('k') | generated/googleapis/test/firebaserules/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698