Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: chromeos/dbus/mock_cryptohome_client.h

Issue 1738023002: ChromeOS: Add RenameCryptohome and migration code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@462823--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part11--migrate-cryptohomes
Patch Set: Update after review. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.cc ('k') | chromeos/login/auth/cryptohome_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698