summaryrefslogtreecommitdiffstats
path: root/remoting/host/user_authenticator_fake.h
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/host/user_authenticator_fake.h')
-rw-r--r--remoting/host/user_authenticator_fake.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/remoting/host/user_authenticator_fake.h b/remoting/host/user_authenticator_fake.h
index f351931..faf1171 100644
--- a/remoting/host/user_authenticator_fake.h
+++ b/remoting/host/user_authenticator_fake.h
@@ -12,10 +12,7 @@
namespace remoting {
-// Temporary stub for platforms where this hasn't been implemented yet.
-
-// TODO(lambroslambrou): Implement properly on those platforms, then
-// delete this stub when it's no longer needed.
+// A fake UserAuthenticator, which accepts all but one user/password pair.
class UserAuthenticatorFake : public UserAuthenticator {
public:
UserAuthenticatorFake();
@@ -24,6 +21,10 @@ class UserAuthenticatorFake : public UserAuthenticator {
virtual bool Authenticate(const std::string& username,
const std::string& password);
+ // Get the user/password pair that a UserAuthenticatorFake rejects.
+ static const char* fail_username();
+ static const char* fail_password();
+
private:
DISALLOW_COPY_AND_ASSIGN(UserAuthenticatorFake);
};