| 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 19 matching lines...) Expand all Loading... |
| 30 void(const std::string& username, | 30 void(const std::string& username, |
| 31 const std::string& key, | 31 const std::string& key, |
| 32 const AsyncMethodCallback& callback)); | 32 const AsyncMethodCallback& callback)); |
| 33 MOCK_METHOD4(AsyncMigrateKey, | 33 MOCK_METHOD4(AsyncMigrateKey, |
| 34 void(const std::string& username, | 34 void(const std::string& username, |
| 35 const std::string& from_key, | 35 const std::string& from_key, |
| 36 const std::string& to_key, | 36 const std::string& to_key, |
| 37 const AsyncMethodCallback& callback)); | 37 const AsyncMethodCallback& callback)); |
| 38 MOCK_METHOD2(AsyncRemove, void(const std::string& username, | 38 MOCK_METHOD2(AsyncRemove, void(const std::string& username, |
| 39 const AsyncMethodCallback& callback)); | 39 const AsyncMethodCallback& callback)); |
| 40 MOCK_METHOD1(GetSystemSalt, bool(std::vector<uint8>* salt)); | 40 MOCK_METHOD1(GetSystemSalt, void(const GetSystemSaltCallback& callback)); |
| 41 MOCK_METHOD2(GetSanitizedUsername, | 41 MOCK_METHOD2(GetSanitizedUsername, |
| 42 void(const std::string& username, | 42 void(const std::string& username, |
| 43 const StringDBusMethodCallback& callback)); | 43 const StringDBusMethodCallback& callback)); |
| 44 MOCK_METHOD1(BlockingGetSanitizedUsername, | 44 MOCK_METHOD1(BlockingGetSanitizedUsername, |
| 45 std::string(const std::string& username)); | 45 std::string(const std::string& username)); |
| 46 MOCK_METHOD4(AsyncMount, void(const std::string& username, | 46 MOCK_METHOD4(AsyncMount, void(const std::string& username, |
| 47 const std::string& key, | 47 const std::string& key, |
| 48 int flags, | 48 int flags, |
| 49 const AsyncMethodCallback& callback)); | 49 const AsyncMethodCallback& callback)); |
| 50 MOCK_METHOD4(AsyncAddKey, void(const std::string& username, | 50 MOCK_METHOD4(AsyncAddKey, void(const std::string& username, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 void(attestation::AttestationKeyType key_type, | 154 void(attestation::AttestationKeyType key_type, |
| 155 const std::string& user_id, | 155 const std::string& user_id, |
| 156 const std::string& key_name, | 156 const std::string& key_name, |
| 157 const std::string& payload, | 157 const std::string& payload, |
| 158 const BoolDBusMethodCallback& callback)); | 158 const BoolDBusMethodCallback& callback)); |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 } // namespace chromeos | 161 } // namespace chromeos |
| 162 | 162 |
| 163 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 163 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |