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

Side by Side Diff: remoting/host/user_authenticator_fake.h

Issue 6780014: Clean up remoting project (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got rid of ref counting on user authenticator Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/user_authenticator.h ('k') | remoting/host/user_authenticator_fake.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_HOST_USER_AUTHENTICATOR_FAKE_H_
6 #define REMOTING_HOST_USER_AUTHENTICATOR_FAKE_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "remoting/host/user_authenticator.h"
12
13 namespace remoting {
14
15 // A fake UserAuthenticator, which accepts all but one user/password pair.
16 class UserAuthenticatorFake : public UserAuthenticator {
17 public:
18 UserAuthenticatorFake();
19 virtual ~UserAuthenticatorFake();
20
21 virtual bool Authenticate(const std::string& username,
22 const std::string& password);
23
24 // Get the user/password pair that a UserAuthenticatorFake rejects.
25 static const char* fail_username();
26 static const char* fail_password();
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(UserAuthenticatorFake);
30 };
31
32 } // namespace remoting
33
34 #endif // REMOTING_HOST_USER_AUTHENTICATOR_FAKE_H_
OLDNEW
« no previous file with comments | « remoting/host/user_authenticator.h ('k') | remoting/host/user_authenticator_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698