/system/bt/service/test/ |
D | low_energy_advertiser_unittest.cc | 84 if (!mock_handler_) mock_handler_.reset(new MockAdvertiserHandler()); in SetUp() 87 std::static_pointer_cast<BleAdvertiserInterface>(mock_handler_), in SetUp() 98 std::shared_ptr<MockAdvertiserHandler> mock_handler_; member in bluetooth::__anon1ee57e560111::LowEnergyAdvertiserTest 120 EXPECT_CALL(*mock_handler_, Enable(_, false, _, _, _, _)).Times(1); in TearDown() 121 EXPECT_CALL(*mock_handler_, Unregister(_)).Times(1); in TearDown() 141 EXPECT_CALL(*mock_handler_, RegisterAdvertiser(_)) in RegisterTestAdvertiser() 148 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in RegisterTestAdvertiser() 157 EXPECT_CALL(*mock_handler_, StartAdvertising(_, _, _, _, _, _, _)) in StartAdvertising() 188 EXPECT_CALL(*mock_handler_, Enable(_, false, _, _, _, _)) in AdvertiseDataTestHelper() 226 EXPECT_CALL(*mock_handler_, RegisterAdvertiser(_)) in TEST_F() [all …]
|
D | gatt_client_unittest.cc | 53 if (!mock_handler_) mock_handler_.reset(new MockGattHandler()); in SetUp() 58 hal::FakeBluetoothGattInterface::TestClientHandler>(mock_handler_), in SetUp() 72 std::shared_ptr<MockGattHandler> mock_handler_; member in bluetooth::__anon096d84310111::GattClientTest 80 EXPECT_CALL(*mock_handler_, RegisterClient(_)) in TEST_F() 115 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F() 119 EXPECT_CALL(*mock_handler_, RegisterClient(_)) in TEST_F() 142 EXPECT_CALL(*mock_handler_, UnregisterClient(client_id0)) in TEST_F() 146 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F()
|
D | low_energy_client_unittest.cc | 87 if (!mock_handler_) mock_handler_.reset(new MockGattHandler()); in SetUp() 91 hal::FakeBluetoothGattInterface::TestClientHandler>(mock_handler_), in SetUp() 105 std::shared_ptr<MockGattHandler> mock_handler_; member in bluetooth::__anon428e78bc0111::LowEnergyClientTest 127 EXPECT_CALL(*mock_handler_, UnregisterClient(_)) in TearDown() 148 EXPECT_CALL(*mock_handler_, RegisterClient(_)) in RegisterTestClient() 156 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in RegisterTestClient() 169 EXPECT_CALL(*mock_handler_, RegisterClient(_)) in TEST_F() 204 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F() 208 EXPECT_CALL(*mock_handler_, RegisterClient(_)) in TEST_F() 231 EXPECT_CALL(*mock_handler_, UnregisterClient(client_if0)) in TEST_F() [all …]
|
D | low_energy_scanner_unittest.cc | 115 if (!mock_handler_) mock_handler_.reset(new MockScannerHandler()); in SetUp() 117 nullptr, std::static_pointer_cast<BleScannerInterface>(mock_handler_), in SetUp() 131 std::shared_ptr<MockScannerHandler> mock_handler_; member in bluetooth::__anon6b2602a70111::LowEnergyScannerTest 153 EXPECT_CALL(*mock_handler_, Unregister(_)).Times(1).WillOnce(Return()); in TearDown() 173 EXPECT_CALL(*mock_handler_, RegisterScanner(_)) in RegisterTestScanner() 180 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in RegisterTestScanner() 194 EXPECT_CALL(*mock_handler_, RegisterScanner(_)) in TEST_F() 224 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F() 229 EXPECT_CALL(*mock_handler_, RegisterScanner(_)) in TEST_F() 247 EXPECT_CALL(*mock_handler_, Unregister(scanner_if0)) in TEST_F() [all …]
|
D | gatt_server_unittest.cc | 182 mock_handler_.reset(new MockGattHandler()); in SetUp() 186 hal::FakeBluetoothGattInterface::TestServerHandler>(mock_handler_)); in SetUp() 199 std::shared_ptr<MockGattHandler> mock_handler_; member in bluetooth::__anon7876fd490111::GattServerTest 226 EXPECT_CALL(*mock_handler_, RegisterServer(_)) in SetUp() 237 EXPECT_CALL(*mock_handler_, UnregisterServer(_)) in TearDown() 245 EXPECT_CALL(*mock_handler_, AddService(_, _)) in SetUpTestService() 284 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in SetUpTestService() 301 EXPECT_CALL(*mock_handler_, RegisterServer(_)) in TEST_F() 336 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F() 340 EXPECT_CALL(*mock_handler_, RegisterServer(_)) in TEST_F() [all …]
|
D | a2dp_sink_unittest.cc | 93 mock_handler_.reset(new MockA2dpSinkHandler()); in SetUp() 94 fake_hal_av_iface_ = new hal::FakeBluetoothAvInterface(mock_handler_); in SetUp() 106 std::shared_ptr<MockA2dpSinkHandler> mock_handler_; member in bluetooth::__anonaa9dfa1e0111::A2dpSinkTest 144 EXPECT_CALL(*mock_handler_, Connect(hal_addr)) in Connect() 154 EXPECT_CALL(*mock_handler_, Disconnect(hal_addr)) in Disconnect() 189 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F() 199 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F() 213 EXPECT_CALL(*mock_handler_, SetAudioFocusState(kFocusState)); in TEST_F() 224 EXPECT_CALL(*mock_handler_, SetAudioTrackGain(kTrackGain)); in TEST_F()
|