| OLD | NEW |
| 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 23 matching lines...) Expand all Loading... |
| 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_METHOD1(HashPassword, std::string(const std::string& password)); | 42 MOCK_METHOD1(HashPassword, std::string(const std::string& password)); |
| 43 MOCK_METHOD0(GetSystemSalt, std::string(void)); | 43 MOCK_METHOD0(GetSystemSalt, std::string(void)); |
| 44 MOCK_METHOD2(AsyncSetOwnerUser, bool(const std::string&, Delegate* callback)); | |
| 45 | 44 |
| 46 MOCK_METHOD0(TpmIsReady, bool(void)); | 45 MOCK_METHOD0(TpmIsReady, bool(void)); |
| 47 MOCK_METHOD0(TpmIsEnabled, bool(void)); | 46 MOCK_METHOD0(TpmIsEnabled, bool(void)); |
| 48 MOCK_METHOD0(TpmIsOwned, bool(void)); | 47 MOCK_METHOD0(TpmIsOwned, bool(void)); |
| 49 MOCK_METHOD0(TpmIsBeingOwned, bool(void)); | 48 MOCK_METHOD0(TpmIsBeingOwned, bool(void)); |
| 50 MOCK_METHOD1(TpmGetPassword, bool(std::string* password)); | 49 MOCK_METHOD1(TpmGetPassword, bool(std::string* password)); |
| 51 MOCK_METHOD0(TpmCanAttemptOwnership, void(void)); | 50 MOCK_METHOD0(TpmCanAttemptOwnership, void(void)); |
| 52 MOCK_METHOD0(TpmClearStoredPassword, void(void)); | 51 MOCK_METHOD0(TpmClearStoredPassword, void(void)); |
| 53 MOCK_METHOD0(Pkcs11IsTpmTokenReady, bool(void)); | 52 MOCK_METHOD0(Pkcs11IsTpmTokenReady, bool(void)); |
| 54 MOCK_METHOD2(Pkcs11GetTpmTokenInfo, void(std::string*, std::string*)); | 53 MOCK_METHOD2(Pkcs11GetTpmTokenInfo, void(std::string*, std::string*)); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 | 72 |
| 74 private: | 73 private: |
| 75 bool outcome_; | 74 bool outcome_; |
| 76 int code_; | 75 int code_; |
| 77 DISALLOW_COPY_AND_ASSIGN(MockCryptohomeLibrary); | 76 DISALLOW_COPY_AND_ASSIGN(MockCryptohomeLibrary); |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 } // namespace chromeos | 79 } // namespace chromeos |
| 81 | 80 |
| 82 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_ | 81 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_CRYPTOHOME_LIBRARY_H_ |
| OLD | NEW |