Home
last modified time | relevance | path

Searched refs:MockBluetooth (Results 1 - 8 of 8) sorted by relevance

/foundation/communication/dsoftbus/tests/adapter/bluetooth/
H A Dbluetooth_mock.cpp24 MockBluetooth *MockBluetooth::targetMocker = nullptr;
25 BtGapCallBacks *MockBluetooth::btGapCallback = nullptr;
26 BtGattCallbacks *MockBluetooth::btGattCallback = nullptr;
27 BleScanCallbacks *MockBluetooth::bleScanCallback = nullptr;
31 MockBluetooth::btGapCallback = func; in ActionGapRegisterCallbacks()
37 MockBluetooth::btGattCallback = func; in ActionBleGattRegisterCallbacks()
41 MockBluetooth *MockBluetooth::GetMocker() in GetMocker()
46 MockBluetooth function in MockBluetooth
[all...]
H A Dsoftbus_adapter_bt_common_test.cpp46 MockBluetooth mocker; in HWTEST()
60 MockBluetooth mocker; in HWTEST()
74 MockBluetooth mocker; in HWTEST()
89 MockBluetooth mocker; in HWTEST()
104 MockBluetooth mocker; in HWTEST()
114 static testing::AssertionResult PrepareBtStateListener(MockBluetooth &mocker, int32_t *outlistenerId) in PrepareBtStateListener()
125 if (MockBluetooth::btGapCallback == nullptr) { in PrepareBtStateListener()
141 MockBluetooth mocker; in HWTEST()
145 MockBluetooth::btGapCallback->stateChangeCallback(OHOS_BT_TRANSPORT_BR_EDR, OHOS_GAP_STATE_TURNING_ON); in HWTEST()
148 MockBluetooth in HWTEST()
[all...]
H A Dsoftbus_adapter_ble_gatt_client_test.cpp82 static void MockAll(MockBluetooth &mocker) in MockAll()
105 MockBluetooth mocker; in HWTEST_F()
123 MockBluetooth mocker; in HWTEST_F()
142 MockBluetooth mocker; in HWTEST_F()
163 MockBluetooth mocker; in HWTEST_F()
180 MockBluetooth mocker; in HWTEST_F()
197 MockBluetooth mocker; in HWTEST_F()
220 MockBluetooth mocker; in HWTEST_F()
248 MockBluetooth mocker; in HWTEST_F()
295 MockBluetooth mocke in HWTEST_F()
[all...]
H A Dbluetooth_mock.h80 class MockBluetooth : public BluetoothInterface { class
82 MockBluetooth();
83 ~MockBluetooth();
136 static MockBluetooth *GetMocker();
143 static MockBluetooth *targetMocker;
H A Dsoftbus_adapter_ble_gatt_server_test.cpp92 static void MockAll(MockBluetooth &mocker) in MockAll()
117 MockBluetooth mocker; in HWTEST_F()
161 MockBluetooth mocker; in HWTEST_F()
180 MockBluetooth mocker; in HWTEST_F()
213 MockBluetooth mocker; in HWTEST_F()
255 MockBluetooth mocker; in HWTEST_F()
290 MockBluetooth mocker; in HWTEST_F()
314 MockBluetooth mocker; in HWTEST_F()
338 MockBluetooth mocker; in HWTEST_F()
362 MockBluetooth mocke in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/tests/adapter/broadcast/
H A Dbluetooth_mock.cpp20 MockBluetooth *MockBluetooth::targetMocker = nullptr;
21 BtGapCallBacks *MockBluetooth::btGapCallback = nullptr;
22 BtGattCallbacks *MockBluetooth::btGattCallback = nullptr;
23 BleScanCallbacks *MockBluetooth::bleScanCallback = nullptr;
24 const SoftbusBroadcastMediumInterface *MockBluetooth::interface = nullptr;
28 MockBluetooth::btGapCallback = func; in ActionGapRegisterCallbacks()
34 MockBluetooth::btGattCallback = func; in ActionBleGattRegisterCallbacks()
40 MockBluetooth::bleScanCallback = func; in ActionBleRegisterScanCallbacks()
46 MockBluetooth in ActionBleDeregisterScanCallbacks()
62 MockBluetooth::MockBluetooth() MockBluetooth() function in MockBluetooth
[all...]
H A Dsoftbus_ble_gatt_test.cpp71 MockBluetooth mocker; in SetUpTestCase()
73 MockBluetooth::interface->Init(); in SetUpTestCase()
125 int32_t ret = MockBluetooth::interface->RegisterScanListener(scannerId, GetStubScanListener()); in PrepareScanListener()
129 if (MockBluetooth::bleScanCallback == nullptr) { in PrepareScanListener()
171 int32_t ret = MockBluetooth::interface->Init(); in HWTEST_F()
174 ret = MockBluetooth::interface->Init(); in HWTEST_F()
186 int32_t ret = MockBluetooth::interface->DeInit(); in HWTEST_F()
189 ret = MockBluetooth::interface->DeInit(); in HWTEST_F()
201 int32_t ret = MockBluetooth::interface->RegisterBroadcaster(nullptr, nullptr); in HWTEST_F()
228 int32_t ret = MockBluetooth in HWTEST_F()
[all...]
H A Dbluetooth_mock.h93 class MockBluetooth : public BluetoothInterface { class
95 MockBluetooth();
96 ~MockBluetooth();
161 static MockBluetooth *GetMocker();
169 static MockBluetooth *targetMocker;

Completed in 6 milliseconds