// // Copyright (C) 2015 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // #ifndef ATTESTATION_COMMON_MOCK_ATTESTATION_INTERFACE_H_ #define ATTESTATION_COMMON_MOCK_ATTESTATION_INTERFACE_H_ #include #include #include "attestation/common/attestation_interface.h" namespace attestation { class MockAttestationInterface : public AttestationInterface { public: MockAttestationInterface() = default; virtual ~MockAttestationInterface() = default; MOCK_METHOD0(Initialize, bool()); MOCK_METHOD2(CreateGoogleAttestedKey, void(const CreateGoogleAttestedKeyRequest&, const CreateGoogleAttestedKeyCallback&)); MOCK_METHOD2(GetKeyInfo, void(const GetKeyInfoRequest&, const GetKeyInfoCallback&)); MOCK_METHOD2(GetEndorsementInfo, void(const GetEndorsementInfoRequest&, const GetEndorsementInfoCallback&)); MOCK_METHOD2(GetAttestationKeyInfo, void(const GetAttestationKeyInfoRequest&, const GetAttestationKeyInfoCallback&)); MOCK_METHOD2(ActivateAttestationKey, void(const ActivateAttestationKeyRequest&, const ActivateAttestationKeyCallback&)); MOCK_METHOD2(CreateCertifiableKey, void(const CreateCertifiableKeyRequest&, const CreateCertifiableKeyCallback&)); MOCK_METHOD2(Decrypt, void(const DecryptRequest&, const DecryptCallback&)); MOCK_METHOD2(Sign, void(const SignRequest&, const SignCallback&)); MOCK_METHOD2(RegisterKeyWithChapsToken, void(const RegisterKeyWithChapsTokenRequest&, const RegisterKeyWithChapsTokenCallback&)); }; } // namespace attestation #endif // ATTESTATION_COMMON_MOCK_ATTESTATION_INTERFACE_H_