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

Side by Side Diff: generated/googleapis_beta/test/oslogin/v1alpha_test.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months 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_beta.oslogin.v1alpha.test; 1 library googleapis_beta.oslogin.v1alpha.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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 checkImportSshPublicKeyResponse(api.ImportSshPublicKeyResponse o) { 82 checkImportSshPublicKeyResponse(api.ImportSshPublicKeyResponse o) {
83 buildCounterImportSshPublicKeyResponse++; 83 buildCounterImportSshPublicKeyResponse++;
84 if (buildCounterImportSshPublicKeyResponse < 3) { 84 if (buildCounterImportSshPublicKeyResponse < 3) {
85 checkLoginProfile(o.loginProfile); 85 checkLoginProfile(o.loginProfile);
86 } 86 }
87 buildCounterImportSshPublicKeyResponse--; 87 buildCounterImportSshPublicKeyResponse--;
88 } 88 }
89 89
90 buildUnnamed3392() { 90 buildUnnamed3424() {
91 var o = new core.List<api.PosixAccount>(); 91 var o = new core.List<api.PosixAccount>();
92 o.add(buildPosixAccount()); 92 o.add(buildPosixAccount());
93 o.add(buildPosixAccount()); 93 o.add(buildPosixAccount());
94 return o; 94 return o;
95 } 95 }
96 96
97 checkUnnamed3392(core.List<api.PosixAccount> o) { 97 checkUnnamed3424(core.List<api.PosixAccount> o) {
98 unittest.expect(o, unittest.hasLength(2)); 98 unittest.expect(o, unittest.hasLength(2));
99 checkPosixAccount(o[0]); 99 checkPosixAccount(o[0]);
100 checkPosixAccount(o[1]); 100 checkPosixAccount(o[1]);
101 } 101 }
102 102
103 buildUnnamed3393() { 103 buildUnnamed3425() {
104 var o = new core.Map<core.String, api.SshPublicKey>(); 104 var o = new core.Map<core.String, api.SshPublicKey>();
105 o["x"] = buildSshPublicKey(); 105 o["x"] = buildSshPublicKey();
106 o["y"] = buildSshPublicKey(); 106 o["y"] = buildSshPublicKey();
107 return o; 107 return o;
108 } 108 }
109 109
110 checkUnnamed3393(core.Map<core.String, api.SshPublicKey> o) { 110 checkUnnamed3425(core.Map<core.String, api.SshPublicKey> o) {
111 unittest.expect(o, unittest.hasLength(2)); 111 unittest.expect(o, unittest.hasLength(2));
112 checkSshPublicKey(o["x"]); 112 checkSshPublicKey(o["x"]);
113 checkSshPublicKey(o["y"]); 113 checkSshPublicKey(o["y"]);
114 } 114 }
115 115
116 core.int buildCounterLoginProfile = 0; 116 core.int buildCounterLoginProfile = 0;
117 buildLoginProfile() { 117 buildLoginProfile() {
118 var o = new api.LoginProfile(); 118 var o = new api.LoginProfile();
119 buildCounterLoginProfile++; 119 buildCounterLoginProfile++;
120 if (buildCounterLoginProfile < 3) { 120 if (buildCounterLoginProfile < 3) {
121 o.name = "foo"; 121 o.name = "foo";
122 o.posixAccounts = buildUnnamed3392(); 122 o.posixAccounts = buildUnnamed3424();
123 o.sshPublicKeys = buildUnnamed3393(); 123 o.sshPublicKeys = buildUnnamed3425();
124 o.suspended = true; 124 o.suspended = true;
125 } 125 }
126 buildCounterLoginProfile--; 126 buildCounterLoginProfile--;
127 return o; 127 return o;
128 } 128 }
129 129
130 checkLoginProfile(api.LoginProfile o) { 130 checkLoginProfile(api.LoginProfile o) {
131 buildCounterLoginProfile++; 131 buildCounterLoginProfile++;
132 if (buildCounterLoginProfile < 3) { 132 if (buildCounterLoginProfile < 3) {
133 unittest.expect(o.name, unittest.equals('foo')); 133 unittest.expect(o.name, unittest.equals('foo'));
134 checkUnnamed3392(o.posixAccounts); 134 checkUnnamed3424(o.posixAccounts);
135 checkUnnamed3393(o.sshPublicKeys); 135 checkUnnamed3425(o.sshPublicKeys);
136 unittest.expect(o.suspended, unittest.isTrue); 136 unittest.expect(o.suspended, unittest.isTrue);
137 } 137 }
138 buildCounterLoginProfile--; 138 buildCounterLoginProfile--;
139 } 139 }
140 140
141 core.int buildCounterPosixAccount = 0; 141 core.int buildCounterPosixAccount = 0;
142 buildPosixAccount() { 142 buildPosixAccount() {
143 var o = new api.PosixAccount(); 143 var o = new api.PosixAccount();
144 buildCounterPosixAccount++; 144 buildCounterPosixAccount++;
145 if (buildCounterPosixAccount < 3) { 145 if (buildCounterPosixAccount < 3) {
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 res.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest .expectAsync1(((api.SshPublicKey response) { 479 res.patch(arg_request, arg_name, updateMask: arg_updateMask).then(unittest .expectAsync1(((api.SshPublicKey response) {
480 checkSshPublicKey(response); 480 checkSshPublicKey(response);
481 }))); 481 })));
482 }); 482 });
483 483
484 }); 484 });
485 485
486 486
487 } 487 }
488 488
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698