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