1 /*
2 * Copyright (C) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #include "screenlock_unlock_callback_test.h"
16
17 #include "sclock_log.h"
18 #include "screenlock_common.h"
19
20 namespace OHOS {
21 namespace ScreenLock {
ScreenlockUnlockCallbackTest(const EventListenerTest & eventListener)22 ScreenlockUnlockCallbackTest::ScreenlockUnlockCallbackTest(const EventListenerTest &eventListener)
23 {
24 unlockListener_ = &eventListener;
25 }
26
~ScreenlockUnlockCallbackTest()27 ScreenlockUnlockCallbackTest::~ScreenlockUnlockCallbackTest()
28 {
29 }
30
OnCallBack(const std::string & event,bool result)31 void ScreenlockUnlockCallbackTest::OnCallBack(const std::string &event, bool result)
32 {
33 }
34
OnCallBack(const std::string & event)35 void ScreenlockUnlockCallbackTest::OnCallBack(const std::string &event)
36 {
37 }
38
OnCallBack(const std::string & event,int result)39 void ScreenlockUnlockCallbackTest::OnCallBack(const std::string &event, int result)
40 {
41 SCLOCK_HILOGD("event=%{public}s,result=%{public}d", event.c_str(), result);
42 }
43 } // namespace ScreenLock
44 } // namespace OHOS
45