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

Unified Diff: remoting/host/user_authenticator_fake.h

Issue 6724033: Remove authenticated_ fields from stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer's comments. 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
« no previous file with comments | « remoting/host/host_mock_objects.cc ('k') | remoting/host/user_authenticator_fake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/user_authenticator_fake.h
diff --git a/remoting/host/user_authenticator_fake.h b/remoting/host/user_authenticator_fake.h
index f35193114bef27b65ea533b0b5f966c88297d535..faf1171da0a43899107dc8d5c2c18ec76e79056b 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);
};
« no previous file with comments | « remoting/host/host_mock_objects.cc ('k') | remoting/host/user_authenticator_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698