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() {
56 inc_func_call_count(__func__);
57 }
LogScanStarted()58 void power_telemetry::PowerTelemetry::LogScanStarted() {
59 inc_func_call_count(__func__);
60 }
LogChannelConnected(uint16_t,int32_t,int32_t,const RawAddress &)61 void power_telemetry::PowerTelemetry::LogChannelConnected(
62 uint16_t /* psm */, int32_t /* src_id */, int32_t /* dst_id */,
63 const RawAddress& /* bd_addr */) {
64 inc_func_call_count(__func__);
65 }
LogChannelDisconnected(uint16_t,int32_t,int32_t,const RawAddress &)66 void power_telemetry::PowerTelemetry::LogChannelDisconnected(
67 uint16_t /* psm */, int32_t /* src_id */, int32_t /* dst_id */,
68 const RawAddress& /* bd_addr */) {
69 inc_func_call_count(__func__);
70 }
LogTxBytes(uint16_t,int32_t,int32_t,const RawAddress &,int32_t)71 void power_telemetry::PowerTelemetry::LogTxBytes(
72 uint16_t /* psm */, int32_t /* src_id */, int32_t /* dst_id */,
73 const RawAddress& /* bd_addr */, int32_t /* num_bytes */) {
74 inc_func_call_count(__func__);
75 }
LogRxBytes(uint16_t,int32_t,int32_t,const RawAddress &,int32_t)76 void power_telemetry::PowerTelemetry::LogRxBytes(
77 uint16_t /* psm */, int32_t /* src_id */, int32_t /* dst_id */,
78 const RawAddress& /* bd_addr */, int32_t /* num_bytes */) {
79 inc_func_call_count(__func__);
80 }
Dumpsys(int32_t)81 void power_telemetry::PowerTelemetry::Dumpsys(int32_t /* fd */) {
82 inc_func_call_count(__func__);
83 }
LogRxAclPktData(uint16_t)84 void power_telemetry::PowerTelemetry::LogRxAclPktData(uint16_t /* len */) {
85 inc_func_call_count(__func__);
86 }
LogTxAclPktData(uint16_t)87 void power_telemetry::PowerTelemetry::LogTxAclPktData(uint16_t /* len */) {
88 inc_func_call_count(__func__);
89 }
LogLinkDetails(uint16_t,const RawAddress &,bool,bool)90 void power_telemetry::PowerTelemetry::LogLinkDetails(
91 uint16_t /* handle */, const RawAddress& /* bdaddr */,
92 bool /* isConnected */, bool /* is_acl_link */) {
93 inc_func_call_count(__func__);
94 }
LogAclTxPowerLevel(uint16_t,uint8_t)95 void power_telemetry::PowerTelemetry::LogAclTxPowerLevel(
96 uint16_t /* handle */, uint8_t /* txPower */) {
97 inc_func_call_count(__func__);
98 }
LogInqScanStarted()99 void power_telemetry::PowerTelemetry::LogInqScanStarted() {
100 inc_func_call_count(__func__);
101 }
LogInqScanStopped()102 void power_telemetry::PowerTelemetry::LogInqScanStopped() {
103 inc_func_call_count(__func__);
104 }
LogBleAdvStarted()105 void power_telemetry::PowerTelemetry::LogBleAdvStarted() {
106 inc_func_call_count(__func__);
107 }
LogBleAdvStopped()108 void power_telemetry::PowerTelemetry::LogBleAdvStopped() {
109 inc_func_call_count(__func__);
110 }
LogHciCmdDetail()111 void power_telemetry::PowerTelemetry::LogHciCmdDetail() {
112 inc_func_call_count(__func__);
113 }
LogHciEvtDetail()114 void power_telemetry::PowerTelemetry::LogHciEvtDetail() {
115 inc_func_call_count(__func__);
116 }
LogTxPower(void *)117 void power_telemetry::PowerTelemetry::LogTxPower(void* /* res */) {
118 inc_func_call_count(__func__);
119 }
LogTrafficData()120 void power_telemetry::PowerTelemetry::LogTrafficData() {
121 inc_func_call_count(__func__);
122 }
LogSniffStarted(uint16_t,const RawAddress &)123 void power_telemetry::PowerTelemetry::LogSniffStarted(
124 uint16_t /* handle */, const RawAddress& /* bdaddr */) {
125 inc_func_call_count(__func__);
126 }
LogSniffStopped(uint16_t,const RawAddress &)127 void power_telemetry::PowerTelemetry::LogSniffStopped(
128 uint16_t /* handle */, const RawAddress& /* bdaddr */) {
129 inc_func_call_count(__func__);
130 }
LogBleScan(uint16_t)131 void power_telemetry::PowerTelemetry::LogBleScan(uint16_t /* num_resps */) {
132 inc_func_call_count(__func__);
133 }
GetInstance()134 power_telemetry::PowerTelemetry& power_telemetry::GetInstance() {
135 return test::mock::osi_stack_power_telemetry::fake_power_telemetry;
136 // return fake_power_telemetry;
137 }
138 // Mocked functions complete
139 // END mockcify generation
140