1 /*
2  * Copyright 2023 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 /*
17  * Generated mock file from original source file
18  *   Functions generated:5
19  *
20  *  mockcify.pl ver 0.6.1
21  */
22 
23 #include <cstdint>
24 
25 #include "osi/include/stack_power_telemetry.h"
26 #include "test/common/mock_functions.h"
27 
28 // Mock include file to share data between tests and mock
29 
30 // Original usings
31 
32 // Mocked internal structures, if any
33 
34 namespace test {
35 namespace mock {
36 namespace osi_stack_power_telemetry {
37 
38 ::power_telemetry::PowerTelemetry fake_power_telemetry;
39 
40 }  // namespace osi_stack_power_telemetry
41 }  // namespace mock
42 }  // namespace test
43 
44 // Mocked function return values, if any
45 namespace test {
46 namespace mock {
47 namespace osi_stack_power_telemetry {}  // namespace osi_stack_power_telemetry
48 }  // namespace mock
49 }  // namespace test
50 
51 struct power_telemetry::PowerTelemetryImpl {};
52 
PowerTelemetry()53 power_telemetry::PowerTelemetry::PowerTelemetry() {}
54 
RecordLogDataContainer()55 void power_telemetry::PowerTelemetry::RecordLogDataContainer() { inc_func_call_count(__func__); }
LogScanStarted()56 void power_telemetry::PowerTelemetry::LogScanStarted() { inc_func_call_count(__func__); }
LogChannelConnected(uint16_t,int32_t,int32_t,const RawAddress &)57 void power_telemetry::PowerTelemetry::LogChannelConnected(uint16_t /* psm */, int32_t /* src_id */,
58                                                           int32_t /* dst_id */,
59                                                           const RawAddress& /* bd_addr */) {
60   inc_func_call_count(__func__);
61 }
LogChannelDisconnected(uint16_t,int32_t,int32_t,const RawAddress &)62 void power_telemetry::PowerTelemetry::LogChannelDisconnected(uint16_t /* psm */,
63                                                              int32_t /* src_id */,
64                                                              int32_t /* dst_id */,
65                                                              const RawAddress& /* bd_addr */) {
66   inc_func_call_count(__func__);
67 }
LogTxBytes(uint16_t,int32_t,int32_t,const RawAddress &,int32_t)68 void power_telemetry::PowerTelemetry::LogTxBytes(uint16_t /* psm */, int32_t /* src_id */,
69                                                  int32_t /* dst_id */,
70                                                  const RawAddress& /* bd_addr */,
71                                                  int32_t /* num_bytes */) {
72   inc_func_call_count(__func__);
73 }
LogRxBytes(uint16_t,int32_t,int32_t,const RawAddress &,int32_t)74 void power_telemetry::PowerTelemetry::LogRxBytes(uint16_t /* psm */, int32_t /* src_id */,
75                                                  int32_t /* dst_id */,
76                                                  const RawAddress& /* bd_addr */,
77                                                  int32_t /* num_bytes */) {
78   inc_func_call_count(__func__);
79 }
Dumpsys(int32_t)80 void power_telemetry::PowerTelemetry::Dumpsys(int32_t /* fd */) { inc_func_call_count(__func__); }
LogRxAclPktData(uint16_t)81 void power_telemetry::PowerTelemetry::LogRxAclPktData(uint16_t /* len */) {
82   inc_func_call_count(__func__);
83 }
LogTxAclPktData(uint16_t)84 void power_telemetry::PowerTelemetry::LogTxAclPktData(uint16_t /* len */) {
85   inc_func_call_count(__func__);
86 }
LogLinkDetails(uint16_t,const RawAddress &,bool,bool)87 void power_telemetry::PowerTelemetry::LogLinkDetails(uint16_t /* handle */,
88                                                      const RawAddress& /* bdaddr */,
89                                                      bool /* isConnected */,
90                                                      bool /* is_acl_link */) {
91   inc_func_call_count(__func__);
92 }
LogAclTxPowerLevel(uint16_t,uint8_t)93 void power_telemetry::PowerTelemetry::LogAclTxPowerLevel(uint16_t /* handle */,
94                                                          uint8_t /* txPower */) {
95   inc_func_call_count(__func__);
96 }
LogInqScanStarted()97 void power_telemetry::PowerTelemetry::LogInqScanStarted() { inc_func_call_count(__func__); }
LogInqScanStopped()98 void power_telemetry::PowerTelemetry::LogInqScanStopped() { inc_func_call_count(__func__); }
LogBleAdvStarted()99 void power_telemetry::PowerTelemetry::LogBleAdvStarted() { inc_func_call_count(__func__); }
LogBleAdvStopped()100 void power_telemetry::PowerTelemetry::LogBleAdvStopped() { inc_func_call_count(__func__); }
LogHciCmdDetail()101 void power_telemetry::PowerTelemetry::LogHciCmdDetail() { inc_func_call_count(__func__); }
LogHciEvtDetail()102 void power_telemetry::PowerTelemetry::LogHciEvtDetail() { inc_func_call_count(__func__); }
LogTxPower(void *)103 void power_telemetry::PowerTelemetry::LogTxPower(void* /* res */) { inc_func_call_count(__func__); }
LogTrafficData()104 void power_telemetry::PowerTelemetry::LogTrafficData() { inc_func_call_count(__func__); }
LogSniffStarted(uint16_t,const RawAddress &)105 void power_telemetry::PowerTelemetry::LogSniffStarted(uint16_t /* handle */,
106                                                       const RawAddress& /* bdaddr */) {
107   inc_func_call_count(__func__);
108 }
LogSniffStopped(uint16_t,const RawAddress &)109 void power_telemetry::PowerTelemetry::LogSniffStopped(uint16_t /* handle */,
110                                                       const RawAddress& /* bdaddr */) {
111   inc_func_call_count(__func__);
112 }
LogBleScan(uint16_t)113 void power_telemetry::PowerTelemetry::LogBleScan(uint16_t /* num_resps */) {
114   inc_func_call_count(__func__);
115 }
GetInstance()116 power_telemetry::PowerTelemetry& power_telemetry::GetInstance() {
117   return test::mock::osi_stack_power_telemetry::fake_power_telemetry;
118   // return fake_power_telemetry;
119 }
120 // Mocked functions complete
121 // END mockcify generation
122