Home
last modified time | relevance | path

Searched refs:mockapi (Results 1 – 2 of 2) sorted by relevance

/hardware/google/pixel/vibrator/drv2624/tests/
Dtest-vibrator.cpp96 std::unique_ptr<MockApi> mockapi; in SetUp() local
120 createMock(&mockapi, &mockcal); in SetUp()
121 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
129 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
130 *mockapi = std::make_unique<MockApi>(); in createMock()
133 mMockApi = mockapi->get(); in createMock()
178 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
183 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
252 std::unique_ptr<MockApi> mockapi; in TEST_P() local
263 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-vibrator.cpp150 std::unique_ptr<MockApi> mockapi; in SetUp() local
153 createMock(&mockapi, &mockcal); in SetUp()
154 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
160 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
161 *mockapi = std::make_unique<MockApi>(); in createMock()
164 mMockApi = mockapi->get(); in createMock()
189 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
194 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
267 std::unique_ptr<MockApi> mockapi; in TEST_F() local
281 createMock(&mockapi, &mockcal); in TEST_F()
[all …]