| OLD | NEW |
| 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 CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 6 #define CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chromeos/dbus/cryptohome_client.h" | 10 #include "chromeos/dbus/cryptohome_client.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 const std::string& key, | 28 const std::string& key, |
| 29 const AsyncMethodCallback& callback)); | 29 const AsyncMethodCallback& callback)); |
| 30 MOCK_METHOD4(AsyncMigrateKey, | 30 MOCK_METHOD4(AsyncMigrateKey, |
| 31 void(const std::string& username, | 31 void(const std::string& username, |
| 32 const std::string& from_key, | 32 const std::string& from_key, |
| 33 const std::string& to_key, | 33 const std::string& to_key, |
| 34 const AsyncMethodCallback& callback)); | 34 const AsyncMethodCallback& callback)); |
| 35 MOCK_METHOD2(AsyncRemove, void(const std::string& username, | 35 MOCK_METHOD2(AsyncRemove, void(const std::string& username, |
| 36 const AsyncMethodCallback& callback)); | 36 const AsyncMethodCallback& callback)); |
| 37 MOCK_METHOD1(GetSystemSalt, bool(std::vector<uint8>* salt)); | 37 MOCK_METHOD1(GetSystemSalt, bool(std::vector<uint8>* salt)); |
| 38 MOCK_METHOD2(GetSanitizedUsername, |
| 39 void(const std::string& username, |
| 40 const StringDBusMethodCallback& callback)); |
| 38 MOCK_METHOD4(AsyncMount, void(const std::string& username, | 41 MOCK_METHOD4(AsyncMount, void(const std::string& username, |
| 39 const std::string& key, | 42 const std::string& key, |
| 40 int flags, | 43 int flags, |
| 41 const AsyncMethodCallback& callback)); | 44 const AsyncMethodCallback& callback)); |
| 42 MOCK_METHOD1(AsyncMountGuest, | 45 MOCK_METHOD1(AsyncMountGuest, |
| 43 void(const AsyncMethodCallback& callback)); | 46 void(const AsyncMethodCallback& callback)); |
| 44 MOCK_METHOD1(TpmIsReady, void(const BoolDBusMethodCallback& callback)); | 47 MOCK_METHOD1(TpmIsReady, void(const BoolDBusMethodCallback& callback)); |
| 45 MOCK_METHOD1(TpmIsEnabled, void(const BoolDBusMethodCallback& callback)); | 48 MOCK_METHOD1(TpmIsEnabled, void(const BoolDBusMethodCallback& callback)); |
| 46 MOCK_METHOD1(CallTpmIsEnabledAndBlock, bool(bool* enabled)); | 49 MOCK_METHOD1(CallTpmIsEnabledAndBlock, bool(bool* enabled)); |
| 47 MOCK_METHOD1(TpmGetPassword, void(const StringDBusMethodCallback& callback)); | 50 MOCK_METHOD1(TpmGetPassword, void(const StringDBusMethodCallback& callback)); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void(bool is_cert_for_owner, | 82 void(bool is_cert_for_owner, |
| 80 const AsyncMethodCallback& callback)); | 83 const AsyncMethodCallback& callback)); |
| 81 MOCK_METHOD2(AsyncTpmAttestationFinishCertRequest, | 84 MOCK_METHOD2(AsyncTpmAttestationFinishCertRequest, |
| 82 void(const std::string& pca_response, | 85 void(const std::string& pca_response, |
| 83 const AsyncMethodCallback& callback)); | 86 const AsyncMethodCallback& callback)); |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace chromeos | 89 } // namespace chromeos |
| 87 | 90 |
| 88 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 91 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |