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

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

Issue 27044004: Added multi-profile support for attestation on chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « chromeos/dbus/fake_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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 MOCK_METHOD1(TpmAttestationIsEnrolled, 92 MOCK_METHOD1(TpmAttestationIsEnrolled,
93 void(const BoolDBusMethodCallback& callback)); 93 void(const BoolDBusMethodCallback& callback));
94 MOCK_METHOD1(AsyncTpmAttestationCreateEnrollRequest, 94 MOCK_METHOD1(AsyncTpmAttestationCreateEnrollRequest,
95 void(const AsyncMethodCallback& callback)); 95 void(const AsyncMethodCallback& callback));
96 MOCK_METHOD2(AsyncTpmAttestationEnroll, 96 MOCK_METHOD2(AsyncTpmAttestationEnroll,
97 void(const std::string& pca_response, 97 void(const std::string& pca_response,
98 const AsyncMethodCallback& callback)); 98 const AsyncMethodCallback& callback));
99 MOCK_METHOD4( 99 MOCK_METHOD4(
100 AsyncTpmAttestationCreateCertRequest, 100 AsyncTpmAttestationCreateCertRequest,
101 void(attestation::AttestationCertificateProfile certificate_profile, 101 void(attestation::AttestationCertificateProfile certificate_profile,
102 const std::string& user_email, 102 const std::string& user_id,
103 const std::string& request_origin, 103 const std::string& request_origin,
104 const AsyncMethodCallback& callback)); 104 const AsyncMethodCallback& callback));
105 MOCK_METHOD4(AsyncTpmAttestationFinishCertRequest, 105 MOCK_METHOD5(AsyncTpmAttestationFinishCertRequest,
106 void(const std::string& pca_response, 106 void(const std::string& pca_response,
107 attestation::AttestationKeyType key_type, 107 attestation::AttestationKeyType key_type,
108 const std::string& user_id,
108 const std::string& key_name, 109 const std::string& key_name,
109 const AsyncMethodCallback& callback)); 110 const AsyncMethodCallback& callback));
110 MOCK_METHOD3(TpmAttestationDoesKeyExist, 111 MOCK_METHOD4(TpmAttestationDoesKeyExist,
111 void(attestation::AttestationKeyType key_type, 112 void(attestation::AttestationKeyType key_type,
113 const std::string& user_id,
112 const std::string& key_name, 114 const std::string& key_name,
113 const BoolDBusMethodCallback& callback)); 115 const BoolDBusMethodCallback& callback));
114 MOCK_METHOD3(TpmAttestationGetCertificate, 116 MOCK_METHOD4(TpmAttestationGetCertificate,
115 void(attestation::AttestationKeyType key_type, 117 void(attestation::AttestationKeyType key_type,
118 const std::string& user_id,
116 const std::string& key_name, 119 const std::string& key_name,
117 const DataMethodCallback& callback)); 120 const DataMethodCallback& callback));
118 MOCK_METHOD3(TpmAttestationGetPublicKey, 121 MOCK_METHOD4(TpmAttestationGetPublicKey,
119 void(attestation::AttestationKeyType key_type, 122 void(attestation::AttestationKeyType key_type,
123 const std::string& user_id,
120 const std::string& key_name, 124 const std::string& key_name,
121 const DataMethodCallback& callback)); 125 const DataMethodCallback& callback));
122 MOCK_METHOD3(TpmAttestationRegisterKey, 126 MOCK_METHOD4(TpmAttestationRegisterKey,
123 void(attestation::AttestationKeyType key_type, 127 void(attestation::AttestationKeyType key_type,
128 const std::string& user_id,
124 const std::string& key_name, 129 const std::string& key_name,
125 const AsyncMethodCallback& callback)); 130 const AsyncMethodCallback& callback));
126 MOCK_METHOD7(TpmAttestationSignEnterpriseChallenge, 131 MOCK_METHOD8(TpmAttestationSignEnterpriseChallenge,
127 void(attestation::AttestationKeyType key_type, 132 void(attestation::AttestationKeyType key_type,
133 const std::string& user_id,
128 const std::string& key_name, 134 const std::string& key_name,
129 const std::string& domain, 135 const std::string& domain,
130 const std::string& device_id, 136 const std::string& device_id,
131 attestation::AttestationChallengeOptions options, 137 attestation::AttestationChallengeOptions options,
132 const std::string& challenge, 138 const std::string& challenge,
133 const AsyncMethodCallback& callback)); 139 const AsyncMethodCallback& callback));
134 MOCK_METHOD4(TpmAttestationSignSimpleChallenge, 140 MOCK_METHOD5(TpmAttestationSignSimpleChallenge,
135 void(attestation::AttestationKeyType key_type, 141 void(attestation::AttestationKeyType key_type,
142 const std::string& user_id,
136 const std::string& key_name, 143 const std::string& key_name,
137 const std::string& challenge, 144 const std::string& challenge,
138 const AsyncMethodCallback& callback)); 145 const AsyncMethodCallback& callback));
139 MOCK_METHOD3(TpmAttestationGetKeyPayload, 146 MOCK_METHOD4(TpmAttestationGetKeyPayload,
140 void(attestation::AttestationKeyType key_type, 147 void(attestation::AttestationKeyType key_type,
148 const std::string& user_id,
141 const std::string& key_name, 149 const std::string& key_name,
142 const DataMethodCallback& callback)); 150 const DataMethodCallback& callback));
143 MOCK_METHOD4(TpmAttestationSetKeyPayload, 151 MOCK_METHOD5(TpmAttestationSetKeyPayload,
144 void(attestation::AttestationKeyType key_type, 152 void(attestation::AttestationKeyType key_type,
153 const std::string& user_id,
145 const std::string& key_name, 154 const std::string& key_name,
146 const std::string& payload, 155 const std::string& payload,
147 const BoolDBusMethodCallback& callback)); 156 const BoolDBusMethodCallback& callback));
148 }; 157 };
149 158
150 } // namespace chromeos 159 } // namespace chromeos
151 160
152 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ 161 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_cryptohome_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698