15ccb8f90Sopenharmony_ci/* 25ccb8f90Sopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 35ccb8f90Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 45ccb8f90Sopenharmony_ci * you may not use this file except in compliance with the License. 55ccb8f90Sopenharmony_ci * You may obtain a copy of the License at 65ccb8f90Sopenharmony_ci * 75ccb8f90Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 85ccb8f90Sopenharmony_ci * 95ccb8f90Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 105ccb8f90Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 115ccb8f90Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 125ccb8f90Sopenharmony_ci * See the License for the specific language governing permissions and 135ccb8f90Sopenharmony_ci * limitations under the License. 145ccb8f90Sopenharmony_ci */ 155ccb8f90Sopenharmony_ci 165ccb8f90Sopenharmony_ci#ifndef POWERMGR_MOCK_LOCK_ACTION_H 175ccb8f90Sopenharmony_ci#define POWERMGR_MOCK_LOCK_ACTION_H 185ccb8f90Sopenharmony_ci 195ccb8f90Sopenharmony_ci#include <gmock/gmock.h> 205ccb8f90Sopenharmony_ci#include "actions/irunning_lock_action.h" 215ccb8f90Sopenharmony_ci 225ccb8f90Sopenharmony_cinamespace OHOS { 235ccb8f90Sopenharmony_cinamespace PowerMgr { 245ccb8f90Sopenharmony_ciclass MockLockAction : public IRunningLockAction { 255ccb8f90Sopenharmony_cipublic: 265ccb8f90Sopenharmony_ci MockLockAction() = default; 275ccb8f90Sopenharmony_ci virtual ~MockLockAction() = default; 285ccb8f90Sopenharmony_ci MOCK_METHOD1(Lock, int32_t(const RunningLockParam& param)); 295ccb8f90Sopenharmony_ci MOCK_METHOD1(Unlock, int32_t(const RunningLockParam& param)); 305ccb8f90Sopenharmony_ci}; 315ccb8f90Sopenharmony_ci} // namespace PowerMgr 325ccb8f90Sopenharmony_ci} // namespace OHOS 335ccb8f90Sopenharmony_ci 345ccb8f90Sopenharmony_ci#endif // POWERMGR_MOCK_LOCK_ACTION_H 35