Home
last modified time | relevance | path

Searched refs:mock_handler_ (Results 1 – 8 of 8) sorted by relevance

/system/bt/service/test/
Dlow_energy_advertiser_unittest.cc86 if (!mock_handler_) mock_handler_.reset(new MockAdvertiserHandler()); in SetUp()
89 std::static_pointer_cast<BleAdvertiserInterface>(mock_handler_), in SetUp()
100 std::shared_ptr<MockAdvertiserHandler> mock_handler_; member in bluetooth::__anon7762d80d0111::LowEnergyAdvertiserTest
122 EXPECT_CALL(*mock_handler_, Enable(_, false, _, _, _, _)).Times(1); in TearDown()
123 EXPECT_CALL(*mock_handler_, Unregister(_)).Times(1); in TearDown()
143 EXPECT_CALL(*mock_handler_, RegisterAdvertiser(_)) in RegisterTestAdvertiser()
150 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in RegisterTestAdvertiser()
159 EXPECT_CALL(*mock_handler_, StartAdvertising(_, _, _, _, _, _, _)) in StartAdvertising()
190 EXPECT_CALL(*mock_handler_, Enable(_, false, _, _, _, _)) in AdvertiseDataTestHelper()
228 EXPECT_CALL(*mock_handler_, RegisterAdvertiser(_)) in TEST_F()
[all …]
Dgatt_client_unittest.cc54 if (!mock_handler_) mock_handler_.reset(new MockGattHandler()); in SetUp()
59 hal::FakeBluetoothGattInterface::TestClientHandler>(mock_handler_), in SetUp()
73 std::shared_ptr<MockGattHandler> mock_handler_; member in bluetooth::__anon9781fd280111::GattClientTest
81 EXPECT_CALL(*mock_handler_, RegisterClient(_, _)) in TEST_F()
116 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F()
120 EXPECT_CALL(*mock_handler_, RegisterClient(_, _)) in TEST_F()
143 EXPECT_CALL(*mock_handler_, UnregisterClient(client_id0)) in TEST_F()
147 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F()
Dlow_energy_client_unittest.cc89 if (!mock_handler_) mock_handler_.reset(new MockGattHandler()); in SetUp()
93 hal::FakeBluetoothGattInterface::TestClientHandler>(mock_handler_), in SetUp()
107 std::shared_ptr<MockGattHandler> mock_handler_; member in bluetooth::__anona18d8ef30111::LowEnergyClientTest
129 EXPECT_CALL(*mock_handler_, UnregisterClient(_)) in TearDown()
150 EXPECT_CALL(*mock_handler_, RegisterClient(_, _)) in RegisterTestClient()
158 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in RegisterTestClient()
171 EXPECT_CALL(*mock_handler_, RegisterClient(_, _)) in TEST_F()
206 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F()
210 EXPECT_CALL(*mock_handler_, RegisterClient(_, _)) in TEST_F()
233 EXPECT_CALL(*mock_handler_, UnregisterClient(client_if0)) in TEST_F()
[all …]
Dlow_energy_scanner_unittest.cc119 if (!mock_handler_) mock_handler_.reset(new MockScannerHandler()); in SetUp()
121 nullptr, std::static_pointer_cast<BleScannerInterface>(mock_handler_), in SetUp()
135 std::shared_ptr<MockScannerHandler> mock_handler_; member in bluetooth::__anonaa07dfbe0111::LowEnergyScannerTest
157 EXPECT_CALL(*mock_handler_, Unregister(_)).Times(1).WillOnce(Return()); in TearDown()
178 EXPECT_CALL(*mock_handler_, RegisterScanner(_, _)) in RegisterTestScanner()
185 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in RegisterTestScanner()
200 EXPECT_CALL(*mock_handler_, RegisterScanner(_, _)) in TEST_F()
230 ::testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F()
236 EXPECT_CALL(*mock_handler_, RegisterScanner(_, _)) in TEST_F()
254 EXPECT_CALL(*mock_handler_, Unregister(scanner_if0)) in TEST_F()
[all …]
Da2dp_sink_unittest.cc93 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::__anon3081c9550111::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()
Dgatt_server_unittest.cc183 mock_handler_.reset(new MockGattHandler()); in SetUp()
187 hal::FakeBluetoothGattInterface::TestServerHandler>(mock_handler_)); in SetUp()
200 std::shared_ptr<MockGattHandler> mock_handler_; member in bluetooth::__anon068b76400111::GattServerTest
227 EXPECT_CALL(*mock_handler_, RegisterServer(_, _)) in SetUp()
238 EXPECT_CALL(*mock_handler_, UnregisterServer(_)) in TearDown()
246 EXPECT_CALL(*mock_handler_, AddService(_, _)) in SetUpTestService()
285 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in SetUpTestService()
302 EXPECT_CALL(*mock_handler_, RegisterServer(_, _)) in TEST_F()
337 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F()
341 EXPECT_CALL(*mock_handler_, RegisterServer(_, _)) in TEST_F()
[all …]
Da2dp_source_unittest.cc90 mock_handler_.reset(new MockA2dpSourceHandler()); in SetUp()
91 fake_hal_av_iface_ = new hal::FakeBluetoothAvInterface(mock_handler_); in SetUp()
103 std::shared_ptr<MockA2dpSourceHandler> mock_handler_; member in bluetooth::__anondbec48710111::A2dpSourceTest
141 EXPECT_CALL(*mock_handler_, Connect(hal_addr)) in Connect()
151 EXPECT_CALL(*mock_handler_, Disconnect(hal_addr)) in Disconnect()
186 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F()
196 testing::Mock::VerifyAndClearExpectations(mock_handler_.get()); in TEST_F()
/system/bt/main/test/
Dmain_shim_test.cc247 extern os::Handler* mock_handler_;