Browse code
fix tests after fn name change
Greg Wiley authored on 27/04/2017 17:41:10
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -131,7 +131,7 @@ conversation make_conversation (pam_handle *expected_handle, |
131 | 131 |
PAM_SUCCESS |
132 | 132 |
}; |
133 | 133 |
pam pam (share (new fake_pam (expected_handle, conversation_data))); |
134 |
- return create_conversation (pam); |
|
134 |
+ return conversation::create (pam); |
|
135 | 135 |
|
136 | 136 |
} |
137 | 137 |
|
... | ... |
@@ -188,7 +188,7 @@ int returns_empty_user_and_token_when_pam_cant_create_conversation() |
188 | 188 |
{ |
189 | 189 |
// given |
190 | 190 |
pam pam (share (new fake_pam (PAM_SERVICE_ERR))); |
191 |
- conversation conversation = create_conversation (pam); |
|
191 |
+ conversation conversation = conversation::create (pam); |
|
192 | 192 |
pam_request request (0, 0, 0, 0); |
193 | 193 |
|
194 | 194 |
// when |
... | ... |
@@ -212,7 +212,7 @@ int returns_empty_user_and_token_when_conversation_fails() |
212 | 212 |
PAM_SERVICE_ERR |
213 | 213 |
}; |
214 | 214 |
pam pam (share (new fake_pam (0, conversation_data))); |
215 |
- conversation conversation = create_conversation (pam); |
|
215 |
+ conversation conversation = conversation::create (pam); |
|
216 | 216 |
pam_request request (0, 0, 0, 0); |
217 | 217 |
|
218 | 218 |
//when |
... | ... |
@@ -239,7 +239,7 @@ int returns_empty_user_and_token_when_conversation_answer_fails() |
239 | 239 |
PAM_SUCCESS |
240 | 240 |
}; |
241 | 241 |
pam pam (share (new fake_pam (0, conversation_data))); |
242 |
- conversation conversation = create_conversation (pam); |
|
242 |
+ conversation conversation = conversation::create (pam); |
|
243 | 243 |
pam_request request (0, 0, 0, 0); |
244 | 244 |
|
245 | 245 |
//when |
... | ... |
@@ -67,7 +67,7 @@ bool validator_validates() |
67 | 67 |
fake_user_token_supplier (token))); |
68 | 68 |
std::string user_name = "msmith"; |
69 | 69 |
directory directory (share (new fake_directory (user_name))); |
70 |
- validator validator = create_validator (directory, user_token_supplier); |
|
70 |
+ validator validator = validator::create (directory, user_token_supplier); |
|
71 | 71 |
|
72 | 72 |
// when |
73 | 73 |
bool actual = validator.validate (user_name, token); |
... | ... |
@@ -85,7 +85,7 @@ bool validator_fails_unknown_user() |
85 | 85 |
user_token_supplier user_token_supplier (share (new |
86 | 86 |
fake_user_token_supplier)); |
87 | 87 |
directory directory (share (new fake_directory)); |
88 |
- validator validator = create_validator (directory, user_token_supplier); |
|
88 |
+ validator validator = validator::create (directory, user_token_supplier); |
|
89 | 89 |
|
90 | 90 |
// when |
91 | 91 |
bool actual = validator.validate ("notuser", token); |
... | ... |
@@ -103,7 +103,7 @@ bool validator_fails_incorrect_token() |
103 | 103 |
fake_user_token_supplier)); |
104 | 104 |
std::string user_name = "msmith"; |
105 | 105 |
directory directory (share (new fake_directory (user_name))); |
106 |
- validator validator = create_validator (directory, user_token_supplier); |
|
106 |
+ validator validator = validator::create (directory, user_token_supplier); |
|
107 | 107 |
|
108 | 108 |
// when |
109 | 109 |
bool actual = validator.validate (user_name, "token"); |