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.cpp95 std::unique_ptr<MockApi> mockapi; in SetUp() local
119 createMock(&mockapi, &mockcal); in SetUp()
120 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
128 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
129 *mockapi = std::make_unique<MockApi>(); in createMock()
132 mMockApi = mockapi->get(); in createMock()
177 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
182 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
250 std::unique_ptr<MockApi> mockapi; in TEST_P() local
261 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-vibrator.cpp149 std::unique_ptr<MockApi> mockapi; in SetUp() local
152 createMock(&mockapi, &mockcal); in SetUp()
153 createVibrator(std::move(mockapi), std::move(mockcal)); in SetUp()
159 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal) { in createMock() argument
160 *mockapi = std::make_unique<MockApi>(); in createMock()
163 mMockApi = mockapi->get(); in createMock()
185 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
190 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal)); in createVibrator()
263 std::unique_ptr<MockApi> mockapi; in TEST_F() local
276 createMock(&mockapi, &mockcal); in TEST_F()
[all …]