1a339c2d4Sopenharmony_ci/*
2a339c2d4Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
3a339c2d4Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4a339c2d4Sopenharmony_ci * you may not use this file except in compliance with the License.
5a339c2d4Sopenharmony_ci * You may obtain a copy of the License at
6a339c2d4Sopenharmony_ci *
7a339c2d4Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8a339c2d4Sopenharmony_ci *
9a339c2d4Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10a339c2d4Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11a339c2d4Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12a339c2d4Sopenharmony_ci * See the License for the specific language governing permissions and
13a339c2d4Sopenharmony_ci * limitations under the License.
14a339c2d4Sopenharmony_ci */
15a339c2d4Sopenharmony_ci
16a339c2d4Sopenharmony_ci#ifndef MOCK_IEXECUTE_CALLBACK_H
17a339c2d4Sopenharmony_ci#define MOCK_IEXECUTE_CALLBACK_H
18a339c2d4Sopenharmony_ci
19a339c2d4Sopenharmony_ci#include "gmock/gmock.h"
20a339c2d4Sopenharmony_ci
21a339c2d4Sopenharmony_ci#include "iam_executor_iexecute_callback.h"
22a339c2d4Sopenharmony_ci
23a339c2d4Sopenharmony_cinamespace OHOS {
24a339c2d4Sopenharmony_cinamespace UserIam {
25a339c2d4Sopenharmony_cinamespace UserAuth {
26a339c2d4Sopenharmony_ciclass MockIExecuteCallback : public UserIam::UserAuth::IExecuteCallback {
27a339c2d4Sopenharmony_cipublic:
28a339c2d4Sopenharmony_ci    MockIExecuteCallback() = default;
29a339c2d4Sopenharmony_ci    virtual ~MockIExecuteCallback() = default;
30a339c2d4Sopenharmony_ci
31a339c2d4Sopenharmony_ci    MOCK_METHOD2(OnResult, void(ResultCode result, const std::vector<uint8_t> &extraInfo));
32a339c2d4Sopenharmony_ci    MOCK_METHOD1(OnResult, void(ResultCode result));
33a339c2d4Sopenharmony_ci    MOCK_METHOD2(OnAcquireInfo, void(int32_t acquire, const std::vector<uint8_t> &extraInfo));
34a339c2d4Sopenharmony_ci    MOCK_METHOD5(OnGetData, int32_t(uint64_t scheduleId, const std::vector<uint8_t> &algoParameter,
35a339c2d4Sopenharmony_ci        uint64_t authSubType, uint32_t algoVersion, bool isEnroll));
36a339c2d4Sopenharmony_ci    MOCK_METHOD2(OnMessage, void(int destRole, const std::vector<uint8_t> &msg));
37a339c2d4Sopenharmony_ci};
38a339c2d4Sopenharmony_ci} // namespace UserAuth
39a339c2d4Sopenharmony_ci} // namespace UserIam
40a339c2d4Sopenharmony_ci} // namespace OHOS
41a339c2d4Sopenharmony_ci
42a339c2d4Sopenharmony_ci#endif // MOCK_IEXECUTE_CALLBACK_H