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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 24 matching lines...) Expand all Loading... |
35 const std::string& key, | 35 const std::string& key, |
36 const AsyncMethodCallback& callback)); | 36 const AsyncMethodCallback& callback)); |
37 MOCK_METHOD4(AsyncMigrateKey, | 37 MOCK_METHOD4(AsyncMigrateKey, |
38 void(const cryptohome::Identification& cryptohome_id, | 38 void(const cryptohome::Identification& cryptohome_id, |
39 const std::string& from_key, | 39 const std::string& from_key, |
40 const std::string& to_key, | 40 const std::string& to_key, |
41 const AsyncMethodCallback& callback)); | 41 const AsyncMethodCallback& callback)); |
42 MOCK_METHOD2(AsyncRemove, | 42 MOCK_METHOD2(AsyncRemove, |
43 void(const cryptohome::Identification& cryptohome_id, | 43 void(const cryptohome::Identification& cryptohome_id, |
44 const AsyncMethodCallback& callback)); | 44 const AsyncMethodCallback& callback)); |
| 45 MOCK_METHOD3(RenameCryptohome, |
| 46 void(const cryptohome::Identification& id_from, |
| 47 const cryptohome::Identification& id_to, |
| 48 const ProtobufMethodCallback& callback)); |
45 | 49 |
46 MOCK_METHOD1(GetSystemSalt, void(const GetSystemSaltCallback& callback)); | 50 MOCK_METHOD1(GetSystemSalt, void(const GetSystemSaltCallback& callback)); |
47 MOCK_METHOD2(GetSanitizedUsername, | 51 MOCK_METHOD2(GetSanitizedUsername, |
48 void(const cryptohome::Identification& cryptohome_id, | 52 void(const cryptohome::Identification& cryptohome_id, |
49 const StringDBusMethodCallback& callback)); | 53 const StringDBusMethodCallback& callback)); |
50 MOCK_METHOD1(BlockingGetSanitizedUsername, | 54 MOCK_METHOD1(BlockingGetSanitizedUsername, |
51 std::string(const cryptohome::Identification& cryptohome_id)); | 55 std::string(const cryptohome::Identification& cryptohome_id)); |
52 MOCK_METHOD4(AsyncMount, | 56 MOCK_METHOD4(AsyncMount, |
53 void(const cryptohome::Identification& cryptohome_id, | 57 void(const cryptohome::Identification& cryptohome_id, |
54 const std::string& key, | 58 const std::string& key, |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 const ProtobufMethodCallback& callback)); | 215 const ProtobufMethodCallback& callback)); |
212 MOCK_METHOD2( | 216 MOCK_METHOD2( |
213 FlushAndSignBootAttributes, | 217 FlushAndSignBootAttributes, |
214 void(const cryptohome::FlushAndSignBootAttributesRequest& request, | 218 void(const cryptohome::FlushAndSignBootAttributesRequest& request, |
215 const ProtobufMethodCallback& callback)); | 219 const ProtobufMethodCallback& callback)); |
216 }; | 220 }; |
217 | 221 |
218 } // namespace chromeos | 222 } // namespace chromeos |
219 | 223 |
220 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 224 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |