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

Side by Side Diff: chrome/browser/chromeos/cros/mock_cryptohome_library.h

Issue 8761016: Shaving parallel authenticator yak to remove unnecessary dependency on this class from OAuth spec... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 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 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_CROS_MOCK_CRYPTOHOME_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 const std::string& old_hash, 32 const std::string& old_hash,
33 const std::string& new_hash, 33 const std::string& new_hash,
34 Delegate* callback)); 34 Delegate* callback));
35 MOCK_METHOD4(AsyncMount, bool(const std::string& user_email, 35 MOCK_METHOD4(AsyncMount, bool(const std::string& user_email,
36 const std::string& passhash, 36 const std::string& passhash,
37 const bool create_if_missing, 37 const bool create_if_missing,
38 Delegate* callback)); 38 Delegate* callback));
39 MOCK_METHOD1(AsyncMountForBwsi, bool(Delegate* callback)); 39 MOCK_METHOD1(AsyncMountForBwsi, bool(Delegate* callback));
40 MOCK_METHOD2(AsyncRemove, bool(const std::string& user_email, Delegate* d)); 40 MOCK_METHOD2(AsyncRemove, bool(const std::string& user_email, Delegate* d));
41 MOCK_METHOD0(IsMounted, bool(void)); 41 MOCK_METHOD0(IsMounted, bool(void));
42 MOCK_METHOD0(GetSystemSalt, CryptohomeBlob(void)); 42 MOCK_METHOD1(HashPassword, std::string(const std::string& password));
43 MOCK_METHOD0(GetSystemSalt, std::string(void));
43 MOCK_METHOD2(AsyncSetOwnerUser, bool(const std::string&, Delegate* callback)); 44 MOCK_METHOD2(AsyncSetOwnerUser, bool(const std::string&, Delegate* callback));
44 45
45 MOCK_METHOD0(TpmIsReady, bool(void)); 46 MOCK_METHOD0(TpmIsReady, bool(void));
46 MOCK_METHOD0(TpmIsEnabled, bool(void)); 47 MOCK_METHOD0(TpmIsEnabled, bool(void));
47 MOCK_METHOD0(TpmIsOwned, bool(void)); 48 MOCK_METHOD0(TpmIsOwned, bool(void));
48 MOCK_METHOD0(TpmIsBeingOwned, bool(void)); 49 MOCK_METHOD0(TpmIsBeingOwned, bool(void));
49 MOCK_METHOD1(TpmGetPassword, bool(std::string* password)); 50 MOCK_METHOD1(TpmGetPassword, bool(std::string* password));
50 MOCK_METHOD0(TpmCanAttemptOwnership, void(void)); 51 MOCK_METHOD0(TpmCanAttemptOwnership, void(void));
51 MOCK_METHOD0(TpmClearStoredPassword, void(void)); 52 MOCK_METHOD0(TpmClearStoredPassword, void(void));
52 MOCK_METHOD0(Pkcs11IsTpmTokenReady, bool(void)); 53 MOCK_METHOD0(Pkcs11IsTpmTokenReady, bool(void));
(...skipping 19 matching lines...) Expand all
72 73
73 private: 74 private:
74 bool outcome_; 75 bool outcome_;
75 int code_; 76 int code_;
76 DISALLOW_COPY_AND_ASSIGN(MockCryptohomeLibrary); 77 DISALLOW_COPY_AND_ASSIGN(MockCryptohomeLibrary);
77 }; 78 };
78 79
79 } // namespace chromeos 80 } // namespace chromeos
80 81
81 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_ 82 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/cryptohome_library.cc ('k') | chrome/browser/chromeos/login/authenticator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698