/* * Copyright (c) 2024-2024 Huawei Device Co., Ltd. * 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 MOCK_IVERIFY_EXECUTOR_H #define MOCK_IVERIFY_EXECUTOR_H #include "gmock/gmock.h" #include "pin_auth_hdi.h" namespace OHOS { namespace UserIam { namespace PinAuth { using namespace OHOS; using namespace OHOS::HDI; class MockIVerifyExecutor : public IVerifier { public: virtual ~MockIVerifyExecutor() = default; MOCK_METHOD1(GetExecutorInfo, int32_t(ExecutorInfo &executorInfo)); MOCK_METHOD3(OnRegisterFinish, int32_t(const std::vector &templateIdList, const std::vector &frameworkPublicKey, const std::vector &extraInfo)); MOCK_METHOD1(Cancel, int32_t(uint64_t scheduleId)); MOCK_METHOD3(SendMessage, int32_t(uint64_t scheduleId, int32_t srcRole, const std::vector& msg)); MOCK_METHOD4(Authenticate, int32_t(uint64_t scheduleId, const std::vector& templateIdList, const std::vector& extraInfo, const sptr& callbackObj)); MOCK_METHOD1(NotifyCollectorReady, int32_t(uint64_t scheduleId)); }; } // namespace PinAuth } // namespace UserIam } // namespace OHOS #endif // MOCK_IVERIFY_EXECUTOR_H