| 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_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ | 5 #ifndef CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ |
| 6 #define CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ | 6 #define CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 const std::string& passhash, | 42 const std::string& passhash, |
| 43 const std::string& new_key, | 43 const std::string& new_key, |
| 44 Callback callback)); | 44 Callback callback)); |
| 45 MOCK_METHOD1(AsyncMountGuest, void(Callback callback)); | 45 MOCK_METHOD1(AsyncMountGuest, void(Callback callback)); |
| 46 MOCK_METHOD2(AsyncRemove, void(const std::string& user_email, | 46 MOCK_METHOD2(AsyncRemove, void(const std::string& user_email, |
| 47 Callback callback)); | 47 Callback callback)); |
| 48 MOCK_METHOD1(AsyncTpmAttestationCreateEnrollRequest, | 48 MOCK_METHOD1(AsyncTpmAttestationCreateEnrollRequest, |
| 49 void(const DataCallback& callback)); | 49 void(const DataCallback& callback)); |
| 50 MOCK_METHOD2(AsyncTpmAttestationEnroll, | 50 MOCK_METHOD2(AsyncTpmAttestationEnroll, |
| 51 void(const std::string& pca_response, const Callback& callback)); | 51 void(const std::string& pca_response, const Callback& callback)); |
| 52 MOCK_METHOD2(AsyncTpmAttestationCreateCertRequest, | 52 MOCK_METHOD4(AsyncTpmAttestationCreateCertRequest, |
| 53 void(int options, | 53 void(int certificate_profile, |
| 54 const std::string& user_email, |
| 55 const std::string& request_origin, |
| 54 const DataCallback& callback)); | 56 const DataCallback& callback)); |
| 55 MOCK_METHOD4(AsyncTpmAttestationFinishCertRequest, | 57 MOCK_METHOD4(AsyncTpmAttestationFinishCertRequest, |
| 56 void(const std::string& pca_response, | 58 void(const std::string& pca_response, |
| 57 chromeos::attestation::AttestationKeyType key_type, | 59 chromeos::attestation::AttestationKeyType key_type, |
| 58 const std::string& key_name, | 60 const std::string& key_name, |
| 59 const DataCallback& callback)); | 61 const DataCallback& callback)); |
| 60 MOCK_METHOD3(TpmAttestationRegisterKey, | 62 MOCK_METHOD3(TpmAttestationRegisterKey, |
| 61 void(chromeos::attestation::AttestationKeyType key_type, | 63 void(chromeos::attestation::AttestationKeyType key_type, |
| 62 const std::string& key_name, | 64 const std::string& key_name, |
| 63 const Callback& callback)); | 65 const Callback& callback)); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 90 void FakeFinishCertRequest(const DataCallback& callback); | 92 void FakeFinishCertRequest(const DataCallback& callback); |
| 91 void FakeGetSanitizedUsername(const DataCallback& callback); | 93 void FakeGetSanitizedUsername(const DataCallback& callback); |
| 92 void FakeEnterpriseChallenge(const DataCallback& callback); | 94 void FakeEnterpriseChallenge(const DataCallback& callback); |
| 93 | 95 |
| 94 DISALLOW_COPY_AND_ASSIGN(MockAsyncMethodCaller); | 96 DISALLOW_COPY_AND_ASSIGN(MockAsyncMethodCaller); |
| 95 }; | 97 }; |
| 96 | 98 |
| 97 } // namespace cryptohome | 99 } // namespace cryptohome |
| 98 | 100 |
| 99 #endif // CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ | 101 #endif // CHROMEOS_CRYPTOHOME_MOCK_ASYNC_METHOD_CALLER_H_ |
| OLD | NEW |