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 
16 #include "mock_stats_remote_object.h"
17 
18 namespace OHOS {
19 namespace PowerMgr {
MockStatsRemoteObject(std::u16string descriptor)20 MockStatsRemoteObject::MockStatsRemoteObject(std::u16string descriptor) : IRemoteObject(descriptor) {}
21 
~MockStatsRemoteObject()22 MockStatsRemoteObject::~MockStatsRemoteObject() {}
23 
GetObjectRefCount()24 int32_t MockStatsRemoteObject::GetObjectRefCount()
25 {
26     return 0;
27 }
28 
29 int MockStatsRemoteObject::Dump([[maybe_unused]] int fd, [[maybe_unused]] const std::vector<std::u16string> &args)
30 {
31     return 0;
32 }
33 
SendRequest(uint32_t code,MessageParcel & data,MessageParcel & reply,MessageOption & option)34 int MockStatsRemoteObject::SendRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
35 {
36     (void)code;
37     (void)data;
38     (void)reply;
39     (void)option;
40     return 1;
41 }
42 
AddDeathRecipient(const sptr<DeathRecipient> & recipient)43 bool MockStatsRemoteObject::AddDeathRecipient(const sptr<DeathRecipient> &recipient)
44 {
45     (void)recipient;
46     return false;
47 }
48 
RemoveDeathRecipient(const sptr<DeathRecipient> & recipient)49 bool MockStatsRemoteObject::RemoveDeathRecipient(const sptr<DeathRecipient> &recipient)
50 {
51     (void)recipient;
52     return false;
53 }
54 } // namespace PowerMgr
55 } // namespace OHOS
56