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

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

Issue 12094075: Added GetSanitizedUsername() method to CryptohomeClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "chromeos/dbus/cryptohome_client.h" 10 #include "chromeos/dbus/cryptohome_client.h"
(...skipping 17 matching lines...) Expand all
28 const std::string& key, 28 const std::string& key,
29 const AsyncMethodCallback& callback)); 29 const AsyncMethodCallback& callback));
30 MOCK_METHOD4(AsyncMigrateKey, 30 MOCK_METHOD4(AsyncMigrateKey,
31 void(const std::string& username, 31 void(const std::string& username,
32 const std::string& from_key, 32 const std::string& from_key,
33 const std::string& to_key, 33 const std::string& to_key,
34 const AsyncMethodCallback& callback)); 34 const AsyncMethodCallback& callback));
35 MOCK_METHOD2(AsyncRemove, void(const std::string& username, 35 MOCK_METHOD2(AsyncRemove, void(const std::string& username,
36 const AsyncMethodCallback& callback)); 36 const AsyncMethodCallback& callback));
37 MOCK_METHOD1(GetSystemSalt, bool(std::vector<uint8>* salt)); 37 MOCK_METHOD1(GetSystemSalt, bool(std::vector<uint8>* salt));
38 MOCK_METHOD2(GetSanitizedUsername,
39 void(const std::string& username,
40 const StringDBusMethodCallback& callback));
38 MOCK_METHOD4(AsyncMount, void(const std::string& username, 41 MOCK_METHOD4(AsyncMount, void(const std::string& username,
39 const std::string& key, 42 const std::string& key,
40 int flags, 43 int flags,
41 const AsyncMethodCallback& callback)); 44 const AsyncMethodCallback& callback));
42 MOCK_METHOD1(AsyncMountGuest, 45 MOCK_METHOD1(AsyncMountGuest,
43 void(const AsyncMethodCallback& callback)); 46 void(const AsyncMethodCallback& callback));
44 MOCK_METHOD1(TpmIsReady, void(const BoolDBusMethodCallback& callback)); 47 MOCK_METHOD1(TpmIsReady, void(const BoolDBusMethodCallback& callback));
45 MOCK_METHOD1(TpmIsEnabled, void(const BoolDBusMethodCallback& callback)); 48 MOCK_METHOD1(TpmIsEnabled, void(const BoolDBusMethodCallback& callback));
46 MOCK_METHOD1(CallTpmIsEnabledAndBlock, bool(bool* enabled)); 49 MOCK_METHOD1(CallTpmIsEnabledAndBlock, bool(bool* enabled));
47 MOCK_METHOD1(TpmGetPassword, void(const StringDBusMethodCallback& callback)); 50 MOCK_METHOD1(TpmGetPassword, void(const StringDBusMethodCallback& callback));
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void(bool is_cert_for_owner, 82 void(bool is_cert_for_owner,
80 const AsyncMethodCallback& callback)); 83 const AsyncMethodCallback& callback));
81 MOCK_METHOD2(AsyncTpmAttestationFinishCertRequest, 84 MOCK_METHOD2(AsyncTpmAttestationFinishCertRequest,
82 void(const std::string& pca_response, 85 void(const std::string& pca_response,
83 const AsyncMethodCallback& callback)); 86 const AsyncMethodCallback& callback));
84 }; 87 };
85 88
86 } // namespace chromeos 89 } // namespace chromeos
87 90
88 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ 91 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698