• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Security-57031.1.35/Security/sec/securityd/Regressions/

Lines Matching defs:alice_account

77     SOSAccountRef alice_account = CreateAccountForLocalChanges(CFSTR("Alice"), CFSTR("TestSource"));
85 is(ProcessChangesUntilNoChange(changes, alice_account, bob_account, carole_account, david_account, NULL), 1, "updates");
87 ok(SOSAccountAssertUserCredentials(alice_account, cfaccount, cfpassword, &error), "Credential setting (%@)", error);
97 ok(SOSAccountResetToOffering(alice_account, &error), "Reset to offering (%@)", error);
101 is(ProcessChangesOnce(changes, alice_account, bob_account, carole_account, david_account, NULL), 1, "updates");
109 is(ProcessChangesUntilNoChange(changes, alice_account, bob_account, carole_account, david_account, NULL), 3, "updates");
111 accounts_agree("alice and carole agree", alice_account, carole_account);
112 accounts_agree("alice and bob agree", alice_account, bob_account);
115 CFArrayRef applicants = SOSAccountCopyApplicants(alice_account, &error);
122 is(ProcessChangesUntilNoChange(changes, alice_account, bob_account, carole_account, david_account, NULL), 1, "updates");
124 accounts_agree("alice and carole agree", alice_account, carole_account);
129 CFArrayRef applicants = SOSAccountCopyApplicants(alice_account, &error);
131 ok(SOSAccountRejectApplicants(alice_account, applicants, &error), "Everyone out the pool");
136 is(ProcessChangesUntilNoChange(changes, alice_account, bob_account, carole_account, david_account, NULL), 2, "updates");
138 accounts_agree("alice and carole agree", alice_account, carole_account);
141 CFArrayRef applicants = SOSAccountCopyApplicants(alice_account, &error);
150 is(ProcessChangesUntilNoChange(changes, alice_account, bob_account, carole_account, david_account, NULL), 2, "updates");
153 CFArrayRef applicants = SOSAccountCopyApplicants(alice_account, &error);
156 ok(SOSAccountAcceptApplicants(alice_account, applicants, &error), "Accept bob into the fold");
161 is(ProcessChangesUntilNoChange(changes, alice_account, bob_account, carole_account, david_account, NULL), 3, "updates");
166 CFArrayRef applicants = SOSAccountCopyApplicants(alice_account, &error);
169 ok(SOSAccountAcceptApplicants(alice_account, applicants, &error), "Alice accepts (%@)", error);
174 is(countPeers(alice_account, 0), 3, "Bob is accepted after auto-reapply");
178 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
179 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
180 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
184 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
185 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
186 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
190 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
191 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
192 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
193 accounts_agree("alice and carole agree after bob gets in", alice_account, carole_account);
201 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
202 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
203 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
205 SOSAccountPurgePrivateCredential(alice_account);
208 CFArrayRef applicants = SOSAccountCopyApplicants(alice_account, &error);
211 ok(SOSAccountRejectApplicants(alice_account, applicants, &error), "Alice rejects (%@)", error);
218 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
219 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
220 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
224 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
225 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
226 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
230 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
231 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
232 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
234 accounts_agree("alice and carole still agree after david is rejected", alice_account, carole_account);
235 ok(SOSAccountTryUserCredentials(alice_account, cfaccount, cfpassword, &error), "Credential setting (%@)", error);
240 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
241 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
242 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
251 accounts_agree("bob&alice pair", bob_account, alice_account);
260 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
261 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
262 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
266 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
267 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
268 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL);
272 FeedChangesToMulti(BobChanges, alice_account, carole_account, david_account, NULL);
273 FeedChangesToMulti(CarolChanges, bob_account, alice_account, david_account, NULL);
274 FeedChangesToMulti(DavidChanges, bob_account, alice_account, carole_account, NULL); // Bob and carole see the final result.
276 accounts_agree_internal("Carole's in", bob_account, alice_account, false);
280 CFReleaseNull(alice_account);