| Index: remoting/host/user_authenticator_fake.cc
|
| diff --git a/remoting/host/user_authenticator_fake.cc b/remoting/host/user_authenticator_fake.cc
|
| index ae8e013087e6dac7d10e34519cbf79774f0f3528..61b19f7302860f35dd9f54f322f7051b3f50c826 100644
|
| --- a/remoting/host/user_authenticator_fake.cc
|
| +++ b/remoting/host/user_authenticator_fake.cc
|
| @@ -13,7 +13,16 @@ UserAuthenticatorFake::~UserAuthenticatorFake() {}
|
|
|
| bool UserAuthenticatorFake::Authenticate(const std::string& username,
|
| const std::string& password) {
|
| - return true;
|
| + return (username.compare(fail_username()) ||
|
| + password.compare(fail_password()));
|
| +}
|
| +
|
| +const char* UserAuthenticatorFake::fail_username() {
|
| + return "userfail";
|
| +}
|
| +
|
| +const char* UserAuthenticatorFake::fail_password() {
|
| + return "passwordfail";
|
| }
|
|
|
| } // namespace remoting
|
|
|