OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ | 5 #ifndef CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ |
6 #define CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ | 6 #define CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 void(const Identification& id, | 44 void(const Identification& id, |
45 const Authorization& auth, | 45 const Authorization& auth, |
46 const std::string& label, | 46 const std::string& label, |
47 const Callback& callback)); | 47 const Callback& callback)); |
48 MOCK_METHOD5(UpdateKeyEx, | 48 MOCK_METHOD5(UpdateKeyEx, |
49 void(const Identification& id, | 49 void(const Identification& id, |
50 const Authorization& auth, | 50 const Authorization& auth, |
51 const KeyDefinition& key, | 51 const KeyDefinition& key, |
52 const std::string& signature, | 52 const std::string& signature, |
53 const Callback& callback)); | 53 const Callback& callback)); |
| 54 MOCK_METHOD3(RenameCryptohome, |
| 55 void(const Identification& id_from, |
| 56 const Identification& id_to, |
| 57 const Callback& callback)); |
54 | 58 |
55 private: | 59 private: |
56 bool success_; | 60 bool success_; |
57 MountError return_code_; | 61 MountError return_code_; |
58 | 62 |
59 void DoCallback(const Callback& callback); | 63 void DoCallback(const Callback& callback); |
60 void DoGetDataCallback(const GetKeyDataCallback& callback); | 64 void DoGetDataCallback(const GetKeyDataCallback& callback); |
61 void DoMountCallback(const MountCallback& callback); | 65 void DoMountCallback(const MountCallback& callback); |
62 | 66 |
63 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods); | 67 DISALLOW_COPY_AND_ASSIGN(MockHomedirMethods); |
64 }; | 68 }; |
65 | 69 |
66 } // namespace cryptohome | 70 } // namespace cryptohome |
67 | 71 |
68 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ | 72 #endif // CHROMEOS_CRYPTOHOME_MOCK_HOMEDIR_METHODS_H_ |
OLD | NEW |