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

Side by Side Diff: chrome/browser/chromeos/login/mock_authenticator.h

Issue 10386206: RefCounted types should not have public destructors, chromeos edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r143931 Created 8 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const std::string& old_password) OVERRIDE {} 58 const std::string& old_password) OVERRIDE {}
59 59
60 virtual void ResyncEncryptedData() OVERRIDE {} 60 virtual void ResyncEncryptedData() OVERRIDE {}
61 61
62 virtual void RetryAuth(Profile* profile, 62 virtual void RetryAuth(Profile* profile,
63 const std::string& username, 63 const std::string& username,
64 const std::string& password, 64 const std::string& password,
65 const std::string& login_token, 65 const std::string& login_token,
66 const std::string& login_captcha) OVERRIDE {} 66 const std::string& login_captcha) OVERRIDE {}
67 67
68 protected:
69 virtual ~MockAuthenticator() {}
70
68 private: 71 private:
69 std::string expected_username_; 72 std::string expected_username_;
70 std::string expected_password_; 73 std::string expected_password_;
71 74
72 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator); 75 DISALLOW_COPY_AND_ASSIGN(MockAuthenticator);
73 }; 76 };
74 77
75 class TestLoginUtils : public LoginUtils { 78 class TestLoginUtils : public LoginUtils {
76 public: 79 public:
77 TestLoginUtils(const std::string& expected_username, 80 TestLoginUtils(const std::string& expected_username,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 std::string expected_username_; 127 std::string expected_username_;
125 std::string expected_password_; 128 std::string expected_password_;
126 std::string auth_token_; 129 std::string auth_token_;
127 130
128 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils); 131 DISALLOW_COPY_AND_ASSIGN(TestLoginUtils);
129 }; 132 };
130 133
131 } // namespace chromeos 134 } // namespace chromeos
132 135
133 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_ 136 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/login_utils.cc ('k') | chrome/browser/chromeos/login/owner_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698