| OLD | NEW |
| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 MOCK_METHOD1(InstallAttributesIsFirstInstall, bool(bool* is_first_install)); | 82 MOCK_METHOD1(InstallAttributesIsFirstInstall, bool(bool* is_first_install)); |
| 83 MOCK_METHOD1(TpmAttestationIsPrepared, | 83 MOCK_METHOD1(TpmAttestationIsPrepared, |
| 84 void(const BoolDBusMethodCallback& callback)); | 84 void(const BoolDBusMethodCallback& callback)); |
| 85 MOCK_METHOD1(TpmAttestationIsEnrolled, | 85 MOCK_METHOD1(TpmAttestationIsEnrolled, |
| 86 void(const BoolDBusMethodCallback& callback)); | 86 void(const BoolDBusMethodCallback& callback)); |
| 87 MOCK_METHOD1(AsyncTpmAttestationCreateEnrollRequest, | 87 MOCK_METHOD1(AsyncTpmAttestationCreateEnrollRequest, |
| 88 void(const AsyncMethodCallback& callback)); | 88 void(const AsyncMethodCallback& callback)); |
| 89 MOCK_METHOD2(AsyncTpmAttestationEnroll, | 89 MOCK_METHOD2(AsyncTpmAttestationEnroll, |
| 90 void(const std::string& pca_response, | 90 void(const std::string& pca_response, |
| 91 const AsyncMethodCallback& callback)); | 91 const AsyncMethodCallback& callback)); |
| 92 MOCK_METHOD2(AsyncTpmAttestationCreateCertRequest, | 92 MOCK_METHOD4(AsyncTpmAttestationCreateCertRequest, |
| 93 void(int options, | 93 void(int certificate_profile, |
| 94 const std::string& user_email, |
| 95 const std::string& request_origin, |
| 94 const AsyncMethodCallback& callback)); | 96 const AsyncMethodCallback& callback)); |
| 95 MOCK_METHOD4(AsyncTpmAttestationFinishCertRequest, | 97 MOCK_METHOD4(AsyncTpmAttestationFinishCertRequest, |
| 96 void(const std::string& pca_response, | 98 void(const std::string& pca_response, |
| 97 attestation::AttestationKeyType key_type, | 99 attestation::AttestationKeyType key_type, |
| 98 const std::string& key_name, | 100 const std::string& key_name, |
| 99 const AsyncMethodCallback& callback)); | 101 const AsyncMethodCallback& callback)); |
| 100 MOCK_METHOD3(TpmAttestationDoesKeyExist, | 102 MOCK_METHOD3(TpmAttestationDoesKeyExist, |
| 101 void(attestation::AttestationKeyType key_type, | 103 void(attestation::AttestationKeyType key_type, |
| 102 const std::string& key_name, | 104 const std::string& key_name, |
| 103 const BoolDBusMethodCallback& callback)); | 105 const BoolDBusMethodCallback& callback)); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 133 MOCK_METHOD4(TpmAttestationSetKeyPayload, | 135 MOCK_METHOD4(TpmAttestationSetKeyPayload, |
| 134 void(attestation::AttestationKeyType key_type, | 136 void(attestation::AttestationKeyType key_type, |
| 135 const std::string& key_name, | 137 const std::string& key_name, |
| 136 const std::string& payload, | 138 const std::string& payload, |
| 137 const BoolDBusMethodCallback& callback)); | 139 const BoolDBusMethodCallback& callback)); |
| 138 }; | 140 }; |
| 139 | 141 |
| 140 } // namespace chromeos | 142 } // namespace chromeos |
| 141 | 143 |
| 142 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ | 144 #endif // CHROMEOS_DBUS_MOCK_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |