Home
last modified time | relevance | path

Searched refs:mockcal (Results 1 – 3 of 3) sorted by relevance

/hardware/google/pixel/vibrator/drv2624/tests/
Dtest-vibrator.cpp97 std::unique_ptr<MockCal> mockcal; 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
131 *mockcal = std::make_unique<MockCal>(); in createMock()
134 mMockCal = mockcal->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()
253 std::unique_ptr<MockCal> mockcal; in TEST_P() local
263 createMock(&mockapi, &mockcal); in TEST_P()
[all …]
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-vibrator.cpp159 std::unique_ptr<MockCal> mockcal; in SetUp() local
162 createMock(&mockapi, &mockcal, &mockstats); in SetUp()
163 createVibrator(std::move(mockapi), std::move(mockcal), std::move(mockstats)); in SetUp()
169 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal, in createMock() argument
172 *mockcal = std::make_unique<MockCal>(); in createMock()
176 mMockCal = mockcal->get(); in createMock()
201 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
206 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal), in createVibrator()
289 std::unique_ptr<MockCal> mockcal; in TEST_F() local
304 createMock(&mockapi, &mockcal, &mockstats); in TEST_F()
[all …]
/hardware/google/pixel/vibrator/cs40l26/tests/
Dtest-vibrator.cpp206 std::unique_ptr<MockCal> mockcal; in SetUp() local
209 createMock(&mockapi, &mockcal, &mockstats); in SetUp()
210 createVibrator(std::move(mockapi), std::move(mockcal), std::move(mockstats)); in SetUp()
216 void createMock(std::unique_ptr<MockApi> *mockapi, std::unique_ptr<MockCal> *mockcal, in createMock() argument
219 *mockcal = std::make_unique<MockCal>(); in createMock()
223 mMockCal = mockcal->get(); in createMock()
260 void createVibrator(std::unique_ptr<MockApi> mockapi, std::unique_ptr<MockCal> mockcal, in createVibrator() argument
265 mVibrator = ndk::SharedRefBase::make<Vibrator>(std::move(mockapi), std::move(mockcal), in createVibrator()
341 std::unique_ptr<MockCal> mockcal; in TEST_F() local
359 createMock(&mockapi, &mockcal, &mockstats); in TEST_F()
[all …]