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

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

Issue 14305009: Enhanced and refactored the AttestationFlow interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 MOCK_METHOD1(AsyncTpmAttestationCreateEnrollRequest, 81 MOCK_METHOD1(AsyncTpmAttestationCreateEnrollRequest,
82 void(const AsyncMethodCallback& callback)); 82 void(const AsyncMethodCallback& callback));
83 MOCK_METHOD2(AsyncTpmAttestationEnroll, 83 MOCK_METHOD2(AsyncTpmAttestationEnroll,
84 void(const std::string& pca_response, 84 void(const std::string& pca_response,
85 const AsyncMethodCallback& callback)); 85 const AsyncMethodCallback& callback));
86 MOCK_METHOD2(AsyncTpmAttestationCreateCertRequest, 86 MOCK_METHOD2(AsyncTpmAttestationCreateCertRequest,
87 void(int options, 87 void(int options,
88 const AsyncMethodCallback& callback)); 88 const AsyncMethodCallback& callback));
89 MOCK_METHOD4(AsyncTpmAttestationFinishCertRequest, 89 MOCK_METHOD4(AsyncTpmAttestationFinishCertRequest,
90 void(const std::string& pca_response, 90 void(const std::string& pca_response,
91 AttestationKeyType key_type, 91 attestation::AttestationKeyType key_type,
92 const std::string& key_name, 92 const std::string& key_name,
93 const AsyncMethodCallback& callback)); 93 const AsyncMethodCallback& callback));
94 MOCK_METHOD3(TpmAttestationDoesKeyExist, 94 MOCK_METHOD3(TpmAttestationDoesKeyExist,
95 void(AttestationKeyType key_type, 95 void(attestation::AttestationKeyType key_type,
96 const std::string& key_name, 96 const std::string& key_name,
97 const BoolDBusMethodCallback& callback)); 97 const BoolDBusMethodCallback& callback));
98 MOCK_METHOD3(TpmAttestationGetCertificate, 98 MOCK_METHOD3(TpmAttestationGetCertificate,
99 void(AttestationKeyType key_type, 99 void(attestation::AttestationKeyType key_type,
100 const std::string& key_name, 100 const std::string& key_name,
101 const DataMethodCallback& callback)); 101 const DataMethodCallback& callback));
102 MOCK_METHOD3(TpmAttestationGetPublicKey, 102 MOCK_METHOD3(TpmAttestationGetPublicKey,
103 void(AttestationKeyType key_type, 103 void(attestation::AttestationKeyType key_type,
104 const std::string& key_name, 104 const std::string& key_name,
105 const DataMethodCallback& callback)); 105 const DataMethodCallback& callback));
106 MOCK_METHOD3(TpmAttestationRegisterKey, 106 MOCK_METHOD3(TpmAttestationRegisterKey,
107 void(AttestationKeyType key_type, 107 void(attestation::AttestationKeyType key_type,
108 const std::string& key_name, 108 const std::string& key_name,
109 const AsyncMethodCallback& callback)); 109 const AsyncMethodCallback& callback));
110 MOCK_METHOD7(TpmAttestationSignEnterpriseChallenge, 110 MOCK_METHOD7(TpmAttestationSignEnterpriseChallenge,
111 void(AttestationKeyType key_type, 111 void(attestation::AttestationKeyType key_type,
112 const std::string& key_name, 112 const std::string& key_name,
113 const std::string& domain, 113 const std::string& domain,
114 const std::string& device_id, 114 const std::string& device_id,
115 AttestationChallengeOptions options, 115 attestation::AttestationChallengeOptions options,
116 const std::string& challenge, 116 const std::string& challenge,
117 const AsyncMethodCallback& callback)); 117 const AsyncMethodCallback& callback));
118 MOCK_METHOD4(TpmAttestationSignSimpleChallenge, 118 MOCK_METHOD4(TpmAttestationSignSimpleChallenge,
119 void(AttestationKeyType key_type, 119 void(attestation::AttestationKeyType key_type,
120 const std::string& key_name, 120 const std::string& key_name,
121 const std::string& challenge, 121 const std::string& challenge,
122 const AsyncMethodCallback& callback)); 122 const AsyncMethodCallback& callback));
123 MOCK_METHOD3(TpmAttestationGetKeyPayload, 123 MOCK_METHOD3(TpmAttestationGetKeyPayload,
124 void(AttestationKeyType key_type, 124 void(attestation::AttestationKeyType key_type,
125 const std::string& key_name, 125 const std::string& key_name,
126 const DataMethodCallback& callback)); 126 const DataMethodCallback& callback));
127 MOCK_METHOD4(TpmAttestationSetKeyPayload, 127 MOCK_METHOD4(TpmAttestationSetKeyPayload,
128 void(AttestationKeyType key_type, 128 void(attestation::AttestationKeyType key_type,
129 const std::string& key_name, 129 const std::string& key_name,
130 const std::string& payload, 130 const std::string& payload,
131 const BoolDBusMethodCallback& callback)); 131 const BoolDBusMethodCallback& callback));
132 }; 132 };
133 133
134 } // namespace chromeos 134 } // namespace chromeos
135 135
136 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ 136 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_
OLDNEW
« chromeos/attestation/attestation_flow_unittest.cc ('K') | « chromeos/dbus/cryptohome_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698