Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(399)

Unified Diff: remoting/host/user_authenticator_fake.cc

Issue 6724033: Remove authenticated_ fields from stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove redundant comment. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698