Browse code
formatting
Greg Wiley authored on 20/04/2017 22:45:46
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -190,18 +190,19 @@ int returns_empty_user_and_token_when_pam_cant_create_conversation() |
190 | 190 |
succeed(); |
191 | 191 |
} |
192 | 192 |
|
193 |
-int returns_empty_user_and_token_when_conversation_fails() { |
|
193 |
+int returns_empty_user_and_token_when_conversation_fails() |
|
194 |
+{ |
|
194 | 195 |
pam_message prompt; |
195 | 196 |
prompt.msg_style = PAM_PROMPT_ECHO_OFF; |
196 | 197 |
prompt.msg = const_cast<char *> ("Dual control token: "); |
197 | 198 |
conversation_data conversation_data = { |
198 |
- std::vector<pam_message>(&prompt, &prompt + 1), |
|
199 |
+ std::vector<pam_message> (&prompt, &prompt + 1), |
|
199 | 200 |
std::vector<pam_response> (), |
200 | 201 |
PAM_SERVICE_ERR |
201 | 202 |
}; |
202 | 203 |
pam pam (share (new fake_pam (0, conversation_data))); |
203 | 204 |
conversation conversation = create_conversation (pam); |
204 |
- pam_request request(0, 0, 0, 0); |
|
205 |
+ pam_request request (0, 0, 0, 0); |
|
205 | 206 |
|
206 | 207 |
//when |
207 | 208 |
conversation_result actual = conversation.initiate (request); |
... | ... |
@@ -212,7 +213,8 @@ int returns_empty_user_and_token_when_conversation_fails() { |
212 | 213 |
succeed(); |
213 | 214 |
} |
214 | 215 |
|
215 |
-int returns_empty_user_and_token_when_conversation_answer_fails() { |
|
216 |
+int returns_empty_user_and_token_when_conversation_answer_fails() |
|
217 |
+{ |
|
216 | 218 |
pam_message prompt; |
217 | 219 |
prompt.msg_style = PAM_PROMPT_ECHO_OFF; |
218 | 220 |
prompt.msg = const_cast<char *> ("Dual control token: "); |
... | ... |
@@ -227,7 +229,7 @@ int returns_empty_user_and_token_when_conversation_answer_fails() { |
227 | 229 |
}; |
228 | 230 |
pam pam (share (new fake_pam (0, conversation_data))); |
229 | 231 |
conversation conversation = create_conversation (pam); |
230 |
- pam_request request(0, 0, 0, 0); |
|
232 |
+ pam_request request (0, 0, 0, 0); |
|
231 | 233 |
|
232 | 234 |
//when |
233 | 235 |
conversation_result actual = conversation.initiate (request); |
... | ... |
@@ -259,8 +261,3 @@ int main (int argc, char **argv) |
259 | 261 |
return !run_tests(); |
260 | 262 |
} |
261 | 263 |
|
262 |
-/* |
|
263 |
-int returns_empty_user_and_token_when_conversation_fails() |
|
264 |
-int returns_empty_user_and_token_when_conversation_answer_fails() |
|
265 |
-*/ |
|
266 |
- |