| OLD | NEW |
| 1 library googleapis_beta.adexchangebuyer2.v2beta1.test; | 1 library googleapis_beta.adexchangebuyer2.v2beta1.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 checkClientUserInvitation(api.ClientUserInvitation o) { | 125 checkClientUserInvitation(api.ClientUserInvitation o) { |
| 126 buildCounterClientUserInvitation++; | 126 buildCounterClientUserInvitation++; |
| 127 if (buildCounterClientUserInvitation < 3) { | 127 if (buildCounterClientUserInvitation < 3) { |
| 128 unittest.expect(o.clientAccountId, unittest.equals('foo')); | 128 unittest.expect(o.clientAccountId, unittest.equals('foo')); |
| 129 unittest.expect(o.email, unittest.equals('foo')); | 129 unittest.expect(o.email, unittest.equals('foo')); |
| 130 unittest.expect(o.invitationId, unittest.equals('foo')); | 130 unittest.expect(o.invitationId, unittest.equals('foo')); |
| 131 } | 131 } |
| 132 buildCounterClientUserInvitation--; | 132 buildCounterClientUserInvitation--; |
| 133 } | 133 } |
| 134 | 134 |
| 135 buildUnnamed4220() { | 135 buildUnnamed4055() { |
| 136 var o = new core.List<api.ClientUserInvitation>(); | 136 var o = new core.List<api.ClientUserInvitation>(); |
| 137 o.add(buildClientUserInvitation()); | 137 o.add(buildClientUserInvitation()); |
| 138 o.add(buildClientUserInvitation()); | 138 o.add(buildClientUserInvitation()); |
| 139 return o; | 139 return o; |
| 140 } | 140 } |
| 141 | 141 |
| 142 checkUnnamed4220(core.List<api.ClientUserInvitation> o) { | 142 checkUnnamed4055(core.List<api.ClientUserInvitation> o) { |
| 143 unittest.expect(o, unittest.hasLength(2)); | 143 unittest.expect(o, unittest.hasLength(2)); |
| 144 checkClientUserInvitation(o[0]); | 144 checkClientUserInvitation(o[0]); |
| 145 checkClientUserInvitation(o[1]); | 145 checkClientUserInvitation(o[1]); |
| 146 } | 146 } |
| 147 | 147 |
| 148 core.int buildCounterListClientUserInvitationsResponse = 0; | 148 core.int buildCounterListClientUserInvitationsResponse = 0; |
| 149 buildListClientUserInvitationsResponse() { | 149 buildListClientUserInvitationsResponse() { |
| 150 var o = new api.ListClientUserInvitationsResponse(); | 150 var o = new api.ListClientUserInvitationsResponse(); |
| 151 buildCounterListClientUserInvitationsResponse++; | 151 buildCounterListClientUserInvitationsResponse++; |
| 152 if (buildCounterListClientUserInvitationsResponse < 3) { | 152 if (buildCounterListClientUserInvitationsResponse < 3) { |
| 153 o.invitations = buildUnnamed4220(); | 153 o.invitations = buildUnnamed4055(); |
| 154 o.nextPageToken = "foo"; | 154 o.nextPageToken = "foo"; |
| 155 } | 155 } |
| 156 buildCounterListClientUserInvitationsResponse--; | 156 buildCounterListClientUserInvitationsResponse--; |
| 157 return o; | 157 return o; |
| 158 } | 158 } |
| 159 | 159 |
| 160 checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o)
{ | 160 checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o)
{ |
| 161 buildCounterListClientUserInvitationsResponse++; | 161 buildCounterListClientUserInvitationsResponse++; |
| 162 if (buildCounterListClientUserInvitationsResponse < 3) { | 162 if (buildCounterListClientUserInvitationsResponse < 3) { |
| 163 checkUnnamed4220(o.invitations); | 163 checkUnnamed4055(o.invitations); |
| 164 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 164 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 165 } | 165 } |
| 166 buildCounterListClientUserInvitationsResponse--; | 166 buildCounterListClientUserInvitationsResponse--; |
| 167 } | 167 } |
| 168 | 168 |
| 169 buildUnnamed4221() { | 169 buildUnnamed4056() { |
| 170 var o = new core.List<api.ClientUser>(); | 170 var o = new core.List<api.ClientUser>(); |
| 171 o.add(buildClientUser()); | 171 o.add(buildClientUser()); |
| 172 o.add(buildClientUser()); | 172 o.add(buildClientUser()); |
| 173 return o; | 173 return o; |
| 174 } | 174 } |
| 175 | 175 |
| 176 checkUnnamed4221(core.List<api.ClientUser> o) { | 176 checkUnnamed4056(core.List<api.ClientUser> o) { |
| 177 unittest.expect(o, unittest.hasLength(2)); | 177 unittest.expect(o, unittest.hasLength(2)); |
| 178 checkClientUser(o[0]); | 178 checkClientUser(o[0]); |
| 179 checkClientUser(o[1]); | 179 checkClientUser(o[1]); |
| 180 } | 180 } |
| 181 | 181 |
| 182 core.int buildCounterListClientUsersResponse = 0; | 182 core.int buildCounterListClientUsersResponse = 0; |
| 183 buildListClientUsersResponse() { | 183 buildListClientUsersResponse() { |
| 184 var o = new api.ListClientUsersResponse(); | 184 var o = new api.ListClientUsersResponse(); |
| 185 buildCounterListClientUsersResponse++; | 185 buildCounterListClientUsersResponse++; |
| 186 if (buildCounterListClientUsersResponse < 3) { | 186 if (buildCounterListClientUsersResponse < 3) { |
| 187 o.nextPageToken = "foo"; | 187 o.nextPageToken = "foo"; |
| 188 o.users = buildUnnamed4221(); | 188 o.users = buildUnnamed4056(); |
| 189 } | 189 } |
| 190 buildCounterListClientUsersResponse--; | 190 buildCounterListClientUsersResponse--; |
| 191 return o; | 191 return o; |
| 192 } | 192 } |
| 193 | 193 |
| 194 checkListClientUsersResponse(api.ListClientUsersResponse o) { | 194 checkListClientUsersResponse(api.ListClientUsersResponse o) { |
| 195 buildCounterListClientUsersResponse++; | 195 buildCounterListClientUsersResponse++; |
| 196 if (buildCounterListClientUsersResponse < 3) { | 196 if (buildCounterListClientUsersResponse < 3) { |
| 197 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 197 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 198 checkUnnamed4221(o.users); | 198 checkUnnamed4056(o.users); |
| 199 } | 199 } |
| 200 buildCounterListClientUsersResponse--; | 200 buildCounterListClientUsersResponse--; |
| 201 } | 201 } |
| 202 | 202 |
| 203 buildUnnamed4222() { | 203 buildUnnamed4057() { |
| 204 var o = new core.List<api.Client>(); | 204 var o = new core.List<api.Client>(); |
| 205 o.add(buildClient()); | 205 o.add(buildClient()); |
| 206 o.add(buildClient()); | 206 o.add(buildClient()); |
| 207 return o; | 207 return o; |
| 208 } | 208 } |
| 209 | 209 |
| 210 checkUnnamed4222(core.List<api.Client> o) { | 210 checkUnnamed4057(core.List<api.Client> o) { |
| 211 unittest.expect(o, unittest.hasLength(2)); | 211 unittest.expect(o, unittest.hasLength(2)); |
| 212 checkClient(o[0]); | 212 checkClient(o[0]); |
| 213 checkClient(o[1]); | 213 checkClient(o[1]); |
| 214 } | 214 } |
| 215 | 215 |
| 216 core.int buildCounterListClientsResponse = 0; | 216 core.int buildCounterListClientsResponse = 0; |
| 217 buildListClientsResponse() { | 217 buildListClientsResponse() { |
| 218 var o = new api.ListClientsResponse(); | 218 var o = new api.ListClientsResponse(); |
| 219 buildCounterListClientsResponse++; | 219 buildCounterListClientsResponse++; |
| 220 if (buildCounterListClientsResponse < 3) { | 220 if (buildCounterListClientsResponse < 3) { |
| 221 o.clients = buildUnnamed4222(); | 221 o.clients = buildUnnamed4057(); |
| 222 o.nextPageToken = "foo"; | 222 o.nextPageToken = "foo"; |
| 223 } | 223 } |
| 224 buildCounterListClientsResponse--; | 224 buildCounterListClientsResponse--; |
| 225 return o; | 225 return o; |
| 226 } | 226 } |
| 227 | 227 |
| 228 checkListClientsResponse(api.ListClientsResponse o) { | 228 checkListClientsResponse(api.ListClientsResponse o) { |
| 229 buildCounterListClientsResponse++; | 229 buildCounterListClientsResponse++; |
| 230 if (buildCounterListClientsResponse < 3) { | 230 if (buildCounterListClientsResponse < 3) { |
| 231 checkUnnamed4222(o.clients); | 231 checkUnnamed4057(o.clients); |
| 232 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 232 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 233 } | 233 } |
| 234 buildCounterListClientsResponse--; | 234 buildCounterListClientsResponse--; |
| 235 } | 235 } |
| 236 | 236 |
| 237 | 237 |
| 238 main() { | 238 main() { |
| 239 unittest.group("obj-schema-Client", () { | 239 unittest.group("obj-schema-Client", () { |
| 240 unittest.test("to-json--from-json", () { | 240 unittest.test("to-json--from-json", () { |
| 241 var o = buildClient(); | 241 var o = buildClient(); |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 res.update(arg_request, arg_accountId, arg_clientAccountId, arg_userId).th
en(unittest.expectAsync(((api.ClientUser response) { | 903 res.update(arg_request, arg_accountId, arg_clientAccountId, arg_userId).th
en(unittest.expectAsync(((api.ClientUser response) { |
| 904 checkClientUser(response); | 904 checkClientUser(response); |
| 905 }))); | 905 }))); |
| 906 }); | 906 }); |
| 907 | 907 |
| 908 }); | 908 }); |
| 909 | 909 |
| 910 | 910 |
| 911 } | 911 } |
| 912 | 912 |
| OLD | NEW |