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 22 matching lines...) Expand all Loading... |
33 void(const std::string& username, | 33 void(const std::string& username, |
34 const std::string& key, | 34 const std::string& key, |
35 const AsyncMethodCallback& callback)); | 35 const AsyncMethodCallback& callback)); |
36 MOCK_METHOD4(AsyncMigrateKey, | 36 MOCK_METHOD4(AsyncMigrateKey, |
37 void(const std::string& username, | 37 void(const std::string& username, |
38 const std::string& from_key, | 38 const std::string& from_key, |
39 const std::string& to_key, | 39 const std::string& to_key, |
40 const AsyncMethodCallback& callback)); | 40 const AsyncMethodCallback& callback)); |
41 MOCK_METHOD2(AsyncRemove, void(const std::string& username, | 41 MOCK_METHOD2(AsyncRemove, void(const std::string& username, |
42 const AsyncMethodCallback& callback)); | 42 const AsyncMethodCallback& callback)); |
| 43 MOCK_METHOD3(RenameCryptohome, |
| 44 void(const cryptohome::AccountIdentifier& id_from, |
| 45 const cryptohome::AccountIdentifier& id_to, |
| 46 const ProtobufMethodCallback& callback)); |
| 47 |
43 MOCK_METHOD1(GetSystemSalt, void(const GetSystemSaltCallback& callback)); | 48 MOCK_METHOD1(GetSystemSalt, void(const GetSystemSaltCallback& callback)); |
44 MOCK_METHOD2(GetSanitizedUsername, | 49 MOCK_METHOD2(GetSanitizedUsername, |
45 void(const std::string& username, | 50 void(const std::string& username, |
46 const StringDBusMethodCallback& callback)); | 51 const StringDBusMethodCallback& callback)); |
47 MOCK_METHOD1(BlockingGetSanitizedUsername, | 52 MOCK_METHOD1(BlockingGetSanitizedUsername, |
48 std::string(const std::string& username)); | 53 std::string(const std::string& username)); |
49 MOCK_METHOD4(AsyncMount, void(const std::string& username, | 54 MOCK_METHOD4(AsyncMount, void(const std::string& username, |
50 const std::string& key, | 55 const std::string& key, |
51 int flags, | 56 int flags, |
52 const AsyncMethodCallback& callback)); | 57 const AsyncMethodCallback& callback)); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 const ProtobufMethodCallback& callback)); | 210 const ProtobufMethodCallback& callback)); |
206 MOCK_METHOD2( | 211 MOCK_METHOD2( |
207 FlushAndSignBootAttributes, | 212 FlushAndSignBootAttributes, |
208 void(const cryptohome::FlushAndSignBootAttributesRequest& request, | 213 void(const cryptohome::FlushAndSignBootAttributesRequest& request, |
209 const ProtobufMethodCallback& callback)); | 214 const ProtobufMethodCallback& callback)); |
210 }; | 215 }; |
211 | 216 |
212 } // namespace chromeos | 217 } // namespace chromeos |
213 | 218 |
214 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 219 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |