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

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

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 4 years, 10 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 22 matching lines...) Expand all
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698