1365d9939Sopenharmony_ci/* 2365d9939Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 3365d9939Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4365d9939Sopenharmony_ci * you may not use this file except in compliance with the License. 5365d9939Sopenharmony_ci * You may obtain a copy of the License at 6365d9939Sopenharmony_ci * 7365d9939Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8365d9939Sopenharmony_ci * 9365d9939Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10365d9939Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11365d9939Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12365d9939Sopenharmony_ci * See the License for the specific language governing permissions and 13365d9939Sopenharmony_ci * limitations under the License. 14365d9939Sopenharmony_ci */ 15365d9939Sopenharmony_ci#ifndef NAPI_SCREENLOCK_CALL_BACK_TEST_H 16365d9939Sopenharmony_ci#define NAPI_SCREENLOCK_CALL_BACK_TEST_H 17365d9939Sopenharmony_ci 18365d9939Sopenharmony_ci#include "screenlock_callback_stub.h" 19365d9939Sopenharmony_ci#include "screenlock_common.h" 20365d9939Sopenharmony_ci#include "screenlock_event_list_test.h" 21365d9939Sopenharmony_ci#include "screenlock_system_ability_stub.h" 22365d9939Sopenharmony_ci 23365d9939Sopenharmony_cinamespace OHOS { 24365d9939Sopenharmony_cinamespace ScreenLock { 25365d9939Sopenharmony_ciclass ScreenLockSystemAbilityTest : public ScreenLockSystemAbilityStub { 26365d9939Sopenharmony_cipublic: 27365d9939Sopenharmony_ci explicit ScreenLockSystemAbilityTest(const EventListenerTest &eventListener); 28365d9939Sopenharmony_ci virtual ~ScreenLockSystemAbilityTest(); 29365d9939Sopenharmony_ci void OnCallBack(const SystemEvent &systemEvent) override; 30365d9939Sopenharmony_ci}; 31365d9939Sopenharmony_ci 32365d9939Sopenharmony_ciclass ScreenlockCallbackTest : public ScreenLockCallbackStub { 33365d9939Sopenharmony_cipublic: 34365d9939Sopenharmony_ci explicit ScreenlockCallbackTest(const EventListenerTest &eventListener); 35365d9939Sopenharmony_ci virtual ~ScreenlockCallbackTest(); 36365d9939Sopenharmony_ci void OnCallBack(const int32_t screenLockResult) override; 37365d9939Sopenharmony_ci}; 38365d9939Sopenharmony_ci} // namespace ScreenLock 39365d9939Sopenharmony_ci} // namespace OHOS 40365d9939Sopenharmony_ci#endif // NAPI_SCREENLOCK_CALL_BACK_TEST_H