| OLD | NEW |
| (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 #include "remoting/host/user_authenticator_fake.h" | |
| 6 | |
| 7 #include <string> | |
| 8 | |
| 9 namespace remoting { | |
| 10 | |
| 11 UserAuthenticatorFake::UserAuthenticatorFake() {} | |
| 12 UserAuthenticatorFake::~UserAuthenticatorFake() {} | |
| 13 | |
| 14 bool UserAuthenticatorFake::Authenticate(const std::string& username, | |
| 15 const std::string& password) { | |
| 16 return (username.compare(fail_username()) || | |
| 17 password.compare(fail_password())); | |
| 18 } | |
| 19 | |
| 20 const char* UserAuthenticatorFake::fail_username() { | |
| 21 return "userfail"; | |
| 22 } | |
| 23 | |
| 24 const char* UserAuthenticatorFake::fail_password() { | |
| 25 return "passwordfail"; | |
| 26 } | |
| 27 | |
| 28 } // namespace remoting | |
| OLD | NEW |