|
|
|
@ -12,22 +12,22 @@ class Authenticator
|
|
|
|
|
public:
|
|
|
|
|
virtual ~Authenticator() { }
|
|
|
|
|
virtual bool authenticate(
|
|
|
|
|
struct wf_credentials * credentials,
|
|
|
|
|
struct wf_credentials const * credentials,
|
|
|
|
|
void * user_data) = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class MockAuthenticator: public Authenticator
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
MOCK_METHOD2(authenticate, bool (struct wf_credentials * credentials, void * user_data));
|
|
|
|
|
MOCK_METHOD2(authenticate, bool (struct wf_credentials const * credentials, void * user_data));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void set_authenticator(Authenticator * authenticator);
|
|
|
|
|
void set_authenticator(size_t index, Authenticator * authenticator);
|
|
|
|
|
|
|
|
|
|
bool authenticate(struct wf_credentials * creds, void * user_data);
|
|
|
|
|
bool authenticate_1(struct wf_credentials * creds, void * user_data);
|
|
|
|
|
bool authenticate_2(struct wf_credentials * creds, void * user_data);
|
|
|
|
|
bool authenticate(struct wf_credentials const * creds, void * user_data);
|
|
|
|
|
bool authenticate_1(struct wf_credentials const * creds, void * user_data);
|
|
|
|
|
bool authenticate_2(struct wf_credentials const * creds, void * user_data);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|