1c29fa5a6Sopenharmony_ci/* 2c29fa5a6Sopenharmony_ci * Copyright (C) 2024 Huawei Device Co., Ltd. 3c29fa5a6Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4c29fa5a6Sopenharmony_ci * you may not use this file except in compliance with the License. 5c29fa5a6Sopenharmony_ci * You may obtain a copy of the License at 6c29fa5a6Sopenharmony_ci * 7c29fa5a6Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8c29fa5a6Sopenharmony_ci * 9c29fa5a6Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10c29fa5a6Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11c29fa5a6Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12c29fa5a6Sopenharmony_ci * See the License for the specific language governing permissions and 13c29fa5a6Sopenharmony_ci * limitations under the License. 14c29fa5a6Sopenharmony_ci */ 15c29fa5a6Sopenharmony_ci#ifndef MESSAGE_PARCEL_MOCK_H 16c29fa5a6Sopenharmony_ci#define MESSAGE_PARCEL_MOCK_H 17c29fa5a6Sopenharmony_ci 18c29fa5a6Sopenharmony_ci#include <memory> 19c29fa5a6Sopenharmony_ci#include <string> 20c29fa5a6Sopenharmony_ci#include <gmock/gmock.h> 21c29fa5a6Sopenharmony_ci 22c29fa5a6Sopenharmony_ci#include "input_device_manager.h" 23c29fa5a6Sopenharmony_ci#include "multimodal_input_preferences_manager.h" 24c29fa5a6Sopenharmony_ci#include "libinput.h" 25c29fa5a6Sopenharmony_ci#include "timer_manager.h" 26c29fa5a6Sopenharmony_ci 27c29fa5a6Sopenharmony_cinamespace OHOS { 28c29fa5a6Sopenharmony_cinamespace MMI { 29c29fa5a6Sopenharmony_ciclass DfsMessageParcel { 30c29fa5a6Sopenharmony_cipublic: 31c29fa5a6Sopenharmony_ci virtual ~DfsMessageParcel() = default; 32c29fa5a6Sopenharmony_cipublic: 33c29fa5a6Sopenharmony_ci virtual int32_t FindInputDeviceId(struct libinput_device *inputDevice) = 0; 34c29fa5a6Sopenharmony_cipublic: 35c29fa5a6Sopenharmony_ci static inline std::shared_ptr<DfsMessageParcel> messageParcel = nullptr; 36c29fa5a6Sopenharmony_ci}; 37c29fa5a6Sopenharmony_ci 38c29fa5a6Sopenharmony_ciclass MessageParcelMock : public DfsMessageParcel { 39c29fa5a6Sopenharmony_cipublic: 40c29fa5a6Sopenharmony_ci MOCK_METHOD1(FindInputDeviceId, int32_t(struct libinput_device *inputDevice)); 41c29fa5a6Sopenharmony_ci}; 42c29fa5a6Sopenharmony_ci} // namespace MMI 43c29fa5a6Sopenharmony_ci} // namespace OHOS 44c29fa5a6Sopenharmony_ci#endif