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

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

Issue 26407002: Add support for the Pkcs11GetTpmTokenInfoForUser cryptohome call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 MOCK_METHOD1(CallTpmIsBeingOwnedAndBlock, bool(bool* owning)); 64 MOCK_METHOD1(CallTpmIsBeingOwnedAndBlock, bool(bool* owning));
65 MOCK_METHOD1(TpmCanAttemptOwnership, 65 MOCK_METHOD1(TpmCanAttemptOwnership,
66 void(const VoidDBusMethodCallback& callback)); 66 void(const VoidDBusMethodCallback& callback));
67 MOCK_METHOD1(TpmClearStoredPassword, 67 MOCK_METHOD1(TpmClearStoredPassword,
68 void(const VoidDBusMethodCallback& callback)); 68 void(const VoidDBusMethodCallback& callback));
69 MOCK_METHOD0(CallTpmClearStoredPasswordAndBlock, bool()); 69 MOCK_METHOD0(CallTpmClearStoredPasswordAndBlock, bool());
70 MOCK_METHOD1(Pkcs11IsTpmTokenReady, 70 MOCK_METHOD1(Pkcs11IsTpmTokenReady,
71 void(const BoolDBusMethodCallback& callback)); 71 void(const BoolDBusMethodCallback& callback));
72 MOCK_METHOD1(Pkcs11GetTpmTokenInfo, 72 MOCK_METHOD1(Pkcs11GetTpmTokenInfo,
73 void(const Pkcs11GetTpmTokenInfoCallback& callback)); 73 void(const Pkcs11GetTpmTokenInfoCallback& callback));
74 MOCK_METHOD2(Pkcs11GetTpmTokenInfoForUser,
75 void(const std::string& username,
76 const Pkcs11GetTpmTokenInfoCallback& callback));
74 MOCK_METHOD3(InstallAttributesGet, 77 MOCK_METHOD3(InstallAttributesGet,
75 bool(const std::string& name, 78 bool(const std::string& name,
76 std::vector<uint8>* value, 79 std::vector<uint8>* value,
77 bool* successful)); 80 bool* successful));
78 MOCK_METHOD3(InstallAttributesSet, 81 MOCK_METHOD3(InstallAttributesSet,
79 bool(const std::string& name, 82 bool(const std::string& name,
80 const std::vector<uint8>& value, 83 const std::vector<uint8>& value,
81 bool* successful)); 84 bool* successful));
82 MOCK_METHOD1(InstallAttributesFinalize, bool(bool* successful)); 85 MOCK_METHOD1(InstallAttributesFinalize, bool(bool* successful));
83 MOCK_METHOD1(InstallAttributesIsReady, 86 MOCK_METHOD1(InstallAttributesIsReady,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 MOCK_METHOD4(TpmAttestationSetKeyPayload, 143 MOCK_METHOD4(TpmAttestationSetKeyPayload,
141 void(attestation::AttestationKeyType key_type, 144 void(attestation::AttestationKeyType key_type,
142 const std::string& key_name, 145 const std::string& key_name,
143 const std::string& payload, 146 const std::string& payload,
144 const BoolDBusMethodCallback& callback)); 147 const BoolDBusMethodCallback& callback));
145 }; 148 };
146 149
147 } // namespace chromeos 150 } // namespace chromeos
148 151
149 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ 152 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
OLDNEW
« chromeos/dbus/cryptohome_client.cc ('K') | « chromeos/dbus/fake_cryptohome_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698